From cd3076bd55c9bb0d326d2498e60f92f628e8590e Mon Sep 17 00:00:00 2001 From: Stijn <38841986+Teriuihi@users.noreply.github.com> Date: Sun, 18 Feb 2024 14:17:58 +0100 Subject: [PATCH] Update message for non-existing home command (#1) This commit fixes the error message sent when a player tries to go to a nonexistent home. Now, the placeholder for which home does not exist is present. --- .../java/com/alttd/essentia/commands/player/HomeCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/src/main/java/com/alttd/essentia/commands/player/HomeCommand.java b/plugin/src/main/java/com/alttd/essentia/commands/player/HomeCommand.java index 665b401..7dac302 100644 --- a/plugin/src/main/java/com/alttd/essentia/commands/player/HomeCommand.java +++ b/plugin/src/main/java/com/alttd/essentia/commands/player/HomeCommand.java @@ -54,7 +54,7 @@ public class HomeCommand extends PlayerSubCommand { Location homeLoc = home.equalsIgnoreCase("bed") ? player.getBedSpawnLocation() : playerConfig.getHome(home); if (homeLoc == null) { - player.sendRichMessage(Config.HOME_DOES_NOT_EXIST); + player.sendRichMessage(Config.HOME_DOES_NOT_EXIST, Placeholder.parsed("home", home)); return true; }