Add error_no_homes_set_other message

This commit is contained in:
William committed 2021-09-01 13:29:55 +01:00
1 parent 01f390cb19
commit c9b7d956f5
5 files changed
+12 -4

No files matched your search

@@ -58,7 +58,11 @@ public class HomeListCommand extends CommandBase {
}
List<Home> homes = DataManager.getPlayerHomes(homeOwnerName, connection);
if (homes.isEmpty()) {
MessageManager.sendMessage(player, "error_no_homes_set");
if (!player.getName().equalsIgnoreCase(homeOwnerName)) {
MessageManager.sendMessage(player, "error_no_homes_set_other", homeOwnerName);
} else {
MessageManager.sendMessage(player, "error_no_homes_set");
}
return;
}
+2 -1
View File
@@ -116,4 +116,5 @@ tpignore_toggle_off: '[You are now](#00fb9a) [listening](#00fb9a bold) [to any i
tpignore_on_reminder: '[You are currently ignoring incoming teleport requests!](gray) [(Click to toggle)](gray show_text=&7Click to listen for incoming teleport requests run_command=/huskhomes:tpignore)'
error_ignoring_teleport_requests: '[Error:](#ff3300) [You are currently ignoring teleport requests!](#ff7e5e) [(Click to toggle)](#ff7e5e show_text=&#ff7e5e&Click to listen for incoming teleport requests run_command=/huskhomes:tpignore)'
error_no_offline_position: '[Error:](#ff3300) [Could not find where %1% last logged out.](#ff7e5e)'
error_invalid_player: '[Error:](#ff3300) [Please specify the name of a valid player!](#ff7e5e)'
error_invalid_player: '[Error:](#ff3300) [Please specify the name of a valid player!](#ff7e5e)'
error_no_homes_set_other: '[Error:](#ff3300) [%1% hasn''t set any homes!](#ff7e5e)'
+1
View File
@@ -115,3 +115,4 @@ tpignore_on_reminder: '[Le richieste di teletrasporto sono disabilitate!](gray)
error_ignoring_teleport_requests: '[Errore:](#ff3300) [Le richieste di teletrasporto sono disabilitate!](#ff7e5e) [(Clicca per abilitarle)](#ff7e5e show_text=&#ff7e5e&Clicca per abilitare le richieste di teletrasporto run_command=/huskhomes:tpignore)'
error_no_offline_position: '[Errore:](#ff3300) [Non trovo la posizione in cui %1% è sloggato l''ultima volta.](#ff7e5e)'
error_invalid_player: '[Errore:](#ff3300) [Specifica un nome valido!](#ff7e5e)'
error_no_homes_set_other: '[Error:](#ff3300) [%1% hasn''t set any homes!](#ff7e5e)'
+2 -1
View File
@@ -114,4 +114,5 @@ tpignore_toggle_off: '[Jesteś teraz](#00fb9a) [listening](#00fb9a bold) [na wsz
tpignore_on_reminder: '[Obecnie ignorujesz przychodzące żądania teleportu.!](gray) [(Kliknij aby zmienić)](gray show_text=&7Kliknij, aby nasłuchiwać przychodzących żądań teleportu run_command=/huskhomes:tpignore)'
error_ignoring_teleport_requests: '[error:](#ff3300) [Obecnie ignorujesz prośby o teleport.!](#ff7e5e) [(Kliknij aby zmienić)](#ff7e5e show_text=&#ff7e5e&Kliknij, aby nasłuchiwać przychodzących żądań teleportu run_command=/huskhomes:tpignore)'
error_no_offline_position: '[error:](#ff3300) [Nie mogę znaleźć, gdzie ostatnio wylogował się%1%.](#ff7e5e)'
error_invalid_player: '[Error:](#ff3300) [Please specify the name of a valid player!](#ff7e5e)'
error_invalid_player: '[Error:](#ff3300) [Please specify the name of a valid player!](#ff7e5e)'
error_no_homes_set_other: '[Error:](#ff3300) [%1% hasn''t set any homes!](#ff7e5e)'
+2 -1
View File
@@ -114,4 +114,5 @@ tpignore_toggle_off: '[你现在是](#00fb9a) [正常模式](#00fb9a bold) [接
tpignore_on_reminder: '[您当前正在忽略接受传送请求!](gray) [(点击来切换)](gray show_text=&7单击以开启接受传送请求run_command=/huskhomes:tpignore)'
error_ignoring_teleport_requests: '[错误:](#ff3300) [你当前正在忽略传送请求!](#ff7e5e) [(点击来切换)](#ff7e5e show_text=&#ff7e5e&单击以开启接受传送请求 run_command=/huskhomes:tpignore)'
error_no_offline_position: '[错误:](#ff3300) [找不到 %1% 上次离线的位置.](#ff7e5e)'
error_invalid_player: '[Error:](#ff3300) [Please specify the name of a valid player!](#ff7e5e)'
error_invalid_player: '[Error:](#ff3300) [Please specify the name of a valid player!](#ff7e5e)'
error_no_homes_set_other: '[Error:](#ff3300) [%1% hasn''t set any homes!](#ff7e5e)'