Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-27 03:12:37 +01:00
Fix: remove unnecessary bypass permission (#2060)
Fix: remove unnecessary permission
Dieser Commit ist enthalten in:
Ursprung
ae57ac5d50
Commit
0f558425f5
@ -97,7 +97,7 @@ public class WEManager {
|
|||||||
* @return array of allowed regions if whitelist, else of disallowed regions.
|
* @return array of allowed regions if whitelist, else of disallowed regions.
|
||||||
*/
|
*/
|
||||||
public Region[] getMask(Player player, FaweMaskManager.MaskType type, final boolean isWhitelist) {
|
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()};
|
return new Region[]{RegionWrapper.GLOBAL()};
|
||||||
}
|
}
|
||||||
Location loc = player.getLocation();
|
Location loc = player.getLocation();
|
||||||
|
@ -530,7 +530,7 @@ public final class EditSessionBuilder {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (allowedRegions == null && Settings.settings().REGION_RESTRICTIONS) {
|
if (allowedRegions == null && Settings.settings().REGION_RESTRICTIONS) {
|
||||||
if (actor != null && !actor.hasPermission("fawe.bypass") && !actor.hasPermission("fawe.bypass.regions")) {
|
if (actor != null && !actor.hasPermission("fawe.bypass.regions")) {
|
||||||
if (actor instanceof Player) {
|
if (actor instanceof Player) {
|
||||||
Player player = (Player) actor;
|
Player player = (Player) actor;
|
||||||
allowedRegions = player.getAllowedRegions();
|
allowedRegions = player.getAllowedRegions();
|
||||||
@ -538,7 +538,7 @@ public final class EditSessionBuilder {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (disallowedRegions == null && Settings.settings().REGION_RESTRICTIONS && Settings.settings().REGION_RESTRICTIONS_OPTIONS.ALLOW_BLACKLISTS) {
|
if (disallowedRegions == null && Settings.settings().REGION_RESTRICTIONS && Settings.settings().REGION_RESTRICTIONS_OPTIONS.ALLOW_BLACKLISTS) {
|
||||||
if (actor != null && !actor.hasPermission("fawe.bypass") && !actor.hasPermission("fawe.bypass.regions")) {
|
if (actor != null && !actor.hasPermission("fawe.bypass.regions")) {
|
||||||
if (actor instanceof Player) {
|
if (actor instanceof Player) {
|
||||||
Player player = (Player) actor;
|
Player player = (Player) actor;
|
||||||
disallowedRegions = player.getDisallowedRegions();
|
disallowedRegions = player.getDisallowedRegions();
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren