mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 17:57:38 +00:00
Fixed some more warnings
This commit is contained in:
parent
cea080e7c7
commit
0f73533199
@ -19,7 +19,6 @@
|
|||||||
|
|
||||||
package com.sk89q.bukkit.migration;
|
package com.sk89q.bukkit.migration;
|
||||||
|
|
||||||
import com.sun.xml.internal.fastinfoset.algorithm.BooleanEncodingAlgorithm;
|
|
||||||
import org.bukkit.Server;
|
import org.bukkit.Server;
|
||||||
import org.bukkit.command.PluginCommand;
|
import org.bukkit.command.PluginCommand;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
@ -53,7 +52,7 @@ public class NijiPermissionsResolver implements PermissionsResolver {
|
|||||||
throw new PluginAccessException();
|
throw new PluginAccessException();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("static-access")
|
@SuppressWarnings("static-access")
|
||||||
public boolean hasPermission(String name, String permission) {
|
public boolean hasPermission(String name, String permission) {
|
||||||
try {
|
try {
|
||||||
@ -137,8 +136,6 @@ public class NijiPermissionsResolver implements PermissionsResolver {
|
|||||||
PluginCommand permsCommand = plugin.getServer().getPluginCommand("permissions");
|
PluginCommand permsCommand = plugin.getServer().getPluginCommand("permissions");
|
||||||
if (permsCommand == null)
|
if (permsCommand == null)
|
||||||
return false;
|
return false;
|
||||||
if (!permsCommand.getPlugin().getDescription().getName().equals("Permissions"))
|
return !permsCommand.getPlugin().getDescription().getName().equals("Permissions");
|
||||||
return false;
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -26,8 +26,6 @@ import org.bukkit.event.server.PluginEnableEvent;
|
|||||||
import org.bukkit.event.server.ServerListener;
|
import org.bukkit.event.server.ServerListener;
|
||||||
import org.bukkit.plugin.Plugin;
|
import org.bukkit.plugin.Plugin;
|
||||||
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
public class PermissionsResolverServerListener extends ServerListener {
|
public class PermissionsResolverServerListener extends ServerListener {
|
||||||
private PermissionsResolverManager manager;
|
private PermissionsResolverManager manager;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user