MapPalette

MapPalette

Description

This plugin allows the server owner to change the color palette used for map items. If you use a plugin to display images as map items, such as ImageMaps, MapPalette can be used to correct differences between the server's map color palette and the clients' palette. If you have a 1.8 server, simply put MapPalette.jar in your plugins folder, restart your server, and your server will be compatible with 1.8.1 clients.

Note: CraftBukkit/Spigot 1.8.3 has the updated palette built-in. So in most cases, you do not need this plugin with server versions 1.8.3 and beyond.

Details

In order for images to be displayed as map items correctly, the color palette used by the server must match the palette used by the clients. Minecraft versions 1.7.2 through 1.8 all use the same palette; any server-client combination will display the colors correctly. But Minecraft version 1.8.1 uses a different palette. If, for example, you are running a 1.8 server and your players are using 1.8.1 clients, the colors will be wrong. This plugin allows your 1.8 server to use the 1.8.1 palette so the colors will be displayed properly for players using the 1.8.1 client. (Of course that means players with the 1.8 client will now see the wrong colors, but most players are probably using 1.8.1.)

Please note that this plugin can change the palette only for other plugins which use the Bukkit map API. If you have a standalone program which produces map .dat files, this plugin cannot change the palette. You would need to adjust the palette in the standalone program.

Configuration

By default, this plugin will switch your server to use the 1.8.1 palette.

mapversion: 1.8.1

The sole configuration parameter specifies which palette should be used. Supported values are 1.7.2 (for Minecraft versions 1.7.2 through 1.8) and 1.8.1 (for Minecraft 1.8.1 and beyond). Again, this is how you specify which palette will be used by the majority of your clients. So if your clients are running 1.8.1, you should specify mapversion 1.8.1.

Map Color Palette Files

The .jar file includes two .png files which contain one pixel of each color used by Minecraft map items:

  • minecraft_palette_172.png - For Minecraft 1.7.2 - 1.8
  • minecraft_palette_181.png - For Minecraft 1.8.1+

The use of these files is optional. You can use these files with an image editor to adjust the color palette of an image so it will match the one used by Minecraft. Exactly how to adjust an image's color palette will depend on your image editing program.

Commands/Permissions

None

Miscellaneous

Source code is included in the .jar file.


Comments

  • To post a comment, please or register a new account.
Posts Quoted:
Reply
Clear All Quotes

About This Project

Categories

Members

Recent Files

Bukkit