Need help with MapPallete

Discussion in 'Spigot Help' started by Joiubaxas, Jun 21, 2018.

  1. I'm currently working on a map-itemframe plugin. I'm trying to draw MapCanvas.drawText with colors the only way i found of doing this is
    mapCanvas.drawText(15, 15, MinecraftFont.Font, "ยง" + (one of MapPallete color codes) + text);

    The problem with this is that MapPallete colors https://hub.spigotmc.org/javadocs/spigot/org/bukkit/map/MapPalette.html aren't similar to ChatColor colors at all. Is there any way to display RGB colors or ChatColor colors using MapPallete or mapCanvas.drawText?
     
  2. Thanks for the answer. Do you have any idea how to change the font of the rendered text?
     
  3. You could just draw everything onto image and then convert it...