Skip to content

Commit

Permalink
Add deprecation javadocs.
Browse files Browse the repository at this point in the history
  • Loading branch information
LlmDl committed May 16, 2024
1 parent 0ee05c3 commit fe09686
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -347,15 +347,25 @@ public boolean removeTown(@NotNull Town town, @NotNull DeleteTownEvent.Cause cau

abstract public void renameGroup(PlotGroup group, String newName) throws AlreadyRegisteredException;

/**
* @deprecated since 0.100.2.9 use {@link #removeTown(Town, com.palmergames.bukkit.towny.event.DeleteTownEvent.Cause)} instead.
* @param town
*/
@Deprecated
public void removeTown(Town town) {
removeTown(town, DeleteTownEvent.Cause.UNKNOWN);
}

@SuppressWarnings("unused")
private void removeTown$$bridge$$public(Town town, boolean delayFullRemoval) {
removeTown(town, DeleteTownEvent.Cause.UNKNOWN, null, delayFullRemoval);
}

/**
* @deprecated since 0.100.2.96 use {@link #removeNation(Nation, com.palmergames.bukkit.towny.event.DeleteNationEvent.Cause)} instead.
* @param nation
*/
@Deprecated
public void removeNation(Nation nation) {
removeNation(nation, DeleteNationEvent.Cause.UNKNOWN, null);
}
Expand Down

0 comments on commit fe09686

Please sign in to comment.