mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-09-07 04:38:03 +02:00
Add a permission to disable some people to be forced
This commit is contained in:
parent
723ca59bb5
commit
a44481c33b
@ -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) {
|
||||
|
@ -168,4 +168,7 @@ permissions:
|
||||
default: op
|
||||
authme.admin.forcelogin:
|
||||
description: Force login for that player
|
||||
default: op
|
||||
default: op
|
||||
authme.canbeforced:
|
||||
description: Can this player be forced to login
|
||||
default: true
|
Loading…
Reference in New Issue
Block a user