From a928349b1a7c70153a3dd788e2dbdab3bb553c7a Mon Sep 17 00:00:00 2001 From: zml2008 Date: Sat, 22 Oct 2011 08:07:02 -0700 Subject: [PATCH] Fixed bug in NijiPermissionsResolver.isFakePerms() --- .../com/sk89q/bukkit/migration/NijiPermissionsResolver.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/sk89q/bukkit/migration/NijiPermissionsResolver.java b/src/main/java/com/sk89q/bukkit/migration/NijiPermissionsResolver.java index f0163f007..71f0f8a16 100644 --- a/src/main/java/com/sk89q/bukkit/migration/NijiPermissionsResolver.java +++ b/src/main/java/com/sk89q/bukkit/migration/NijiPermissionsResolver.java @@ -37,7 +37,7 @@ public class NijiPermissionsResolver implements PermissionsResolver { Plugin plugin = pluginManager.getPlugin("Permissions"); - // Check if plugin is loaded and have Permissions interface + // Check if plugin is loaded and has Permissions interface if (plugin == null || !(plugin instanceof Permissions)) { return null; } @@ -146,7 +146,7 @@ public class NijiPermissionsResolver implements PermissionsResolver { public static boolean isFakeNijiPerms(Plugin plugin) { PluginCommand permsCommand = Bukkit.getServer().getPluginCommand("permissions"); - return !(permsCommand.getPlugin().equals(plugin)); + return permsCommand == null || !(permsCommand.getPlugin().equals(plugin)); } public String getDetectionMessage() {