Plugin category: Fun Suggested name: Rainbows What I want: Add the color code &u and it will make your chat format to: &c<letter>&6<letter>&e<letter>&a<letter>&b<letter>&d<letter> I want it that format please Ideas for commands: No commands needed for this plugin. Ideas for permissions: No permissions needed for this plugin. When I'd like it by: When ever =)
ColorMe contains an &rainbow color code like this! Also has more supports! http://dev.bukkit.org/bukkit-plugins/colorme/
Jduffygames Try this plugin I whipped up, its untested so let me know if it has problems. Download: https://www.dropbox.com/s/w54tfmut15n0ppc/Rainbow Chat.zip?dl=0
Jduffygames if by code you mean the thing that triggers it, its "&u" or "&U" Jduffygames I just realized a flaw in my code, here is an updated version: https://www.dropbox.com/s/w54tfmut15n0ppc/Rainbow Chat.zip?dl=0 EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Jduffygames With that pastie, there doesn't appear to be any error in the console, is there anything else above that pastie that would suggest a startup error in the plugin?
amatwiedle You have forgotten to put @EventHandler before your AsyncPlayerChatEvent! You have also forgotten to register your event. Read this.
CGA1123 I fixed the event handler mistake in the second download link I posted, unless the file glitched and it didn't save, it should have the @EventHandler in there...
CGA1123 This should be the updated one, unless dropbox isnt updating my file... https://www.dropbox.com/s/w54tfmut15n0ppc/Rainbow Chat.zip?dl=0
amatwiedle ok you have added the event handler, read the article you need to register the event as well. Also is Highest priority necessary?
CGA1123 Its registered in the onEnable already, and I think it should have highest priority since I wouldn't want my rainbow message to not work on account of something else happening at the exact same time
This will might cause lagg due the tekst has to change everytime and if you have people that talk much with it it will create a bunch of lagg :/