mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-09-03 10:50:27 +02:00
Design improvements on Permissions.java
- admin.debug is now in the plugin.yml - all permissions are now in alphabetic order - aligned every permissions group - Added additonal comments
This commit is contained in:
parent
d5c7bb7d27
commit
584a3d9ab0
|
@ -6,14 +6,15 @@ package fr.neatmonster.nocheatplus.permissions;
|
|||
public class Permissions {
|
||||
private static final String NOCHEATPLUS = "nocheatplus";
|
||||
|
||||
// Access to all commands and debug info.
|
||||
private static final String ADMINISTRATION = NOCHEATPLUS + ".admin";
|
||||
// Debug permission, for player spam (not in plugin.yml, currently).
|
||||
public static final String ADMINISTRATION_DEBUG = ADMINISTRATION + ".debug";
|
||||
|
||||
// Bypasses held extra from command permissions.
|
||||
private final static String BYPASS = NOCHEATPLUS + ".bypass";
|
||||
public static final String BYPASS_DENY_LOGIN = BYPASS + "denylogin";
|
||||
|
||||
// Bypass command filter.
|
||||
private static final String FILTER = NOCHEATPLUS + ".filter";
|
||||
public static final String FILTER_COMMAND = FILTER + ".command";
|
||||
public static final String FILTER_COMMAND_NOCHEATPLUS = FILTER_COMMAND + ".nocheatplus";
|
||||
|
@ -22,27 +23,27 @@ public class Permissions {
|
|||
public static final String NOTIFY = NOCHEATPLUS + ".notify";
|
||||
|
||||
// Command permissions.
|
||||
public static final String COMMAND = NOCHEATPLUS + ".command";
|
||||
public static final String COMMAND_COMMANDS = COMMAND + ".commands";
|
||||
public static final String COMMAND_EXEMPT = COMMAND + ".exempt";
|
||||
public static final String COMMAND_EXEMPTIONS = COMMAND + ".exemptions";
|
||||
public static final String COMMAND_INFO = COMMAND + ".info";
|
||||
public static final String COMMAND_INSPECT = COMMAND + ".inspect";
|
||||
public static final String COMMAND_LAG = COMMAND + ".lag";
|
||||
public static final String COMMAND_NOTIFY = COMMAND + ".notify";
|
||||
public static final String COMMAND_RELOAD = COMMAND + ".reload";
|
||||
public static final String COMMAND_REMOVEPLAYER = COMMAND + ".removeplayer";
|
||||
public static final String COMMAND_UNEXEMPT = COMMAND + ".unexempt";
|
||||
public static final String COMMAND_VERSION = COMMAND + ".version";
|
||||
public static final String COMMAND = NOCHEATPLUS + ".command";
|
||||
public static final String COMMAND_COMMANDS = COMMAND + ".commands";
|
||||
public static final String COMMAND_EXEMPT = COMMAND + ".exempt";
|
||||
public static final String COMMAND_EXEMPTIONS = COMMAND + ".exemptions";
|
||||
public static final String COMMAND_INFO = COMMAND + ".info";
|
||||
public static final String COMMAND_INSPECT = COMMAND + ".inspect";
|
||||
public static final String COMMAND_LAG = COMMAND + ".lag";
|
||||
public static final String COMMAND_NOTIFY = COMMAND + ".notify";
|
||||
public static final String COMMAND_RELOAD = COMMAND + ".reload";
|
||||
public static final String COMMAND_REMOVEPLAYER = COMMAND + ".removeplayer";
|
||||
public static final String COMMAND_UNEXEMPT = COMMAND + ".unexempt";
|
||||
public static final String COMMAND_VERSION = COMMAND + ".version";
|
||||
|
||||
// Auxiliary Commands permissions.
|
||||
public static final String COMMAND_BAN = COMMAND + ".ban";
|
||||
public static final String COMMAND_DELAY = COMMAND + ".delay";
|
||||
public static final String COMMAND_KICK = COMMAND + ".kick";
|
||||
public static final String COMMAND_KICKLIST = COMMAND + ".kicklist";
|
||||
public static final String COMMAND_TELL = COMMAND + ".tell";
|
||||
public static final String COMMAND_TEMPKICK = COMMAND + ".tempkick";
|
||||
public static final String COMMAND_UNKICK = COMMAND + ".unkick";
|
||||
// Auxiliary Command permissions.
|
||||
public static final String COMMAND_BAN = COMMAND + ".ban";
|
||||
public static final String COMMAND_DELAY = COMMAND + ".delay";
|
||||
public static final String COMMAND_KICK = COMMAND + ".kick";
|
||||
public static final String COMMAND_KICKLIST = COMMAND + ".kicklist";
|
||||
public static final String COMMAND_TELL = COMMAND + ".tell";
|
||||
public static final String COMMAND_TEMPKICK = COMMAND + ".tempkick";
|
||||
public static final String COMMAND_UNKICK = COMMAND + ".unkick";
|
||||
|
||||
// Permissions for the individual checks.
|
||||
public static final String CHECKS = NOCHEATPLUS + ".checks";
|
||||
|
@ -122,6 +123,7 @@ public class Permissions {
|
|||
public static final String MOVING_SURVIVALFLY_SPRINTING = MOVING_SURVIVALFLY + ".sprinting";
|
||||
public static final String MOVING_SURVIVALFLY_STEP = MOVING_SURVIVALFLY + ".step";
|
||||
|
||||
// Permissions for the individual client mods.
|
||||
private static final String MODS = NOCHEATPLUS + ".mods";
|
||||
|
||||
private static final String CJB = MODS + ".cjb";
|
||||
|
@ -137,12 +139,12 @@ public class Permissions {
|
|||
private static final String REI = MODS + ".rei";
|
||||
public static final String REI_CAVE = REI + ".cave";
|
||||
public static final String REI_RADAR = REI + ".radar";
|
||||
public static final String REI_RADAR_PLAYER = REI_RADAR + ".player";
|
||||
public static final String REI_RADAR_ANIMAL = REI_RADAR + ".animal";
|
||||
public static final String REI_RADAR_PLAYER = REI_RADAR + ".player";
|
||||
public static final String REI_RADAR_MOB = REI_RADAR + ".mob";
|
||||
public static final String REI_RADAR_OTHER = REI_RADAR + ".other";
|
||||
public static final String REI_RADAR_SLIME = REI_RADAR + ".slime";
|
||||
public static final String REI_RADAR_SQUID = REI_RADAR + ".squid";
|
||||
public static final String REI_RADAR_OTHER = REI_RADAR + ".other";
|
||||
|
||||
private static final String SMARTMOVING = MODS + ".smartmoving";
|
||||
public static final String SMARTMOVING_CLIMBING = SMARTMOVING + ".climbing";
|
||||
|
@ -153,8 +155,8 @@ public class Permissions {
|
|||
public static final String SMARTMOVING_SWIMMING = SMARTMOVING + ".swimming";
|
||||
|
||||
private static final String ZOMBE = MODS + ".zombe";
|
||||
public static final String ZOMBE_CHEAT = ZOMBE + ".cheat";
|
||||
public static final String ZOMBE_FLY = ZOMBE + ".fly";
|
||||
public static final String ZOMBE_NOCLIP = ZOMBE + ".noclip";
|
||||
public static final String ZOMBE_CHEAT = ZOMBE + ".cheat";
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user