Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ public boolean onCommand(
if (atPlayer.getHomes().isEmpty() && (limit > 0 || limit == -1)) {
setHome(player, "home");
return true;
} else if (atPlayer.getHomes().size() >= limit) { // If player has reached the homes limit already.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ATPlayer#canSetMoreHomes should be used here instead

CustomMessages.sendMessage(sender, "Error.reachedHomeLimit");
return false;
}

// If the player is a floodgate player, send them a form, otherwise tell the player to
Expand Down
Loading