mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-07-05 07:04:44 +02:00
Adding new permissions for the /inspect command.
This commit is contained in:
src/main
java
com
gmail
nossr50
resources
@ -36,11 +36,19 @@ public final class Permissions {
|
||||
}
|
||||
|
||||
public static boolean inspectDistanceBypass(Player player) {
|
||||
return hasPermission(player, "mcmmo.bypass.inspect.distance");
|
||||
// DEPRECATED PERMISSION
|
||||
if (hasPermission(player, "mcmmo.bypass.inspect.distance"))
|
||||
return true;
|
||||
|
||||
return hasPermission(player, "mcmmo.commands.inspect.far");
|
||||
}
|
||||
|
||||
public static boolean inspectOfflineBypass(Player player) {
|
||||
return hasPermission(player, "mcmmo.bypass.inspect.offline");
|
||||
// DEPRECATED PERMISSION
|
||||
if (hasPermission(player, "mcmmo.bypass.inspect.offline"))
|
||||
return true;
|
||||
|
||||
return hasPermission(player, "mcmmo.commands.inspect.offline");
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user