From 1334e1a1aefb5ad4620f8e23a27f1d081644d21e Mon Sep 17 00:00:00 2001 From: William Date: Sun, 3 Oct 2021 00:14:23 +0100 Subject: [PATCH] Fix home lists formatting, finally. (Update home_list_item string) --- .../java/me/william278/huskhomes2/commands/HomeListCommand.java | 2 +- src/main/resources/languages/en-gb.yml | 2 +- src/main/resources/languages/it-it.yml | 2 +- src/main/resources/languages/pl.yml | 2 +- src/main/resources/languages/zh-cn.yml | 2 +- src/main/resources/languages/zh-tw.yml | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/me/william278/huskhomes2/commands/HomeListCommand.java b/src/main/java/me/william278/huskhomes2/commands/HomeListCommand.java index c2a604e3..4e58973c 100644 --- a/src/main/java/me/william278/huskhomes2/commands/HomeListCommand.java +++ b/src/main/java/me/william278/huskhomes2/commands/HomeListCommand.java @@ -67,7 +67,7 @@ public class HomeListCommand extends CommandBase { ArrayList homeList = new ArrayList<>(); for (Home home : homes) { - homeList.add(MessageManager.getRawMessage("home_list_item", home.getName(), MineDown.escape(home.getDescription()) + homeList.add(MessageManager.getRawMessage("home_list_item", home.getName(), home.getOwnerUsername(), MineDown.escape(home.getDescription()) .replace("]", "\\]") .replace("[", "\\[") .replace("(", "\\(") diff --git a/src/main/resources/languages/en-gb.yml b/src/main/resources/languages/en-gb.yml index 90f2575b..41dd21e3 100644 --- a/src/main/resources/languages/en-gb.yml +++ b/src/main/resources/languages/en-gb.yml @@ -90,7 +90,7 @@ error_console_only: '[Error:](#ff3300) [That command can only be run from the se 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)' list_item_divider: ' [•](gray) ' -home_list_item: '[[%1%]](show_text=&7%2% run_command=/huskhomes:edithome %2%.%1%)' +home_list_item: '[[%1%]](show_text=&7%3% run_command=/huskhomes:edithome %2%.%1%)' public_home_list_item: '[[%1%]](show_text=�fb9a&%2%: &7%3% run_command=/huskhomes:phome %2%.%1%)' warp_list_item: '[[%1%]](show_text=&7%2% run_command=/huskhomes:warp %1%)' home_default_description: '%1%''s home' diff --git a/src/main/resources/languages/it-it.yml b/src/main/resources/languages/it-it.yml index 3781e0ba..150ef1ce 100644 --- a/src/main/resources/languages/it-it.yml +++ b/src/main/resources/languages/it-it.yml @@ -88,7 +88,7 @@ error_console_only: '[Errore:](#ff3300) [Quel comando può essere eseguito solo error_tp_invalid_world: '[Errore:](#ff3300) [Per favore, specifica un mondo valido nel server.](#ff7e5e)' error_rtp_randomization_timeout: '[Errore:](#ff3300) [Non sono riuscito a trovare una posizione sicura, riprova.](#ff7e5e)' list_item_divider: ' [•](gray) ' -home_list_item: '[[%1%]](show_text=&7%2% run_command=/huskhomes:edithome %2%.%1%)' +home_list_item: '[[%1%]](show_text=&7%3% run_command=/huskhomes:edithome %2%.%1%)' public_home_list_item: '[[%1%]](show_text=�fb9a&%2%: &7%3% run_command=/huskhomes:phome %2%.%1%)' warp_list_item: '[[%1%]](show_text=&7%2% run_command=/huskhomes:warp %1%)' home_default_description: 'Home di %1%' diff --git a/src/main/resources/languages/pl.yml b/src/main/resources/languages/pl.yml index 35582b37..1dc13c9d 100644 --- a/src/main/resources/languages/pl.yml +++ b/src/main/resources/languages/pl.yml @@ -88,7 +88,7 @@ error_console_only: '[error:](#ff3300) [To polecenie możesz wykonać tylko z ko error_tp_invalid_world: '[error:](#ff3300) [Podałeś niepoprwawny świat.](#ff7e5e)' error_rtp_randomization_timeout: '[error:](#ff3300) [Nie mogę znaleśc bezpiecznej lokalizacji dla Ciebie.](#ff7e5e)' list_item_divider: ' [•](gray) ' -home_list_item: '[[%1%]](show_text=&7%2% run_command=/huskhomes:edithome %2%.%1%)' +home_list_item: '[[%1%]](show_text=&7%3% run_command=/huskhomes:edithome %2%.%1%)' public_home_list_item: '[[%1%]](show_text=�fb9a&%2%: &7%3% run_command=/huskhomes:phome %2%.%1%)' warp_list_item: '[[%1%]](show_text=&7%2% run_command=/huskhomes:warp %1%)' home_default_description: 'Dom %1%' diff --git a/src/main/resources/languages/zh-cn.yml b/src/main/resources/languages/zh-cn.yml index 139f9041..632e818b 100644 --- a/src/main/resources/languages/zh-cn.yml +++ b/src/main/resources/languages/zh-cn.yml @@ -88,7 +88,7 @@ error_console_only: '[错误:](#ff3300) [该命令只能从服务器控制台运 error_tp_invalid_world: '[错误:](#ff3300) [请指定有效的服务器世界.](#ff7e5e)' error_rtp_randomization_timeout: '[错误:](#ff3300) [找不到安全的随机位置传送你.](#ff7e5e)' list_item_divider: ' [•](gray) ' -home_list_item: '[[%1%]](show_text=&7%2% run_command=/huskhomes:edithome %2%.%1%)' +home_list_item: '[[%1%]](show_text=&7%3% run_command=/huskhomes:edithome %2%.%1%)' public_home_list_item: '[[%1%]](show_text=�fb9a&%2%: &7%3% run_command=/huskhomes:phome %2%.%1%)' warp_list_item: '[[%1%]](show_text=&7%2% run_command=/huskhomes:warp %1%)' home_default_description: '%1% 的家' diff --git a/src/main/resources/languages/zh-tw.yml b/src/main/resources/languages/zh-tw.yml index e24faaf7..88cab5c8 100644 --- a/src/main/resources/languages/zh-tw.yml +++ b/src/main/resources/languages/zh-tw.yml @@ -87,7 +87,7 @@ error_console_only: '[錯誤:](#ff3300) [該命令只能從伺服器控制台運 error_tp_invalid_world: '[錯誤:](#ff3300) [請指定有效的伺服器世界.](#ff7e5e)' error_rtp_randomization_timeout: '[錯誤:](#ff3300) [找不到安全的隨機位置傳送你.](#ff7e5e)' list_item_divider: ' [•](gray) ' -home_list_item: '[[%1%]](show_text=&7%2% run_command=/huskhomes:edithome %2%.%1%)' +home_list_item: '[[%1%]](show_text=&7%3% run_command=/huskhomes:edithome %2%.%1%)' public_home_list_item: '[[%1%]](show_text=�fb9a&%2%: &7%3% run_command=/huskhomes:phome %2%.%1%)' warp_list_item: '[[%1%]](show_text=&7%2% run_command=/huskhomes:warp %1%)' home_default_description: '%1% 的家'