check for worldguard force pvp region within pvp check

This commit is contained in:
2025-02-28 12:08:06 +01:00
parent df20c95e38
commit d013eabd02
3 changed files with 6 additions and 3 deletions
@@ -52,6 +52,8 @@ public class WorldGuardHook {
}
public static boolean isPlayerForcedToPvp(Player player) {
if (player == null) return false;
if (!PreventStabby.worldGuardHookEnabled()) return false;
RegionContainer container = WorldGuard.getInstance().getPlatform().getRegionContainer();
RegionQuery query = container.createQuery();
org.bukkit.Location loc = player.getLocation();