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:
parent
1a62f30426
commit
cd3076bd55
|
|
@ -54,7 +54,7 @@ public class HomeCommand extends PlayerSubCommand {
|
||||||
Location homeLoc = home.equalsIgnoreCase("bed") ?
|
Location homeLoc = home.equalsIgnoreCase("bed") ?
|
||||||
player.getBedSpawnLocation() : playerConfig.getHome(home);
|
player.getBedSpawnLocation() : playerConfig.getHome(home);
|
||||||
if (homeLoc == null) {
|
if (homeLoc == null) {
|
||||||
player.sendRichMessage(Config.HOME_DOES_NOT_EXIST);
|
player.sendRichMessage(Config.HOME_DOES_NOT_EXIST, Placeholder.parsed("home", home));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user