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];
|
final String nick = args[0];
|
||||||
if (target.getName().equalsIgnoreCase(nick))
|
if (target.getName().equalsIgnoreCase(nick))
|
||||||
{
|
{
|
||||||
|
String oldName = target.getDisplayName();
|
||||||
setNickname(server, sender, target, nick);
|
setNickname(server, sender, target, nick);
|
||||||
|
if (!target.getDisplayName().equalsIgnoreCase(oldName))
|
||||||
|
{
|
||||||
|
target.sendMessage(tl("nickNoMore"));
|
||||||
|
}
|
||||||
target.sendMessage(tl("nickSet", target.getDisplayName()));
|
target.sendMessage(tl("nickSet", target.getDisplayName()));
|
||||||
}
|
}
|
||||||
else if ("off".equalsIgnoreCase(nick))
|
else if ("off".equalsIgnoreCase(nick))
|
||||||
@@ -117,8 +122,9 @@ public class Commandnick extends EssentialsLoopCommand
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (ess.getUser(lowerNick) != null && ess.getUser(lowerNick) != target) {
|
if (ess.getUser(lowerNick) != null && ess.getUser(lowerNick) != target)
|
||||||
return true;
|
{
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user