mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-24 06:06:45 +01:00
added debug command permission
This commit is contained in:
parent
78596dc00e
commit
2d2d12a549
@ -44,6 +44,7 @@ public final class Permissions {
|
||||
*/
|
||||
|
||||
public static boolean mmoinfo(Permissible permissible) { return permissible.hasPermission("mcmmo.commands.mmoinfo"); }
|
||||
public static boolean mmodebug(Permissible permissible) { return permissible.hasPermission("mcmmo.commands.mmodebug"); }
|
||||
public static boolean addlevels(Permissible permissible) { return permissible.hasPermission("mcmmo.commands.addlevels"); }
|
||||
public static boolean addlevelsOthers(Permissible permissible) { return permissible.hasPermission("mcmmo.commands.addlevels.others"); }
|
||||
|
||||
|
@ -160,7 +160,7 @@ public final class CommandRegistrationManager {
|
||||
private static void registerMmoDebugCommand() {
|
||||
PluginCommand command = mcMMO.p.getCommand("mmodebug");
|
||||
command.setDescription(LocaleLoader.getString("Commands.Description.mmodebug"));
|
||||
command.setPermission(null); //No perm required to save support headaches
|
||||
command.setPermission("mcmmo.commands.mmodebug");
|
||||
command.setPermissionMessage(permissionsMessage);
|
||||
command.setUsage(LocaleLoader.getString("Commands.Usage.0", "mmodebug"));
|
||||
command.setExecutor(new PlayerDebugCommand());
|
||||
|
@ -30,6 +30,7 @@ commands:
|
||||
mmodebug:
|
||||
aliases: [mcmmodebugmode]
|
||||
description: Toggles a debug mode which will print useful information to chat
|
||||
permission: mcmmo.commands.mmodebug
|
||||
mmoinfo:
|
||||
aliases: [mcinfo]
|
||||
description: Info pages for mcMMO
|
||||
|
Loading…
Reference in New Issue
Block a user