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:
1 parent
1a62f30426
commit
cd3076bd55
1 file changed
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user