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 !");
|
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) {
|
||||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user