mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-22 09:08:01 +01:00
parent
ddc258ed11
commit
4b8b770c30
@ -24,9 +24,6 @@ public class Commandnick extends EssentialsLoopCommand {
|
||||
if (args.length < 1) {
|
||||
throw new NotEnoughArgumentsException();
|
||||
}
|
||||
if (!ess.getSettings().changeDisplayName()) {
|
||||
throw new Exception(tl("nickDisplayName"));
|
||||
}
|
||||
|
||||
if (args.length > 1 && user.isAuthorized("essentials.nick.others")) {
|
||||
loopOfflinePlayers(server, user.getSource(), false, true, args[0], formatNickname(user, args[1]).split(" "));
|
||||
@ -41,9 +38,6 @@ public class Commandnick extends EssentialsLoopCommand {
|
||||
if (args.length < 2) {
|
||||
throw new NotEnoughArgumentsException();
|
||||
}
|
||||
if (!ess.getSettings().changeDisplayName()) {
|
||||
throw new Exception(tl("nickDisplayName"));
|
||||
}
|
||||
loopOfflinePlayers(server, sender, false, true, args[0], formatNickname(null, args[1]).split(" "));
|
||||
sender.sendMessage(tl("nickChanged"));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user