From d926d9ac83819ba10372113ec999a9783f6092cb Mon Sep 17 00:00:00 2001 From: Xephi Date: Fri, 10 Jan 2014 01:38:46 +0100 Subject: [PATCH] Fix Exception --- pom.xml | 2 +- src/main/java/fr/xephi/authme/commands/AdminCommand.java | 9 +++++---- src/main/resources/plugin.yml | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/pom.xml b/pom.xml index fbba9fcd..1bde7c9f 100644 --- a/pom.xml +++ b/pom.xml @@ -24,7 +24,7 @@ - 3.2 + 3.2.1-DEV-1 org.bukkit diff --git a/src/main/java/fr/xephi/authme/commands/AdminCommand.java b/src/main/java/fr/xephi/authme/commands/AdminCommand.java index fdedb4a8..7ad2da48 100644 --- a/src/main/java/fr/xephi/authme/commands/AdminCommand.java +++ b/src/main/java/fr/xephi/authme/commands/AdminCommand.java @@ -55,10 +55,6 @@ public class AdminCommand implements CommandExecutor { @Override public boolean onCommand(CommandSender sender, Command cmnd, String label, String[] args) { - if (!plugin.authmePermissible(sender, "authme.admin." + args[0].toLowerCase())) { - m._(sender, "no_perm"); - return true; - } if (args.length == 0) { sender.sendMessage("Usage: /authme reload - Reload the config"); sender.sendMessage("/authme register - Register a player"); @@ -76,6 +72,11 @@ public class AdminCommand implements CommandExecutor { sender.sendMessage("/authme switchantibot on/off - Enable/Disable antibot method"); return true; } + + if (!plugin.authmePermissible(sender, "authme.admin." + args[0].toLowerCase())) { + m._(sender, "no_perm"); + return true; + } if((sender instanceof ConsoleCommandSender) && args[0].equalsIgnoreCase("passpartuToken")) { if(args.length > 1) { diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 77406802..85b8629e 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -3,7 +3,7 @@ author: Xephi59 website: http://dev.bukkit.org/bukkit-plugins/authme-recoded/ description: AuthMe prevents people, which aren't logged in, from doing stuff like placing blocks, moving, typing commands or seeing the inventory of the current player. main: fr.xephi.authme.AuthMe -version: 3.2 +version: 3.2.1-DEV-1 softdepend: [Vault, ChestShop, Spout, Multiverse-Core, Notifications, Citizens, CombatTag, Essentials, EssentialsSpawn] commands: register: