diff --git a/src/main/java/me/william278/huskhomes2/editingHandler.java b/src/main/java/me/william278/huskhomes2/editingHandler.java index 0fe9952b..881aa83e 100644 --- a/src/main/java/me/william278/huskhomes2/editingHandler.java +++ b/src/main/java/me/william278/huskhomes2/editingHandler.java @@ -55,7 +55,7 @@ public class editingHandler { public static void showEditHomeOptions(Player p, Home home) { p.sendMessage(""); messageManager.sendMessage(p, "edit_home_title", home.getName()); - messageManager.sendMessage(p, "edit_home_title", home.getDescription()); + messageManager.sendMessage(p, "edit_home_description", home.getDescription()); messageManager.sendMessage(p, "edit_home_location", Double.toString(home.getX()), Double.toString(home.getY()), @@ -77,14 +77,14 @@ public class editingHandler { public static void showEditWarpOptions(Player p, Warp warp) { p.sendMessage(""); messageManager.sendMessage(p, "edit_warp_title", warp.getName()); - messageManager.sendMessage(p, "edit_warp_title", warp.getDescription()); - messageManager.sendMessage(p, "edit_warp_location", + messageManager.sendMessage(p, "edit_home_description", warp.getDescription()); + messageManager.sendMessage(p, "edit_home_location", Double.toString(warp.getX()), Double.toString(warp.getY()), Double.toString(warp.getZ())); - messageManager.sendMessage(p, "edit_warp_world", warp.getWorldName()); + messageManager.sendMessage(p, "edit_home_world", warp.getWorldName()); if (Main.settings.doBungee()) { - messageManager.sendMessage(p, "edit_warp_server", warp.getServer()); + messageManager.sendMessage(p, "edit_home_server", warp.getServer()); } p.sendMessage(""); p.spigot().sendMessage(editWarpOptions(warp).create()); diff --git a/src/main/resources/Languages/en-gb.yml b/src/main/resources/Languages/en-gb.yml index 0141f10b..085533d4 100644 --- a/src/main/resources/Languages/en-gb.yml +++ b/src/main/resources/Languages/en-gb.yml @@ -71,4 +71,9 @@ error_rtp_cooldown: '§4Error: §cYou must wait %1% minutes before randomly tele rtp_spent_money: '§7Spent %1% to randomly teleport.' error_command_disabled: '§4Error: §cThat command is disabled!' error_console_only: '§4Error: §cThat command can only be run from the server console.' -error_tp_invalid_world: '§4Error: §cPlease specify a valid server world.' \ No newline at end of file +error_tp_invalid_world: '§4Error: §cPlease specify a valid server world.' +edit_warp_title: '§aEdit details for the warp §l%1%§r§a:' +error_edit_warp_invalid_description: '§4Error: §cWarp descriptions may only contain alphanumeric (A-Z, 0-9) characters, hyphens (-) and underscores (_)' +edit_warp_update_location: '§aRe-located the warp §l%1% §r§ato your current position.' +edit_warp_update_description: '§aChanged the description for the warp §l%1%§r§a to "%2%".' +edit_warp_update_name: '§aSuccessfully changed a warp''s name: %1% → §l%2%' \ No newline at end of file diff --git a/src/main/resources/Languages/zh-tw.yml b/src/main/resources/Languages/zh-tw.yml index abcbac69..96ce9739 100644 --- a/src/main/resources/Languages/zh-tw.yml +++ b/src/main/resources/Languages/zh-tw.yml @@ -69,4 +69,9 @@ warp_deleted: '§aSuccessfully deleted §l%1%§r§a warp.' error_warp_invalid: '§4Error: §cThere is no warp set with the name %1%' error_set_warp_invalid_characters: '§4Error: §cWarp names must be alphanumeric (A-Z,0-9)' error_set_warp_invalid_length: '§4Error: §cWarp names can only contain up to 16 characters!' -error_no_warps_set: '§4Error: §cThere aren''t any warps set!' \ No newline at end of file +error_no_warps_set: '§4Error: §cThere aren''t any warps set!' +edit_warp_title: '§aEdit details for the warp §l%1%§r§a:' +error_edit_warp_invalid_description: '§4Error: §cWarp descriptions may only contain alphanumeric (A-Z, 0-9) characters, hyphens (-) and underscores (_)' +edit_warp_update_location: '§aRe-located the warp §l%1% §r§ato your current position.' +edit_warp_update_description: '§aChanged the description for the warp §l%1%§r§a to "%2%".' +edit_warp_update_name: '§aSuccessfully changed a warp''s name: %1% → §l%2%' \ No newline at end of file