Fix homes not deleting for unloaded worlds

This commit is contained in:
Len
2024-02-18 18:48:51 +01:00
parent cd3076bd55
commit 6e8fce7560
2 changed files with 6 additions and 1 deletions
@@ -23,7 +23,7 @@ public class DelHomeCommand extends PlayerSubCommand {
// }
String home = (args.length > 0) ? args[0] : "home";
if (playerConfig.getHome(home) == null) {
if (!playerConfig.hasHome(home)) {
player.sendRichMessage(Config.HOME_DOES_NOT_EXIST, Placeholder.unparsed("home", home));
return true;
}