Fix home listing on error.

https://github.com/BentoBoxWorld/BentoBox/issues/1737
This commit is contained in:
tastybento 2021-04-07 21:20:48 -07:00
parent 3e068e4283
commit 2098fd636a

View File

@ -42,7 +42,7 @@ public class IslandSethomeCommand extends ConfirmableCommand {
if (getIslands().getNumberOfHomesIfAdded(island, String.join(" ", args)) > maxHomes) {
user.sendMessage("commands.island.sethome.too-many-homes", TextVariables.NUMBER, String.valueOf(island.getMaxHomes()));
user.sendMessage("commands.island.sethome.homes-are");
island.getHomes().keySet().stream().filter(s -> !s.isEmpty()).forEach(s -> user.sendMessage("home-list-syntax", TextVariables.NAME, s));
island.getHomes().keySet().stream().filter(s -> !s.isEmpty()).forEach(s -> user.sendMessage("commands.island.sethome.home-list-syntax", TextVariables.NAME, s));
return false;
}
return true;