Peter25715 I see no reason to modify the player's name to change the color of their message when you could just prepend a color to the beginning of their message. Also, instead of defining specific permissions for each color, you could iterate through each color in the ChatColor enumeration and determine whether the player has permission to use that color: Code:java @EventHandlerpublic void onChat(AsyncPlayerChatEvent event) { for (ChatColor color : ChatColor.values()) { if (event.getPlayer().hasPermission("chatcolor." + color.toString().toLowerCase().replace("_", ""))) { event.setMessage(color + event.getMessage()); } }}
Dragonphase, I understand that, I already own a plugin that does NOT change the name. But this is a really simple way to let some people have this idea in their imaginations!
My spelling was so outrageously incorrect, It couldn't even fix it. Not even bob the builder could fix it. But you could fix it 0.o