Change forcelogin only be performed by console

This commit is contained in:
Xephi59 2015-07-05 03:29:19 +02:00
parent 52c023b1f2
commit 723ca59bb5

View File

@ -554,6 +554,10 @@ public class AdminCommand implements CommandExecutor {
sender.sendMessage("[AuthMe] Successfully reset position for " + auth.getNickname()); sender.sendMessage("[AuthMe] Successfully reset position for " + auth.getNickname());
return true; return true;
} else if (args[0].equalsIgnoreCase("forcelogin")) { } else if (args[0].equalsIgnoreCase("forcelogin")) {
if (!(sender instanceof ConsoleCommandSender)) {
sender.sendMessage("This command can only be performed by console");
return true;
}
if (args.length < 2) { if (args.length < 2) {
sender.sendMessage("Usage : /authme forcelogin <playerName>"); sender.sendMessage("Usage : /authme forcelogin <playerName>");
return true; return true;