Skip to content

Commit

Permalink
Added log message when grave resurfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
B1n-ry committed Nov 3, 2024
1 parent 8693254 commit 46d6e89
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,8 @@ private void updatePosition(ServerLevel world, BlockPos pos) {
ResolvableProfile owner = this.component.getOwner();
ServerPlayer player = owner.id().isPresent() ? playerManager.getPlayer(owner.id().get()) : playerManager.getPlayerByName(owner.name().orElse("PLAYER_NOT_FOUND"));
if (player != null) {
Yigd.LOGGER.info("Grave belonging to {} resurfaced at X: {} / Y: {} / Z: {} / {}", this.component.getOwner().name().orElse("PLAYER_NOT_FOUND"),
this.worldPosition.getX(), this.worldPosition.getY(), this.worldPosition.getZ(), this.component.getWorldRegistryKey().location());
player.sendSystemMessage(Component.translatable("text.yigd.message.grave_relocated", pos.getX(), pos.getY(), pos.getZ(), world.dimension().location().toString()));
}
}
Expand Down

0 comments on commit 46d6e89

Please sign in to comment.