SimpleTabColors
一款轻量级插件,可为你的标签页列表添加基于权限的颜色。
若希望玩家或用户组在列表中显示特殊颜色,只需赋予他们类似 simpletabcolors.[颜色代码] 的权限即可。例如,将权限 simpletabcolors.4 分配给管理员用户组,会使他们在标签页列表中显示为深红色名称。
本插件旨在成为一款轻量级、基于权限的插件。其代码不足 30 行,并且在可预见的未来中无需更新即可继续兼容未来的 Bukkit/Minecraft 版本。如果它已经半年没有更新,也无需担心!
权限
- simpletabcolors.[颜色代码]:使拥有该权限的玩家在标签页列表中显示为指定的颜色代码对应的颜色。
* 节点问题/解决方案
如果你使用的权限插件允许你设置 * 节点权限,这将授予你所有权限,包括标签页列表中所有颜色的权限。系统将使用它找到的第一个权限,这意味着如果你拥有星号节点,通常会显示为黑色。
在使用 * 节点时,你需要否定你不想要的所有颜色的权限,直到达到你想要的颜色为止。例如,在 bPermissions 中,你可以通过在权限前加上负号来否定权限。这样你的权限配置可能看起来像这样:
- *
- -simpletabcolors.1 # 否定你不想要的每种颜色。
- -simpletabcolors.2
- -simpletabcolors.3
- simpletabcolors.4 # 此项未被否定,因为你想要深红色(4)。
仅当你拥有或继承 * 节点时才需要否定权限。在其他情况下,插件应能正常工作。
截图

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.
Screenshot

评论 0
登录后参与评分
还没有评论,来抢沙发吧