3
0
Mirror von https://github.com/St3venAU/ArmorStandTools.git synchronisiert 2024-12-29 04:50:09 +01:00

Stop checking for worldguard when both towny and worldguard are on the server

Dieser Commit ist enthalten in:
BuildTools 2021-02-09 01:22:02 +02:00
Ursprung 522443737a
Commit 8860434d19

Datei anzeigen

@ -256,7 +256,7 @@ public class Main extends JavaPlugin {
return PlotSquaredHook.checkPermission(p, l); return PlotSquaredHook.checkPermission(p, l);
} }
} }
if (Config.worldGuardPlugin != null) { if (Config.worldGuardPlugin != null && TownyAPI.getInstance() == null) {
if (!Utils.hasPermissionNode(p, "astools.bypass-wg-flag") && !getWorldGuardAstFlag(b.getLocation())) { if (!Utils.hasPermissionNode(p, "astools.bypass-wg-flag") && !getWorldGuardAstFlag(b.getLocation())) {
return false; return false;