mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-11-03 01:00:18 +01:00
Change forcelogin only be performed by console
This commit is contained in:
parent
52c023b1f2
commit
723ca59bb5
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user