From dec09d268c18852ed18d3b84dda2488451c2e687 Mon Sep 17 00:00:00 2001 From: david Date: Sat, 6 Jul 2024 20:03:15 +0200 Subject: [PATCH] fixed world teleport message --- .../net/thenextlvl/worlds/command/WorldTeleportCommand.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/src/main/java/net/thenextlvl/worlds/command/WorldTeleportCommand.java b/plugin/src/main/java/net/thenextlvl/worlds/command/WorldTeleportCommand.java index 801f2be..ebc3fb7 100644 --- a/plugin/src/main/java/net/thenextlvl/worlds/command/WorldTeleportCommand.java +++ b/plugin/src/main/java/net/thenextlvl/worlds/command/WorldTeleportCommand.java @@ -36,7 +36,7 @@ private void execute(CommandContext context) { if (player == null) throw new InvalidSyntaxException("world teleport [world] [player]", sender, List.of()); player.teleportAsync(world.getSpawnLocation(), PlayerTeleportEvent.TeleportCause.COMMAND); var message = player.equals(sender) ? "world.teleport.player.self" : "world.teleport.player.other"; - var placeholder = Placeholder.parsed("world", world.getName()); - plugin.bundle().sendMessage(player, message, placeholder); + plugin.bundle().sendMessage(sender, message, Placeholder.parsed("world", world.getName()), + Placeholder.parsed("player", player.getName())); } }