From 2044c73f05e32a46747c524b0c9e368e9301cb72 Mon Sep 17 00:00:00 2001 From: BONNe Date: Sat, 24 Jul 2021 05:32:00 +0300 Subject: [PATCH] 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. --- .../java/world/bentobox/bentobox/api/addons/Addon.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/java/world/bentobox/bentobox/api/addons/Addon.java b/src/main/java/world/bentobox/bentobox/api/addons/Addon.java index 2516b3cfb..c05225ef6 100644 --- a/src/main/java/world/bentobox/bentobox/api/addons/Addon.java +++ b/src/main/java/world/bentobox/bentobox/api/addons/Addon.java @@ -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