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:
BONNe 2021-07-24 05:32:00 +03:00 committed by GitHub
parent 09d6a9fc6f
commit 2044c73f05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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