Implement nicknames#19
Conversation
I'm not convinced about the command syntax - should this be split into separate commands?
|
What about something along the lines of:
|
|
What about a player setting their own nickname? Would this require them to include their own username to set/clear their nickname? |
|
I don't think it would be the worst thing in the world for a player to have to specify their own username to set their own nickname, but it definitely needs a little more thought. I'm not too keen on having a |
|
@md678685 So should this PR doing a sweeping change allowing other commands to target players based on their nickname? |
|
I suppose so - this can be done in a method on CommandWrapper or UserManager. |
|
Looking at other plugins, there are a couple other ways to do this. EssentialsX uses a single command:
Nucleus uses two separate commands that share a single permission:
BungeeSuiteChat similarly uses two separate commands for setting and clearing nicknames with a shared permission node. None of the above provide a command to see your own nickname, though the nicknames can be seen elsewhere such as in chat or command feedback (at least in EssentialsX). EssentialsX's command is probably the most familiar to players, but it isn't as clear as separate commands. I'd be happy to update this PR to use either separate commands or an EssentialsX-like Edit: where exactly should we handle looking up players by nickname in commands? Edit 2: I just realised |
Add nicknames. Players can set their own using
/nickname set <nickname>, check theirs using/nickname getand clear theirs with/nickname clear. Their nickname is used as their display name where appropriate.I'm not convinced about the command syntax - should this be split into separate commands? In addition, this PR currently doesn't provide a way to see/check/clear other people's nicknames (which would be useful for moderators etc.).