mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-08-10 06:23:14 +00:00
Sponge stuff
Added entity / mob / vehicle / animal / monster caps + entity clearing on plot clear.
This commit is contained in:
parent
b40c464da9
commit
7d3de207aa
8 changed files with 223 additions and 16 deletions
|
@ -39,7 +39,7 @@ public enum Permissions {
|
|||
if ((player == null) || player.hasPermission(ADMIN.s) || player.hasPermission(STAR.s)) {
|
||||
return true;
|
||||
}
|
||||
if (Permissions.hasPermission(player, perm)) {
|
||||
if (player.hasPermission(perm)) {
|
||||
return true;
|
||||
}
|
||||
final String[] nodes = perm.split("\\.");
|
||||
|
@ -67,11 +67,11 @@ public enum Permissions {
|
|||
if ((player == null) || player.hasPermission(ADMIN.s) || player.hasPermission(STAR.s)) {
|
||||
return Integer.MAX_VALUE;
|
||||
}
|
||||
if (Permissions.hasPermission(player, stub + ".*")) {
|
||||
if (player.hasPermission(stub + ".*")) {
|
||||
return Integer.MAX_VALUE;
|
||||
}
|
||||
for (int i = range; i > 0; i--) {
|
||||
if (Permissions.hasPermission(player, stub + "." + i)) {
|
||||
if (player.hasPermission(stub + "." + i)) {
|
||||
return i;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue