Tweak error_invalid_world locale

This commit is contained in:
William committed 2022-08-29 13:33:02 +01:00
1 parent c7f3835ae2
commit b9d44f1108
3 files changed
+7 -8

No files matched your search

@@ -67,7 +67,7 @@ public class EventListener {
// Teleport the player locally
onlineUser.teleport(activeTeleport.target, plugin.getSettings().asynchronousTeleports).thenAccept(teleportResult -> {
if (!teleportResult.successful) {
plugin.getLocales().getLocale("error_invalid_on_arrival")
plugin.getLocales().getLocale("error_invalid_world")
.ifPresent(onlineUser::sendMessage);
} else {
plugin.getLocales().getLocale("teleporting_complete")
@@ -296,7 +296,7 @@ public class TeleportManager {
.ifPresent(onlineUser::sendMessage);
case FAILED_MOVING -> plugin.getLocales().getLocale("error_teleport_warmup_stand_still")
.ifPresent(onlineUser::sendMessage);
case FAILED_INVALID_WORLD -> plugin.getLocales().getLocale("error_invalid_on_arrival")
case FAILED_INVALID_WORLD -> plugin.getLocales().getLocale("error_invalid_world")
.ifPresent(onlineUser::sendMessage);
case FAILED_ILLEGAL_COORDINATES -> plugin.getLocales().getLocale("error_illegal_target_coordinates")
.ifPresent(onlineUser::sendMessage);