mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-12-26 02:57:42 +01:00
Rename RegionQuery.testEnabled() -> testState().
This commit is contained in:
parent
19b87b628a
commit
98bbd900cb
@ -179,7 +179,7 @@ public boolean testPermission(Location location, StateFlag... flags) {
|
||||
* @param flag the flag
|
||||
* @return true if the flag evaluates to {@code ALLOW}
|
||||
*/
|
||||
public boolean testEnabled(Location location, StateFlag flag) {
|
||||
public boolean testState(Location location, StateFlag flag) {
|
||||
checkNotNull(location);
|
||||
checkNotNull(flag);
|
||||
|
||||
|
@ -233,7 +233,7 @@ public boolean allows(StateFlag flag, Location location) {
|
||||
*/
|
||||
@Deprecated
|
||||
public boolean allows(StateFlag flag, Location location, @Nullable LocalPlayer player) {
|
||||
return createQuery(player).testEnabled(location, flag);
|
||||
return createQuery(player).testState(location, flag);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user