mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 04:20:41 +00:00
Still give 'nickNoMore' message when removing a nickname.
This commit is contained in:
parent
8311da2653
commit
093a1f677b
1 changed files with 8 additions and 2 deletions
|
@ -64,7 +64,12 @@ public class Commandnick extends EssentialsLoopCommand
|
|||
final String nick = args[0];
|
||||
if (target.getName().equalsIgnoreCase(nick))
|
||||
{
|
||||
String oldName = target.getDisplayName();
|
||||
setNickname(server, sender, target, nick);
|
||||
if (!target.getDisplayName().equalsIgnoreCase(oldName))
|
||||
{
|
||||
target.sendMessage(tl("nickNoMore"));
|
||||
}
|
||||
target.sendMessage(tl("nickSet", target.getDisplayName()));
|
||||
}
|
||||
else if ("off".equalsIgnoreCase(nick))
|
||||
|
@ -117,8 +122,9 @@ public class Commandnick extends EssentialsLoopCommand
|
|||
return true;
|
||||
}
|
||||
}
|
||||
if (ess.getUser(lowerNick) != null && ess.getUser(lowerNick) != target) {
|
||||
return true;
|
||||
if (ess.getUser(lowerNick) != null && ess.getUser(lowerNick) != target)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue