mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-12-27 11:37:47 +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
|
* @param flag the flag
|
||||||
* @return true if the flag evaluates to {@code ALLOW}
|
* @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(location);
|
||||||
checkNotNull(flag);
|
checkNotNull(flag);
|
||||||
|
|
||||||
|
@ -233,7 +233,7 @@ public boolean allows(StateFlag flag, Location location) {
|
|||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public boolean allows(StateFlag flag, Location location, @Nullable LocalPlayer player) {
|
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