Hey mc market,
I get this error for the Worldguard API:
I get the error at set.queryState. It says its undefined....
I get this error for the Worldguard API:
Code:
public static boolean allowsPVP(@NotNull Location loc) {
if(isEnabled())return true;
ApplicableRegionSet set = com.sk89q.worldguard.bukkit.WGBukkit.getPlugin().getRegionManager(loc.getWorld())
.getApplicableRegions(loc);
if (set.queryState(null, DefaultFlag.INVINCIBILITY) != StateFlag.State.ALLOW) {
set.queryState(null, DefaultFlag.PVP);
} else return false;
return true;
