mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-12-26 17:18:43 +01:00
Fix flag perm check
This commit is contained in:
parent
442513b592
commit
740de4932b
@ -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 New Issue
Block a user