diff --git a/src/main/java/com/sk89q/bukkit/migration/NijiPermissionsResolver.java b/src/main/java/com/sk89q/bukkit/migration/NijiPermissionsResolver.java index 99a0b1b17..dd53a35f0 100644 --- a/src/main/java/com/sk89q/bukkit/migration/NijiPermissionsResolver.java +++ b/src/main/java/com/sk89q/bukkit/migration/NijiPermissionsResolver.java @@ -19,7 +19,6 @@ package com.sk89q.bukkit.migration; -import com.sun.xml.internal.fastinfoset.algorithm.BooleanEncodingAlgorithm; import org.bukkit.Server; import org.bukkit.command.PluginCommand; import org.bukkit.entity.Player; @@ -53,7 +52,7 @@ public class NijiPermissionsResolver implements PermissionsResolver { throw new PluginAccessException(); } } - + @SuppressWarnings("static-access") public boolean hasPermission(String name, String permission) { try { @@ -137,8 +136,6 @@ public class NijiPermissionsResolver implements PermissionsResolver { PluginCommand permsCommand = plugin.getServer().getPluginCommand("permissions"); if (permsCommand == null) return false; - if (!permsCommand.getPlugin().getDescription().getName().equals("Permissions")) - return false; - return true; + return !permsCommand.getPlugin().getDescription().getName().equals("Permissions"); } } diff --git a/src/main/java/com/sk89q/bukkit/migration/PermissionsResolverServerListener.java b/src/main/java/com/sk89q/bukkit/migration/PermissionsResolverServerListener.java index 47b188d22..fdaf4dfd0 100644 --- a/src/main/java/com/sk89q/bukkit/migration/PermissionsResolverServerListener.java +++ b/src/main/java/com/sk89q/bukkit/migration/PermissionsResolverServerListener.java @@ -26,8 +26,6 @@ import org.bukkit.event.server.PluginEnableEvent; import org.bukkit.event.server.ServerListener; import org.bukkit.plugin.Plugin; -import java.util.Map; - public class PermissionsResolverServerListener extends ServerListener { private PermissionsResolverManager manager;