Fix: remove unnecessary bypass permission (#2060)

Fix: remove unnecessary permission
This commit is contained in:
TheJonstone✓
2023-01-16 00:34:28 +01:00
committed by GitHub
parent ae57ac5d50
commit 0f558425f5
2 changed files with 3 additions and 3 deletions

View File

@ -97,7 +97,7 @@ public class WEManager {
* @return array of allowed regions if whitelist, else of disallowed regions.
*/
public Region[] getMask(Player player, FaweMaskManager.MaskType type, final boolean isWhitelist) {
if (!Settings.settings().REGION_RESTRICTIONS || player.hasPermission("fawe.bypass") || player.hasPermission("fawe.bypass.regions")) {
if (!Settings.settings().REGION_RESTRICTIONS || player.hasPermission("fawe.bypass.regions")) {
return new Region[]{RegionWrapper.GLOBAL()};
}
Location loc = player.getLocation();