- Adjust javadoc - Remove unused PlayerAuth constructor - Replace legacy Settings with NewSetting calls - Add process service to all (a)sync processes - Change IP manager to only cache the calls to the VeryGames API
83 lines
1.6 KiB
Java
83 lines
1.6 KiB
Java
package fr.xephi.authme.permission;
|
|
|
|
/**
|
|
* AuthMe player permission nodes, for regular players.
|
|
*/
|
|
public enum PlayerPermission implements PermissionNode {
|
|
|
|
/**
|
|
* Command permission to login.
|
|
*/
|
|
LOGIN("authme.player.login"),
|
|
|
|
/**
|
|
* Command permission to logout.
|
|
*/
|
|
LOGOUT("authme.player.logout"),
|
|
|
|
/**
|
|
* Command permission to register.
|
|
*/
|
|
REGISTER("authme.player.register"),
|
|
|
|
/**
|
|
* Command permission to unregister.
|
|
*/
|
|
UNREGISTER("authme.player.unregister"),
|
|
|
|
/**
|
|
* Command permission to change the password.
|
|
*/
|
|
CHANGE_PASSWORD("authme.player.changepassword"),
|
|
|
|
/**
|
|
* Command permission to add an email address.
|
|
*/
|
|
ADD_EMAIL("authme.player.email.add"),
|
|
|
|
/**
|
|
* Command permission to change the email address.
|
|
*/
|
|
CHANGE_EMAIL("authme.player.email.change"),
|
|
|
|
/**
|
|
* Command permission to recover an account using it's email address.
|
|
*/
|
|
RECOVER_EMAIL("authme.player.email.recover"),
|
|
|
|
/**
|
|
* Command permission to use captcha.
|
|
*/
|
|
CAPTCHA("authme.player.captcha"),
|
|
|
|
/**
|
|
* Permission for users a login can be forced to.
|
|
*/
|
|
CAN_LOGIN_BE_FORCED("authme.player.canbeforced"),
|
|
|
|
/**
|
|
* Permission to use to see own other accounts.
|
|
*/
|
|
SEE_OWN_ACCOUNTS("authme.player.seeownaccounts");
|
|
|
|
/**
|
|
* The permission node.
|
|
*/
|
|
private String node;
|
|
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param node Permission node.
|
|
*/
|
|
PlayerPermission(String node) {
|
|
this.node = node;
|
|
}
|
|
|
|
@Override
|
|
public String getNode() {
|
|
return node;
|
|
}
|
|
|
|
}
|