mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
Fixed bug in NijiPermissionsResolver.isFakePerms()
This commit is contained in:
parent
0e6597fb86
commit
a928349b1a
@ -37,7 +37,7 @@ public class NijiPermissionsResolver implements PermissionsResolver {
|
|||||||
|
|
||||||
Plugin plugin = pluginManager.getPlugin("Permissions");
|
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)) {
|
if (plugin == null || !(plugin instanceof Permissions)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
@ -146,7 +146,7 @@ public class NijiPermissionsResolver implements PermissionsResolver {
|
|||||||
public static boolean isFakeNijiPerms(Plugin plugin) {
|
public static boolean isFakeNijiPerms(Plugin plugin) {
|
||||||
PluginCommand permsCommand = Bukkit.getServer().getPluginCommand("permissions");
|
PluginCommand permsCommand = Bukkit.getServer().getPluginCommand("permissions");
|
||||||
|
|
||||||
return !(permsCommand.getPlugin().equals(plugin));
|
return permsCommand == null || !(permsCommand.getPlugin().equals(plugin));
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDetectionMessage() {
|
public String getDetectionMessage() {
|
||||||
|
Loading…
Reference in New Issue
Block a user