mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-04 14:38:53 +00:00
Adjust teleport warmup locales for consistency
This commit is contained in:
1 parent
7d4dc6f11d
commit
f270e3798b
2 files changed
+9
-5
No files matched your search
@@ -370,6 +370,10 @@ public class TeleportManager {
|
|||||||
// Mark the player as warming up
|
// Mark the player as warming up
|
||||||
currentlyOnWarmup.add(teleport.getPlayer().uuid);
|
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
|
// Create a scheduled executor to tick the timed teleport
|
||||||
final ScheduledExecutorService executor = Executors.newSingleThreadScheduledExecutor();
|
final ScheduledExecutorService executor = Executors.newSingleThreadScheduledExecutor();
|
||||||
final CompletableFuture<TimedTeleport> timedTeleportFuture = new CompletableFuture<>();
|
final CompletableFuture<TimedTeleport> timedTeleportFuture = new CompletableFuture<>();
|
||||||
@@ -378,7 +382,7 @@ public class TeleportManager {
|
|||||||
if (teleport.timeLeft > 0) {
|
if (teleport.timeLeft > 0) {
|
||||||
plugin.getSettings().getSoundEffect(Settings.SoundEffectAction.TELEPORTATION_WARMUP)
|
plugin.getSettings().getSoundEffect(Settings.SoundEffectAction.TELEPORTATION_WARMUP)
|
||||||
.ifPresent(sound -> teleport.getPlayer().playSound(sound));
|
.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 -> {
|
.ifPresent(message -> {
|
||||||
switch (plugin.getSettings().teleportWarmupDisplay) {
|
switch (plugin.getSettings().teleportWarmupDisplay) {
|
||||||
case ACTION_BAR -> teleport.getPlayer().sendActionBar(message);
|
case ACTION_BAR -> teleport.getPlayer().sendActionBar(message);
|
||||||
@@ -386,7 +390,7 @@ public class TeleportManager {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
plugin.getLocales().getLocale("teleporting_complete")
|
plugin.getLocales().getLocale("teleporting_action_bar_processing")
|
||||||
.ifPresent(message -> {
|
.ifPresent(message -> {
|
||||||
switch (plugin.getSettings().teleportWarmupDisplay) {
|
switch (plugin.getSettings().teleportWarmupDisplay) {
|
||||||
case ACTION_BAR -> teleport.getPlayer().sendActionBar(message);
|
case ACTION_BAR -> teleport.getPlayer().sendActionBar(message);
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
teleporting_last_position: '[Returning to your last position in](#00fb9a) [%1%](#00fb9a bold) [seconds](#00fb9a)'
|
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_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_movement: '[Teleportation cancelled; you moved!](#ff7e5e)'
|
||||||
teleporting_cancelled_damage: '[Teleportation cancelled; you took damage!](#ff7e5e)'
|
teleporting_cancelled_damage: '[Teleportation cancelled; you took damage!](#ff7e5e)'
|
||||||
teleporting_complete: '[Teleportation complete!](#00fb9a)'
|
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_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: '[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)'
|
edit_home_menu_title_other: '[Viewing details for %1%''s home,](#00fb9a) [%2%](#00fb9a bold)[:](#00fb9a)'
|
||||||
|
|||||||
Reference in new issue
Block a user