#315 #305 Refactor HelpProvider - add bit flags, reduce duplication (wip)

This commit is contained in:
ljacqu
2015-12-12 22:50:07 +01:00
parent d26cbfbd14
commit 01cba2a508
4 changed files with 242 additions and 118 deletions
@@ -6,11 +6,28 @@ package fr.xephi.authme.permission;
public enum DefaultPermission {
/** No one can execute the command. */
NOT_ALLOWED,
NOT_ALLOWED("No permission"),
/** Only players with the OP status may execute the command. */
OP_ONLY,
OP_ONLY("OP's only"),
/** The command can be executed by anyone. */
ALLOWED
ALLOWED("Everyone allowed");
/** Textual representation of the default permission. */
private final String title;
/**
* Constructor.
* @param title The textual representation
*/
DefaultPermission(String title) {
this.title = title;
}
/** Return the textual representation. */
public String getTitle() {
return title;
}
}