mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-12-20 23:57:34 +01:00
Added JavaDocs to PlayerPermission class, fixed various permission nodes
This commit is contained in:
parent
42cebacd60
commit
3d0bf674bd
@ -1,49 +1,110 @@
|
||||
package fr.xephi.authme.permission;
|
||||
|
||||
/**
|
||||
* AuthMe player command permission nodes, for regular players.
|
||||
* AuthMe player permission nodes, for regular players.
|
||||
*/
|
||||
public enum PlayerPermission implements PermissionNode {
|
||||
|
||||
BYPASS_ANTIBOT("authme.command.player.bypassantibot"),
|
||||
/**
|
||||
* Permission node to bypass AntiBot protection.
|
||||
*/
|
||||
BYPASS_ANTIBOT("authme.player.bypassantibot"),
|
||||
|
||||
IS_VIP("authme.command.player.vip"),
|
||||
/**
|
||||
* Permission node to identify VIP users.
|
||||
*/
|
||||
IS_VIP("authme.player.vip"),
|
||||
|
||||
/**
|
||||
* Command permission to login.
|
||||
*/
|
||||
LOGIN("authme.command.player.login"),
|
||||
|
||||
/**
|
||||
* Command permission to logout.
|
||||
*/
|
||||
LOGOUT("authme.command.player.logout"),
|
||||
|
||||
/**
|
||||
* Command permission to register.
|
||||
*/
|
||||
REGISTER("authme.command.player.register"),
|
||||
|
||||
/**
|
||||
* Command permission to unregister.
|
||||
*/
|
||||
UNREGISTER("authme.command.player.unregister"),
|
||||
|
||||
/**
|
||||
* Command permission to change the password.
|
||||
*/
|
||||
CHANGE_PASSWORD("authme.command.player.changepassword"),
|
||||
|
||||
/**
|
||||
* Command permission to add an email address.
|
||||
*/
|
||||
ADD_EMAIL("authme.command.player.email.add"),
|
||||
|
||||
/**
|
||||
* Command permission to change the email address.
|
||||
*/
|
||||
CHANGE_EMAIL("authme.command.player.email.change"),
|
||||
|
||||
/**
|
||||
* Command permission to recover an account using it's email address.
|
||||
*/
|
||||
RECOVER_EMAIL("authme.command.player.email.recover"),
|
||||
|
||||
/**
|
||||
* Command permission to use captcha.
|
||||
*/
|
||||
CAPTCHA("authme.command.player.captcha"),
|
||||
|
||||
/**
|
||||
* Administrator command to convert old or other data to AuthMe data.
|
||||
*/
|
||||
CONVERTER("authme.command.player.converter"),
|
||||
|
||||
CAN_LOGIN_BE_FORCED("authme.command.player.canbeforced"),
|
||||
/**
|
||||
* Permission for users a login can be forced to.
|
||||
*/
|
||||
CAN_LOGIN_BE_FORCED("authme.player.canbeforced"),
|
||||
|
||||
/**
|
||||
* Permission for users to bypass force-survival mode.
|
||||
*/
|
||||
BYPASS_FORCE_SURVIVAL("authme.command.player.bypassforcesurvival"),
|
||||
|
||||
/**
|
||||
* Permission for users to allow two accounts.
|
||||
*/
|
||||
ALLOW_MULTIPLE_ACCOUNTS("authme.command.player.allow2accounts"),
|
||||
|
||||
/**
|
||||
* Permission for user to see other accounts.
|
||||
*/
|
||||
SEE_OTHER_ACCOUNTS("authme.command.player.seeotheraccounts");
|
||||
|
||||
/**
|
||||
* Permission node.
|
||||
*/
|
||||
private String node;
|
||||
|
||||
/**
|
||||
* Get the permission node.
|
||||
*
|
||||
* @return Permission node.
|
||||
*/
|
||||
@Override
|
||||
public String getNode() {
|
||||
return node;
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param node Permission node.
|
||||
*/
|
||||
PlayerPermission(String node) {
|
||||
this.node = node;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user