mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-23 19:25:12 +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
@ -393,6 +393,16 @@ public abstract class Addon {
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user