Add a permission to disable some people to be forced

This commit is contained in:
Xephi59 2015-07-05 03:35:32 +02:00
parent 723ca59bb5
commit a44481c33b
2 changed files with 8 additions and 1 deletions

View File

@ -568,6 +568,10 @@ public class AdminCommand implements CommandExecutor {
sender.sendMessage("Online player only !");
return true;
}
if (!plugin.authmePermissible(player, "authme.canbeforced")) {
sender.sendMessage("You cannot force login for this player!");
return true;
}
plugin.management.performLogin(player, "dontneed", true);
sender.sendMessage("Force Login performed !");
} catch (Exception e) {

View File

@ -169,3 +169,6 @@ permissions:
authme.admin.forcelogin:
description: Force login for that player
default: op
authme.canbeforced:
description: Can this player be forced to login
default: true