mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 06:28:49 +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
|
||||
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<TimedTeleport> 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);
|
||||
|
||||
Reference in new issue
Block a user