Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-05 11:00:05 +01:00
Fixed some more warnings
Dieser Commit ist enthalten in:
Ursprung
cea080e7c7
Commit
0f73533199
@ -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");
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren