Skip to content

Commit

Permalink
Update to latest version of Towny.
Browse files Browse the repository at this point in the history
  • Loading branch information
Staartvin committed Feb 1, 2021
1 parent b47564e commit 945d951
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ public boolean isKing(String playerName) {

if (resident == null) return false;

if (!resident.hasNation()) return false;

return resident.isKing();
}

Expand All @@ -98,6 +100,8 @@ public boolean isMayor(String playerName) {

if (resident == null) return false;

if (!resident.hasTown()) return false;

return resident.isMayor();
}

Expand Down Expand Up @@ -126,6 +130,8 @@ public int getNumberOfTownBlocks(String playerName) {

if (resident == null) return 0;

if (!resident.hasTown()) return 0;

return resident.getTownBlocks().size();
}

Expand Down

0 comments on commit 945d951

Please sign in to comment.