diff --git a/common/src/main/java/net/william278/huskhomes/listener/EventListener.java b/common/src/main/java/net/william278/huskhomes/listener/EventListener.java index 411b1712..b33767bc 100644 --- a/common/src/main/java/net/william278/huskhomes/listener/EventListener.java +++ b/common/src/main/java/net/william278/huskhomes/listener/EventListener.java @@ -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") 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 aa71ba59..45507bb4 100644 --- a/common/src/main/java/net/william278/huskhomes/teleport/TeleportManager.java +++ b/common/src/main/java/net/william278/huskhomes/teleport/TeleportManager.java @@ -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); diff --git a/common/src/main/resources/locales/en-gb.yml b/common/src/main/resources/locales/en-gb.yml index 7986e16c..f0734726 100644 --- a/common/src/main/resources/locales/en-gb.yml +++ b/common/src/main/resources/locales/en-gb.yml @@ -93,20 +93,20 @@ set_home_used_free_slots: '[ℹ You have used all %1% of your free home slots. S set_home_success: '[Successfully set a new home called](#00fb9a) [%1%](#00fb9a bold)' set_warp_success: '[Successfully set a new warp called](#00fb9a) [%1%](#00fb9a bold)' set_spawn_success: '[Updated the spawn position to your current location.](#00fb9a)' -return_by_death_notification: '[Return to where you died?](gray) [[⏪ Teleport…]](#00fb9a show_text=�fb9a&Click to teleport\n&7Return to where you died run_command=/huskhomes:back)' + +spawn_warp_default_description: 'The /spawn position of the server' +item_no_description: '(No description)' delete_all_homes_confirm: '[Warning:](#ff3300) [Are you sure you want to delete all of your homes?](#ff7e5e)\n[Once you confirm, it will not be possible to recover them.](gray)\n[→](gray) [[Confirm]](#ff3300 show_text=&#ff3300&Click to confirm deletion. This cannot be undone. run_command=/delhome all confirm)' delete_all_warps_confirm: '[Warning:](#ff3300) [Are you sure you want to delete every warp?](#ff7e5e)\n[Once you confirm, it will not be possible to recover them.](gray)\n[→](gray) [[Confirm]](#ff3300 show_text=&#ff3300&Click to confirm deletion. This cannot be undone. run_command=/delwarp all confirm)' delete_all_homes_success: '[Successfully deleted your](#00fb9a) [%1%](#00fb9a bold) [home(s).](#00fb9a)' delete_all_warps_success: '[Successfully deleted all](#00fb9a) [%1%](#00fb9a bold) [server warp(s).](#00fb9a)' -teleporting_complete_console: '[Console teleported you to %1%.](gray)' -spawn_warp_default_description: 'The /spawn position of the server' -item_no_description: '(No description)' economy_action_additional_home_slot: '[ℹ Spent %1% to set an additional home.](gray)' economy_action_make_home_public: '[ℹ Spent %1% to make your home public.](gray)' economy_action_random_teleport: '[ℹ Spent %1% to randomly teleport.](gray)' economy_action_back_command: '[ℹ Spent %1% to return to your last position.](gray)' +return_by_death_notification: '[Return to where you died?](gray) [[⏪ Teleport…]](#00fb9a show_text=�fb9a&Click to teleport\n&7Return to where you died run_command=/huskhomes:back)' error_home_name_taken: '[Error:](#ff3300) [You already have a home set with that name.](#ff7e5e)' error_home_name_length: '[Error:](#ff3300) [Home names can only contain up to 16 characters!](#ff7e5e)' @@ -150,10 +150,9 @@ error_rtp_restricted_world: '[Error:](#ff3300) [You cannot randomly teleport in error_rtp_cooldown: '[Error:](#ff3300) [You must wait %1% minutes before randomly teleporting again.](#ff7e5e)' error_command_disabled: '[Error:](#ff3300) [That command is disabled!](#ff7e5e)' error_console_command_only: '[Error:](#ff3300) [That command can only be run from the server console.](#ff7e5e)' -error_tp_invalid_world: '[Error:](#ff3300) [Please specify a valid server world.](#ff7e5e)' error_rtp_randomization_timeout: '[Error:](#ff3300) [Failed to find a safe random location to teleport you.](#ff7e5e)' error_permission_restricted_warp: '[Error:](#ff3300) [You do not have permission to warp to %1%!](#ff7e5e)' -error_invalid_on_arrival: '[Error:](#ff3300) [Failed to finish teleportation as the target world could not be found.](#ff7e5e)' +error_invalid_world: '[Error:](#ff3300) [Failed to finish teleportation as the target world could not be found.](#ff7e5e)' error_no_offline_position: '[Error:](#ff3300) [Could not find where %1% last logged out.](#ff7e5e)' error_no_homes_set_other: '[Error:](#ff3300) [%1% has not set any homes!](#ff7e5e)' error_home_invalid_other: '[Error:](#ff3300) [%1% does not have a home set named "%2%"](#ff7e5e)'