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;
}