Update message for non-existing home command (#1)

This commit fixes the error message sent when a player tries to go to a nonexistent home. Now, the placeholder for which home does not exist is present.
This commit is contained in:
Stijn 2024-02-18 14:17:58 +01:00 committed by GitHub
parent 1a62f30426
commit cd3076bd55
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -54,7 +54,7 @@ public class HomeCommand extends PlayerSubCommand {
Location homeLoc = home.equalsIgnoreCase("bed") ?
player.getBedSpawnLocation() : playerConfig.getHome(home);
if (homeLoc == null) {
player.sendRichMessage(Config.HOME_DOES_NOT_EXIST);
player.sendRichMessage(Config.HOME_DOES_NOT_EXIST, Placeholder.parsed("home", home));
return true;
}