mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 21:26:45 +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)) {
|
if (MathMan.isInteger(value)) {
|
||||||
try {
|
try {
|
||||||
int numeric = Integer.parseInt(value);
|
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;
|
int checkRange = PS.get().getPlatform().equalsIgnoreCase("bukkit") ? numeric : Settings.Limit.MAX_PLOTS;
|
||||||
return player.hasPermissionRange(perm, checkRange) >= numeric;
|
return player.hasPermissionRange(perm, checkRange) >= numeric;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user