mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-11-24 03:05:17 +01: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) {
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user