Fixed some more warnings

This commit is contained in:
zml2008 2011-08-07 01:08:40 -07:00
parent cea080e7c7
commit 0f73533199
2 changed files with 2 additions and 7 deletions

View File

@ -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");
}
}

View File

@ -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;