mirror of
https://github.com/songoda/SongodaCore.git
synced 2024-11-23 18:45:34 +01:00
Added quick access to the build flag.
This commit is contained in:
parent
d77d723dc6
commit
2435d70236
@ -91,6 +91,16 @@ public class WorldGuardHook {
|
||||
return canHook && Objects.equals(WorldGuardFlagHandler.getBooleanFlag(loc, "block-break"), Boolean.TRUE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Check to see if the build flag is set and is set to ALLOW
|
||||
*
|
||||
* @param loc Location to check
|
||||
* @return false if the build flag is not set for this region, or is set to DENY
|
||||
*/
|
||||
public static boolean isBuildAllowed(@NotNull Location loc) {
|
||||
return canHook && Objects.equals(WorldGuardFlagHandler.getBooleanFlag(loc, "build"), Boolean.TRUE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Check to see if the use flag is set and is set to ALLOW
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user