Namer
NOW WITH TagAPI SUPPORT! http://dev.bukkit.org/server-mods/tag/
The TagAPI enables users to display their nicknames above their head. This is toggleable with /toggledisplay
YOU MUST HAVE THE TagAPI.jar file in your plugins folder to enable using it.
RECENTLY ADDED VAULT SUPPORT. With vault all features (such as prefixes and suffixes) will work properly.
Namer is a special plugin that I've decided to release to the public. It has been running on the play.efcraft.net server for the past year and has made nicknames fun and entertaining for all.
What makes this plugin unique is the ability for any player to nickname another player. The way I manage this without getting endless nicknames is by having nick credits for each player. A nick credit is used to nickname yourself or another player. I have setup permissions for the plugin so admins can nickname without credits, while normal users must use credits to nickname.
I also support all colors, underline, bold, italic, and special characters. See http://www.minecraftwiki.net/wiki/Classic_server_protocol#Color_Codes for details about colors.
In the efcraft server we setup a donation option to obtain nick credits to nickname themselves or others. This was extremely popular, especially when users waged nickname wars with each other.
This plugin has been tested with bPermissions and PEX. It should support any permissions system that uses bukkit perms as well.
FEATURES
- Ability to nickname yourself or others
- Ability to give players nick credits to rename themselves or others. (nick.rename permission to enable this feature)
- Automatically converts player name to nicknames for join, quit, and death messages
- Updates the tab list with your nickname
- Manages list of unusable nicknames to prevent users from changing their nickname to admin names
- Ability to set the maximum length of a nickname
- Ability to lookup the real name of a player that has a nickname
- Ability to translate a nickname when using commands
- Use all color codes as well as underline, bold, and italics.
- Added ability to change prefix/suffix of players (PermissionsEx ONLY! ... Tested with Herochat)
- Added confirmation dialog for changing others or your own nick, prefix, suffix when using nick credits.
- NEWLY ADDED: Support with TagAPI to update the name above the player (THIS CHANGES THEIR SKIN)
- Added a /toggledisplay [name] to enable/disable displaying nickname above the player
- Ability to reset your nick, prefix, or suffix with /resetpriefix, /resetsuffix, /resetnick
- New Vault support added.
COMMANDS
Commands with [ ] are optional, commands with $ are mandatory
/nick help [#] Displays nick help menu
/nick info [player] Display player nick info about credits and nickname
/nick [player] $nickname$ Changes nickname for player
/prefix [player] $prefixname$ Changes prefix for player (PermissionsEx ONLY)
/suffix [player] $suffixname$ Changes suffix for player (PermissionsEx ONLY)
/credit [player] $#$ Adds # nick credits to player
/adddisabled $ Adds string value to disabled list
/listdisabled $ Displays disabled list
/setmaxlength $#$ Sets the max length for a nickname
/t $ Translates command example: /t 1 2 /tp nick1 nick2 (translates nick1 and nick2 to use the tp command on actual usernames... The 1 and 2 after /t indicate the location of the nicknames. /tp = 0, nick1 = 1, nick2 = 2)
/nick check $nick$ Looks up nickname for username
/toggledisplay [player] Toggles displaying a players nickname above their head (NOTE this can change a players skin)
/resetnick [player] Resets a player's nickname
/resetsuffix [player] Resets a player's suffix
/resetprefix [player] Resets a player's prefix
Permissions
nick.help /nick help
nick.check /nick check
nick.listdisabled /listdisabled
nick.adddisabled /adddisabled
nick.length /setmaxlength
nick.info /nick info
nick.name /nick [player] $nickname$ nicknames yourself or other players without using credits. Also gives access to /resetnick without credits.
Alternative permission for nick.name: nick.name.admin
nick.rename /nick $nickname$ nicknames yourself using nick credits. Also gives access to /resetnick.
Alternative permission for nick.rename: nick.name.player
nick.rename.other /nick [player] $nickname$ nicknames OTHERS using nick credits
Alternative permission for nick.rename.other: nick.name.player.other
nick.prefix.admin /prefix [player] $prefixname$ Changes prefix of yourself or others without using credits. Also gives access to /resetprefix without credits.
nick.prefix.player /prefix $prefixname$ Changes prefix of yourself using credits. Also gives access to /resetprefix.
nick.prefix.player.other /suffix [player] $prefixname$ Changes prefix of OTHERS using nick credits
nick.suffix.admin /suffix [player] $suffixname$ Changes suffix of yourself or others without using credits. Also gives access to /resetsuffix without credits.
nick.suffix.player /suffix $suffixname$ Changes suffix of yourself using credits. Also gives access to /resetsuffix.
nick.suffix.player.other /suffix [player] $suffixname$ Changes suffix of OTHERS using nick credits
nick.credit /credit [player] $#$ give credits to players to nickname their own or other names
nick.translate /t translate command
nick.toggledisplay /toggledisplay command
nick.toggledisplay.other /toggledisplay [player] command
Check out my other plugin(s)! efCraftTickets http://dev.bukkit.org/bukkit-plugins/efcrafttickets/
WEprotect - WorldEdit Protection
http://dev.bukkit.org/bukkit-plugins/weprotect/
@yanniclord
Personally I use herochat, so I have no experience with EssentialsChat. I would probably take a look at this wiki: http://wiki.ess3.net/wiki/Chat_Formatting
I dont use any special mechanics for changing the nicknames, but just set the displayname, which is built into Bukkit's player object.
@Jameshobbs
Im using EssentialsChat. Can you tell me how to get it work? What to configure? As it works with nicknames in Essentials.
@thernztrom
Yes, still waiting approval. I'd be surprised if it were not up today.
@yanniclord
Sounds like your chat plugin is using the player name and not the display name. What chat plugin are you using and see if you can configure how chat messages appear, so that it uses the display name.
@Jameshobbs
I guess it has not been approved yet? :/
@Jameshobbs
I do have Essentials, but i disabled nick in the essentials config, so Namer takes care of that. The problem is, it tells me in the Chat, that i changed nick, when i then talk, my name havent changed. What can be the problem?
Edit: The worst is, it says [LokeYourLord (my nick name) joined the game], but when i then talk, it still uses my realname :(
@yanniclord
You wouldn't happen to have essentials would you?
If you do you have to disable nicknames from essentials or the two plugins will conflict.
If that is not the issue then there must be some error in your log that could point us in the right direction.
Hmm if i change my nickname, it doesnt change, no report either, any idea?
@BensDaMan
I think MySQL support would be a bit overkill. I cache all the nicknames at load, then only load a player's nickname when they either login or get it changed. I save nicknames only if a player gets their nickname modified, so unless we have a thousand people nicknaming each other at the same time, I do not believe we will see any issues with lag.
MySQL Support?
@thernztrom
Uploaded fix that adds Vault support. I am awaiting approval by bukkit staff, but will be called "Namer_vaultSupport.jar"
I tested it with PEX and Vault, for prefixes and suffixes and things seemed to work okay. Let me know if you have any issues once its been approved.
@Vicreaft
Why do you want console to have the nick command? I put in place a bunch of things to stop consoles from changing nick names because back when I made this plugin I was using the player to send messages, so running commands from the console generated exceptions. I could fix this, but it would be quite a bit of code change, so I'd rather not update it to support changing nick names from the console.
@Jameshobbs
Yeah, the help command worked when I added that permission node, which makes me question if I entered the right node, or if the documentation was old.. Not sure what could be the problem.
Awesome! I will try it out as soon as its uploaded. :)
@thernztrom
I'll see if I can add support for zPermissions. If PEX is not found, I revert back to Bukkit's default permissions checks, which checks using Bukkit's Player object if they have the requested permissions. So i'm confused why zPermissions would have issues if I am using Bukkit's basic player.hasPermission routine. All other permissions plugins I've used works great with the basic Bukkit routine. Also I have not tested Spigot, so I'm not sure if Spigot is causing an issue as well.
Do other commands work for you such as help and whatnot?
Edit: Might be better for me to just add support for Vault and use that for everything.
Edit edit: Should take me a minute to add vault support for doing permissions checking. I believe this will resolve issues with most permissions systems. I'll still keep the original plugin dependencies, but will have a check for vault to handle permissions checks. This should also enable support for changing prefixes and suffixes for any permissions system that supports vault. I will try to get a version uploaded later tonight.
@Jameshobbs
Yeah, I know its weird. Every other plugin I use (about 30+) works fine with its permissions (normal bukkitperms). Could you maybee test this yourself?
Im running zPerms 1.1.1, Vault 1.2.30, latest Spigot build.
@thernztrom
I haven't tested with zpermissions before, but nick.name should be all you need to get things working without nick credits.
@Jameshobbs
Using zpermissions, this doesnt seem to work very well. I have given myself the permissions nick.name, nick.rename, nick.rename.others, and still I can't change my nick without credits!
Then I gave myself the permission nick.*, still the same problem. It says I need to add credit which I dont want to do. (but when I try to add credit it says insuficcent permissions)
The console does'nt have the permissions to /nick!!!
@pookeythekid
I have been looking into this for months lol. Spout is able to do it probably because it has both client and server api. As soon as minecraft/bukkit adds support for this I will add it. ... sorry :(
Is it possible to change the nametag of a player, without making them Steve? I know another plugin that uses Spout to do this and allow players to keep their skin. Is it possible for Bukkit? As both a server owner and a player, I don't really like the idea of changing the names of people while at the same time making them Steve and taking their skin away.
@DeeeM508
I need to test this... I have always used & symbol when formatting when changing nicks for other players and things seem to persist.
I have a new version I will be uploading hopefully next week that does resolve a couple issues I've been reading about, so hopefully that will resolve issues people have been having.