DisplayTags
Ever wanted to change the color of a player's name? Well, now you can! With this plugin, you can change the color of a player's name in the chat, tab, and the name above their head. This will be done for GROUPS (from your permissions plugin)
You can enable/disable what you want to be displayed (tab, chat, displayname)
Examples
Normally, a player's name would be white, but with this plugin, you can change a player's name to, say, red:
In the tab:
In the chat:
Above the head (Displayname):
The Config
# Set player's (colored) name in the tab. Enabled? tab-names: true # Set player's (colored) name in chat. Enabled? chat-names: true # Set player's (colored) name above the player's head. Enabled? display-names: true groups: # These groups should be also in your permissions folder. # Simply add the group and set the color next to it. # Don't forget the quotes! # You can set colors like &c&l. Owner: '&c' Admin: '&4' VIP: '&a'
Commands and Permissions
The only command is /rt which reloads the config and it reloads the displaynames. The permission is displaytags.reload
Tags will automatically reload every 5 minutes. A players tag will also be reloaded when he/she relogs.
Dependencies
You NEED Vault and TagAPI for this plugin to work. You will also need some sort of permissions plugin that is supported by Vault!
Ill fix this plugin tomorrow morning
For some reason only about %50 of players get the colored name, everyone else gets a very long error in console.
Clashes with the plugin "HealthBar." When I use them together the colored name shows up but it shows the hearts of a player as 0 above someones name, is there a way you can fix this? Also would it be possible to make it so a players rank can be added above their head? Example: [Owner]Name
Hi Mirror Realm, i am running from your old ip kingspvp, just curious, are you looking for work?, my skype is my_fu__strong__ : pork.crackle@gmail.com, add me if your keen to be paid for dev.
minediction.com
@lanman14444
I made it like that. Its only possible to make the characters longer than 16 characters if Iess with minecrafts code which which im not going to go that far.
@CommodoreAlpha
I've set the priority to highest so this plugin should override. Go ahead and give it a try and if it doesn't work I'll look into making it compatible.
Would this conflict with another plugin that uses TagAPI like BattleTags or VanishNoPacket? Or will those other plugins automatically override this one when it comes to display-names?
@MadGrover
Oh yeah, the 16 character thing. I'll fix that when I get home.
Erorr: 2013-12-05 14:18:07 [SEVERE] Could not pass event PlayerReceiveNameTagEvent to DisplayTags v1.0 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) at org.kitteh.tag.TagAPI.getName(TagAPI.java:327) at org.kitteh.tag.TagAPI.getNameForPacket20(TagAPI.java:202) at org.kitteh.tag.compat.v1_6_R3.DefaultHandler.handlePacketAdd(DefaultHandler.java:55) at org.kitteh.tag.api.PacketHandler$ArrayLizt.add(PacketHandler.java:48) at net.minecraft.server.v1_6_R3.NetworkManager.queue(NetworkManager.java:87) at net.minecraft.server.v1_6_R3.PlayerConnection.sendPacket(PlayerConnection.java:732) at net.minecraft.server.v1_6_R3.EntityTrackerEntry.updatePlayer(EntityTrackerEntry.java:320) at net.minecraft.server.v1_6_R3.EntityTracker.a(EntityTracker.java:204) at net.minecraft.server.v1_6_R3.EntityPlayer.l_(EntityPlayer.java:216) at net.minecraft.server.v1_6_R3.World.entityJoinedWorld(World.java:1354) at net.minecraft.server.v1_6_R3.World.playerJoinedWorld(World.java:1335) at net.minecraft.server.v1_6_R3.World.tickEntities(World.java:1223) at net.minecraft.server.v1_6_R3.WorldServer.tickEntities(WorldServer.java:480) at net.minecraft.server.v1_6_R3.MinecraftServer.t(MinecraftServer.java:574) at net.minecraft.server.v1_6_R3.DedicatedServer.t(DedicatedServer.java:227) at net.minecraft.server.v1_6_R3.MinecraftServer.s(MinecraftServer.java:488) at net.minecraft.server.v1_6_R3.MinecraftServer.run(MinecraftServer.java:421) at net.minecraft.server.v1_6_R3.ThreadServerApplication.run(SourceFile:583) Caused by: java.lang.IllegalArgumentException: Player list names can only be a maximum of 16 characters long at org.bukkit.craftbukkit.v1_6_R3.entity.CraftPlayer.setPlayerListName(CraftPlayer.java:174) at me.MirrorRealm.tags.Main.onNameTag(Main.java:77) at sun.reflect.GeneratedMethodAccessor89.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425) ... 21 more
@red0fireus
I liked your comment because I thought it says now the plugin works :P If it doesn't work it's probably conflicting with Essentials (or another plugin) or you messed up the config.
Now the plugin does not work :)
@MirrorRealm I'm sort of new to this... how do I add people or groups? Do I write their username?
Can you make it possible to set a custom time, the plugin will reload the tags? (1 minute or so).
Thanks ;)
@ThePwnzaWabbit
You add any of your groups under the 'groups' section in the config and set the color to something. Go in game and do /rt and people should have colored names.
I need help! I do not understand how you use this. Do I have to type something in the permissions or config folder? Or is there a certain command I use? Please help!
@red0fireus
1.6.4 (1.7 has not come out for craftbukkit)
If it doesn't work you did something wrong in the config.
The most common mistake is not putting the colors in single quotes like this '&4'
The other big mistake is not having Vault and TagAPI installed on your server. This plugin won't work if you don't have those two.
did you use 1.6.4 or 1.7.2 ?
Some reason its not working for me got any help ?
Nice Plugin! ;)