mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-05 18:40:06 +01:00
Add alternative Addon#getIslandManager method (#1797)
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.
This commit is contained in:
parent
09d6a9fc6f
commit
2044c73f05
@ -394,6 +394,16 @@ public abstract class Addon {
|
||||
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
|
||||
* @return Optional Addon
|
||||
|
Loading…
Reference in New Issue
Block a user