From 017126d422e8e3651e8573694484740ef0d69930 Mon Sep 17 00:00:00 2001 From: luacs1998 Date: Sat, 13 Dec 2014 14:08:45 +0800 Subject: [PATCH] Some fixes and tweaks for PR #309 Apologies for the inconvenience. --- .../main/java/com/sk89q/worldedit/forge/ForgePlatform.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/worldedit-forge/src/main/java/com/sk89q/worldedit/forge/ForgePlatform.java b/worldedit-forge/src/main/java/com/sk89q/worldedit/forge/ForgePlatform.java index d4021ff92..f98f754f9 100644 --- a/worldedit-forge/src/main/java/com/sk89q/worldedit/forge/ForgePlatform.java +++ b/worldedit-forge/src/main/java/com/sk89q/worldedit/forge/ForgePlatform.java @@ -153,8 +153,8 @@ class ForgePlatform extends AbstractPlatform implements MultiUserPlatform { for (final CommandMapping command : dispatcher.getCommands()) { CommandWrapper wrapper = new CommandWrapper(command); mcMan.registerCommand(wrapper); - ForgeWorldEdit.inst.getPermissionsProvider().registerPermission(wrapper, command.getDescription().getPermissions().get(0)); - if (command.getDescription().getPermissions().size() > 1) { + if (command.getDescription().getPermissions().size() > 0) { + ForgeWorldEdit.inst.getPermissionsProvider().registerPermission(wrapper, command.getDescription().getPermissions().get(0)); for (int i = 1; i < command.getDescription().getPermissions().size(); i++) { ForgeWorldEdit.inst.getPermissionsProvider().registerPermission(null, command.getDescription().getPermissions().get(i)); } @@ -194,7 +194,7 @@ class ForgePlatform extends AbstractPlatform implements MultiUserPlatform { capabilities.put(Capability.CONFIGURATION, Preference.PREFER_OTHERS); capabilities.put(Capability.WORLDEDIT_CUI, Preference.NORMAL); capabilities.put(Capability.GAME_HOOKS, Preference.NORMAL); - capabilities.put(Capability.PERMISSIONS, Preference.PREFER_OTHERS); + capabilities.put(Capability.PERMISSIONS, Preference.NORMAL); capabilities.put(Capability.USER_COMMANDS, Preference.NORMAL); capabilities.put(Capability.WORLD_EDITING, Preference.PREFERRED); return capabilities;