mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2024-12-23 00:15:06 +00:00
Fix flag perm check
This commit is contained in:
parent
442513b592
commit
740de4932b
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ public class FlagCmd extends SubCommand {
|
|||
if (MathMan.isInteger(value)) {
|
||||
try {
|
||||
int numeric = Integer.parseInt(value);
|
||||
perm.substring(0, perm.length() - value.length() - 1);
|
||||
perm = perm.substring(0, perm.length() - value.length() - 1);
|
||||
int checkRange = PS.get().getPlatform().equalsIgnoreCase("bukkit") ? numeric : Settings.Limit.MAX_PLOTS;
|
||||
return player.hasPermissionRange(perm, checkRange) >= numeric;
|
||||
|
||||
|
|
Loading…
Reference in a new issue