From 8860434d198d048892b148af6623504e25c432bb Mon Sep 17 00:00:00 2001 From: BuildTools Date: Tue, 9 Feb 2021 01:22:02 +0200 Subject: [PATCH] Stop checking for worldguard when both towny and worldguard are on the server --- .../java/com/gmail/St3venAU/plugins/ArmorStandTools/Main.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/St3venAU/plugins/ArmorStandTools/Main.java b/src/main/java/com/gmail/St3venAU/plugins/ArmorStandTools/Main.java index 691817b..d9ec2b6 100644 --- a/src/main/java/com/gmail/St3venAU/plugins/ArmorStandTools/Main.java +++ b/src/main/java/com/gmail/St3venAU/plugins/ArmorStandTools/Main.java @@ -256,7 +256,7 @@ public class Main extends JavaPlugin { 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())) { return false;