mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 22:17:17 +00:00
Add error_no_homes_set_other message
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user