SimpleTabColors
SimpleTabColors
A lightweight that adds permission-based colors to your tab list.
To have a player or group get a special color in the list, simply give them a permission that looks something like simpletabcolors.[color code]. For example, the permission simpletabcolors.4 applied to your admins group would give them a dark red name in the tab list.
This was designed to be a lightweight, permission-based plugin. It's less than 30 lines of code, and will remain working with future Bukkit/Minecraft updates for the foreseeable future with no updates required. Don't be worried if it hasn't been updated for 6 months!
Permissions
- simpletabcolors.[color code]: Gives the player with the permission a name in the tab list that is colored with the given color code.
The * Node Issue/Solution
If you have a permissions plugin that allows you to have a * node permission, this will give you all permissions, including the permissions for all the colors in the tab list. The first permission it finds will be used, which means if you have the star node, you'll usually have black.
When using the * node, you'll want to negate the permissions for all the colors you don't want until you get to the color you want. For example, in bPermissions, you negate permissions by using a minus sign in front of the permission. That might make your permissions look something like this:
- * - -simpletabcolors.1 # Negate every color you don't want. - -simpletabcolors.2 - -simpletabcolors.3 - simpletabcolors.4 # This one isn't negated because you want the dark red color (4).
You only have to negate permissions if you have or inherit the * node. The plugin should work fine under all other circumstances.
@Builder874
The same way you would any other color.
@TheFitSoldier
Try it and see!
@S1lverK3y
This will be included in the next update.
How do you get light blue/aqua to work?
Will this work with this plugin: http://dev.bukkit.org/server-mods/mytablist/
Like I want a custom tab list to begin with, but all donators see their name in color as a plus. Possible if I combine this and MyTablist?
Could you make the lenght configurable when the "..." effect takes place?
Would make this masterpiece even more awesome.
Great plugin though, simple, lightweight, clean and clever.
Regards,
S1lver
@bwinkl04
This is not possible with the Bukkit API.
This is pretty great, I have been using it for a while now. Can I make only one request? Can you add a feature to sort the players by rank? so the permission would be something like:
- simpletabcolors.[color code].[rank]
or even separate permissions such as:
- simpletabcolors.[color code]
- simpletabcolors.[rank]
And the lower the rank number, the higher the post in tab. i.e. a player with a rank of 1 would be above a player with a rank of 2.
@zyxep
I'm using inherited groups with PermissionsBukkit just fine. Be sure to set the previous group to not have the permission for the other color.
it doesn't work with inherited groups .
I have a default group called Member with a color.
Then i have a group called VIP it is inheritanced group "member" and the VIP has a color.
and so on, my group "owner" has "simpletabcolors.8" but my name is green :S. im using GroupManager.
Dont work for my my name is black, i'am 1.5.1 :s
any one whom has the issue with pex superperm node just add( - -simpletabcolors.<color codes you dont want>) for all the colors you dont want before the superperm (- '*') node
@chaseoes
maybe for the similar names thing you could just add a nick name system to the tab list and allow the server owners to take care of the issues since i see no reason that what happened to @indigodistrict to actually happen but until a issue in the code is found that could be a simple fix.
@chaseoes
I honestly have no clue though :/ There has to be some way, right?
Would it be at all possible to only use two characters when applying the color?
What I mean is ten characters is pretty rough when shortening names...
@valerastar
This works fine on 1.5.1.
@deleted_9935739
I'm still waiting for a non-smartass response on what you want me to do about it. :)
Please make plugin for 1.5(1) I want it for my server
Is there any plan on making it so 2 players with a similar name can join together without causing a crash?
Nice plugin. Very helpful!
Could you make it so if a player has a nickname on the server it shows there nickname instead?
@bebosny
Other plugins allow you to do this.
Hello, Could you add a feature that allows you to put in custom lines and parameters I'm sure alot of people would like that. Here is a example http://imgur.com/DZ8A37Y