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 !"); sender.sendMessage("Online player only !");
return true; 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); plugin.management.performLogin(player, "dontneed", true);
sender.sendMessage("Force Login performed !"); sender.sendMessage("Force Login performed !");
} catch (Exception e) { } catch (Exception e) {

View File

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