mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-11-24 03:05:17 +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());
|
||||
return true;
|
||||
} 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) {
|
||||
sender.sendMessage("Usage : /authme forcelogin <playerName>");
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user