Skip to content

Commit

Permalink
Add alternative Addon#getIslandManager method (#1797)
Browse files Browse the repository at this point in the history
We have already done this to the main BentoBox class. But add-ons missed it, and it still has this weird structure: Addon#getIslands().getIslands().

This will just add the same method as it is already in BentoBox class.
  • Loading branch information
BONNe authored Jul 24, 2021
1 parent 09d6a9f commit 2044c73
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/main/java/world/bentobox/bentobox/api/addons/Addon.java
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,16 @@ public PlayersManager getPlayers() {
public IslandsManager getIslands() {
return getPlugin().getIslands();
}

/**
* Get Islands Manager
* @return Islands manager
* @see #getIslands()
* @since 1.17.1
*/
public IslandsManager getIslandsManager() {
return getPlugin().getIslandsManager();
}

/**
* Get the Addon By Name
Expand Down

0 comments on commit 2044c73

Please sign in to comment.