diff --git a/common/src/main/java/net/william278/huskhomes/teleport/TeleportManager.java b/common/src/main/java/net/william278/huskhomes/teleport/TeleportManager.java index 49ee7a1a..1eb04e74 100644 --- a/common/src/main/java/net/william278/huskhomes/teleport/TeleportManager.java +++ b/common/src/main/java/net/william278/huskhomes/teleport/TeleportManager.java @@ -370,6 +370,10 @@ public class TeleportManager { // Mark the player as warming up currentlyOnWarmup.add(teleport.getPlayer().uuid); + // Display the message + plugin.getLocales().getLocale("teleporting_warmup_start", Integer.toString(teleport.timeLeft)) + .ifPresent(teleport.getPlayer()::sendMessage); + // Create a scheduled executor to tick the timed teleport final ScheduledExecutorService executor = Executors.newSingleThreadScheduledExecutor(); final CompletableFuture timedTeleportFuture = new CompletableFuture<>(); @@ -378,7 +382,7 @@ public class TeleportManager { if (teleport.timeLeft > 0) { plugin.getSettings().getSoundEffect(Settings.SoundEffectAction.TELEPORTATION_WARMUP) .ifPresent(sound -> teleport.getPlayer().playSound(sound)); - plugin.getLocales().getLocale("teleporting_action_bar_countdown", Integer.toString(teleport.timeLeft)) + plugin.getLocales().getLocale("teleporting_action_bar_warmup", Integer.toString(teleport.timeLeft)) .ifPresent(message -> { switch (plugin.getSettings().teleportWarmupDisplay) { case ACTION_BAR -> teleport.getPlayer().sendActionBar(message); @@ -386,7 +390,7 @@ public class TeleportManager { } }); } else { - plugin.getLocales().getLocale("teleporting_complete") + plugin.getLocales().getLocale("teleporting_action_bar_processing") .ifPresent(message -> { switch (plugin.getSettings().teleportWarmupDisplay) { case ACTION_BAR -> teleport.getPlayer().sendActionBar(message); diff --git a/common/src/main/resources/locales/en-gb.yml b/common/src/main/resources/locales/en-gb.yml index ec4e6018..6773040a 100644 --- a/common/src/main/resources/locales/en-gb.yml +++ b/common/src/main/resources/locales/en-gb.yml @@ -1,12 +1,12 @@ teleporting_last_position: '[Returning to your last position in](#00fb9a) [%1%](#00fb9a bold) [seconds](#00fb9a)' teleporting_offline_player: '[Teleporting you to where %1% last logged out…](#00fb9a)' -teleporting_countdown_start: '[You will be teleported in](#00fb9a) [%1%](#00fb9a bold) [seconds](#00fb9a)' +teleporting_warmup_start: '[You will be teleported in](#00fb9a) [%1%](#00fb9a bold) [seconds, please stand still…](#00fb9a)' teleporting_cancelled_movement: '[Teleportation cancelled; you moved!](#ff7e5e)' teleporting_cancelled_damage: '[Teleportation cancelled; you took damage!](#ff7e5e)' teleporting_complete: '[Teleportation complete!](#00fb9a)' -teleporting_action_bar_countdown: '[Teleporting in](#00fb9a) [%1%](#00fb9a bold)[…](#00fb9a)' +teleporting_action_bar_warmup: '[Teleporting in](#00fb9a) [%1%](#00fb9a bold)[…](#00fb9a)' +teleporting_action_bar_processing: '[Teleporting…](#00fb9a)' teleporting_action_bar_cancelled: '[Teleportation cancelled!](#ff7e5e)' -teleporting_please_stand_still: '[Teleportation will be cancelled if you move or take damage.](gray)' edit_home_menu_title: '[Viewing details for your home,](#00fb9a) [%1%](#00fb9a bold)[:](#00fb9a)' edit_home_menu_title_other: '[Viewing details for %1%''s home,](#00fb9a) [%2%](#00fb9a bold)[:](#00fb9a)'