Skip to content

Commit

Permalink
fix coordinate logging
Browse files Browse the repository at this point in the history
  • Loading branch information
xGinko committed Jan 22, 2024
1 parent eb20112 commit e4a5503
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}
Expand All @@ -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());
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit e4a5503

Please sign in to comment.