diff --git a/AnarchyExploitFixesFolia/src/main/java/me/moomoo/anarchyexploitfixes/modules/patches/WorldChangeCrash.java b/AnarchyExploitFixesFolia/src/main/java/me/moomoo/anarchyexploitfixes/modules/patches/WorldChangeCrash.java index ee74841b5..d6211f428 100755 --- a/AnarchyExploitFixesFolia/src/main/java/me/moomoo/anarchyexploitfixes/modules/patches/WorldChangeCrash.java +++ b/AnarchyExploitFixesFolia/src/main/java/me/moomoo/anarchyexploitfixes/modules/patches/WorldChangeCrash.java @@ -69,7 +69,7 @@ private void onTeleport(EntityTeleportEvent event) { event.getEntityType().name() + " at \n" + "x: "+event.getEntity().getLocation().getX() + ", " + "y: "+event.getEntity().getLocation().getY() + ", " + - "z: "+event.getEntity().getLocation().getX() + ", " + + "z: "+event.getEntity().getLocation().getZ() + ", " + "world: "+event.getEntity().getLocation().getWorld().getName()); } else { recentWorldChangers.add(event.getEntity().getUniqueId()); diff --git a/AnarchyExploitFixesFolia/src/main/java/me/moomoo/anarchyexploitfixes/modules/preventions/blockbreak/StructureGrowPermBlockRemoval.java b/AnarchyExploitFixesFolia/src/main/java/me/moomoo/anarchyexploitfixes/modules/preventions/blockbreak/StructureGrowPermBlockRemoval.java index d9c4c92ad..effc0de6f 100644 --- a/AnarchyExploitFixesFolia/src/main/java/me/moomoo/anarchyexploitfixes/modules/preventions/blockbreak/StructureGrowPermBlockRemoval.java +++ b/AnarchyExploitFixesFolia/src/main/java/me/moomoo/anarchyexploitfixes/modules/preventions/blockbreak/StructureGrowPermBlockRemoval.java @@ -57,7 +57,7 @@ public void onStructureGrow(StructureGrowEvent event) { LogUtil.moduleLog(Level.INFO, name(), "Prevented permanent block break by growing a structure at\n" + "x: "+blockState.getLocation().getX() + ", " + "y: "+blockState.getLocation().getY() + ", " + - "z: "+blockState.getLocation().getX() + ", " + + "z: "+blockState.getLocation().getZ() + ", " + "world: "+blockState.getLocation().getWorld().getName()); return; } diff --git a/AnarchyExploitFixesLegacy/src/main/java/me/moomoo/anarchyexploitfixes/modules/patches/crashexploits/RedstoneOnTrapdoorCrash.java b/AnarchyExploitFixesLegacy/src/main/java/me/moomoo/anarchyexploitfixes/modules/patches/crashexploits/RedstoneOnTrapdoorCrash.java index 3400d0124..1c475d251 100755 --- a/AnarchyExploitFixesLegacy/src/main/java/me/moomoo/anarchyexploitfixes/modules/patches/crashexploits/RedstoneOnTrapdoorCrash.java +++ b/AnarchyExploitFixesLegacy/src/main/java/me/moomoo/anarchyexploitfixes/modules/patches/crashexploits/RedstoneOnTrapdoorCrash.java @@ -81,7 +81,7 @@ private void onRedstonePowerTrapdoor(BlockRedstoneEvent event) { if (logIsEnabled) LogUtil.moduleLog(Level.WARNING, name(), "Prevented possible trapdoor crash at\n" + "x: "+trapdoorLoc.getX() + ", " + "y: "+trapdoorLoc.getY() + ", " + - "z: "+trapdoorLoc.getX() + ", " + + "z: "+trapdoorLoc.getZ() + ", " + "world: "+trapdoorLoc.getWorld().getName()); } } @@ -98,7 +98,7 @@ private void onBlockPlace(BlockPlaceEvent event) { if (logIsEnabled) LogUtil.moduleLog(Level.WARNING, name(), "Prevented possible trapdoor crash at\n" + "x: "+block.getLocation().getX() + ", " + "y: "+block.getLocation().getY() + ", " + - "z: "+block.getLocation().getX() + ", " + + "z: "+block.getLocation().getZ() + ", " + "world: "+block.getLocation().getWorld().getName()); } } diff --git a/AnarchyExploitFixesLegacy/src/main/java/me/moomoo/anarchyexploitfixes/modules/patches/crashexploits/WorldChangeCrash.java b/AnarchyExploitFixesLegacy/src/main/java/me/moomoo/anarchyexploitfixes/modules/patches/crashexploits/WorldChangeCrash.java index 9ec6551dd..b800c8555 100755 --- a/AnarchyExploitFixesLegacy/src/main/java/me/moomoo/anarchyexploitfixes/modules/patches/crashexploits/WorldChangeCrash.java +++ b/AnarchyExploitFixesLegacy/src/main/java/me/moomoo/anarchyexploitfixes/modules/patches/crashexploits/WorldChangeCrash.java @@ -63,7 +63,7 @@ private void onTeleport(EntityTeleportEvent event) { event.getEntityType().name() + " at \n" + "x: "+event.getEntity().getLocation().getX() + ", " + "y: "+event.getEntity().getLocation().getY() + ", " + - "z: "+event.getEntity().getLocation().getX() + ", " + + "z: "+event.getEntity().getLocation().getZ() + ", " + "world: "+event.getEntity().getLocation().getWorld().getName()); } else { recentWorldChangers.add(event.getEntity().getUniqueId()); diff --git a/AnarchyExploitFixesLegacy/src/main/java/me/moomoo/anarchyexploitfixes/modules/preventions/blockbreak/StructureGrowPermBlockRemoval.java b/AnarchyExploitFixesLegacy/src/main/java/me/moomoo/anarchyexploitfixes/modules/preventions/blockbreak/StructureGrowPermBlockRemoval.java index 18bb66864..90572716a 100644 --- a/AnarchyExploitFixesLegacy/src/main/java/me/moomoo/anarchyexploitfixes/modules/preventions/blockbreak/StructureGrowPermBlockRemoval.java +++ b/AnarchyExploitFixesLegacy/src/main/java/me/moomoo/anarchyexploitfixes/modules/preventions/blockbreak/StructureGrowPermBlockRemoval.java @@ -51,7 +51,7 @@ public void onStructureGrow(StructureGrowEvent event) { LogUtil.moduleLog(Level.INFO, name(), "Prevented permanent block break by growing a structure at\n" + "x: "+blockState.getLocation().getX() + ", " + "y: "+blockState.getLocation().getY() + ", " + - "z: "+blockState.getLocation().getX() + ", " + + "z: "+blockState.getLocation().getZ() + ", " + "world: "+blockState.getLocation().getWorld().getName()); return; }