Comedyman937 submitted a new plugin: ChatBubbles - Show players chat messages above their head! Read more about this plugin...
It basically gets rid of the default chatroom and then replaces the players name with their message for a set time. You can look at my code as a "guide" but dont just do a copy/paste Did he make that himself or is he using this plugin?
Yes. You just use $player->getNameTag(); and $player->setNameTag(); but you should also use $player->getDisplayName(); depending on what you are trying to do
nice nice . that well be helpful for my villeger plugin that well make everybody in the server look like villeger ( no advertiesment )
getDisplayName() can contain extra info. getName() is the actual player name without things added by plugins. Also, you can create new lines using "\n" (so for example, first line is the old nametag, then, extra messages)
Also, I see that this plugin won't behave correctly under the /reload command. Try to remove old nametags from players onDisable()
Yeah I did that for the player name when a Chat Bubble is created. I just need to find out how to make it so it seperates the lines after a certain amount of characters. Example: Becomes something like: Doing that would make the bubbles less ugly Didn't even think of that! I'll do that later.
Comedyman937 updated ChatBubbles with a new update entry: Fixes and Improvements Read the rest of this update entry...
Theres only a couple more things to do for the plugin. Im going to make the plugin a little more customizable and whenever colors are able to be added to nametags I will add that as an option too