mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 06:28:49 +00:00
Add error_home_invalid_other message
This commit is contained in:
1 parent
c9b7d956f5
commit
bac391af43
3 files changed
+12
-3
No files matched your search
@@ -59,7 +59,11 @@ public class EditHomeCommand extends CommandBase implements TabCompleter {
|
||||
|
||||
try {
|
||||
if (!DataManager.homeExists(ownerName, homeName, connection)) {
|
||||
MessageManager.sendMessage(p, "error_home_invalid", homeName);
|
||||
if (!ownerName.equalsIgnoreCase(p.getName())) {
|
||||
MessageManager.sendMessage(p, "error_home_invalid_other", ownerName, homeName);
|
||||
} else {
|
||||
MessageManager.sendMessage(p, "error_home_invalid", homeName);
|
||||
}
|
||||
return;
|
||||
}
|
||||
Home home = DataManager.getHome(ownerName, homeName, connection);
|
||||
|
||||
Reference in new issue
Block a user