You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
private final org.codemc.worldguardwrapper.WorldGuardWrapper worldGuard = org.codemc.worldguardwrapper.WorldGuardWrapper.getInstance();
public boolean isInRegion(final String regionId, final Location location) {
for (IWrappedRegion region : worldGuard.getRegions(location))
if (region.contains(location) && region.getId().equalsIgnoreCase(regionId)) return true;
return false;
}
The text was updated successfully, but these errors were encountered:
private final org.codemc.worldguardwrapper.WorldGuardWrapper worldGuard = org.codemc.worldguardwrapper.WorldGuardWrapper.getInstance();
public boolean isInRegion(final String regionId, final Location location) {
for (IWrappedRegion region : worldGuard.getRegions(location))
if (region.contains(location) && region.getId().equalsIgnoreCase(regionId)) return true;
return false;
}
I will take a look at this, thank you so much! This might be exactly what I am looking for!
Hey, I saw the update on SpigotMC and here is a wrapper I use to support Worldguard 6 & 7 out the box.
https://github.com/CodeMC/WorldGuardWrapper
This is how I used it in my code;
The text was updated successfully, but these errors were encountered: