mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-08 07:36:42 +02:00
Still give 'nickNoMore' message when removing a nickname.
This commit is contained in:
@@ -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,7 +122,8 @@ public class Commandnick extends EssentialsLoopCommand
|
||||
return true;
|
||||
}
|
||||
}
|
||||
if (ess.getUser(lowerNick) != null && ess.getUser(lowerNick) != target) {
|
||||
if (ess.getUser(lowerNick) != null && ess.getUser(lowerNick) != target)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user