Added convenience methods getPlayersManager() and getIslandsManager()

This just helps make the API more friendly and consistent with other
manager getters.
This commit is contained in:
tastybento 2021-01-24 14:14:31 -08:00
parent 01d8075318
commit 2bef0fe57c

View File

@ -316,21 +316,41 @@ public class BentoBox extends JavaPlugin {
} }
/** /**
* Returns the player database * Returns the player manager
* @return the player database * @return the player manager
* @see #getPlayersManager()
*/ */
public PlayersManager getPlayers() { public PlayersManager getPlayers() {
return playersManager; return playersManager;
} }
/** /**
* Returns the island database * Returns the player manager
* @return the island database * @return the player manager
* @see #getPlayers()
*/
public PlayersManager getPlayersManager() {
return playersManager;
}
/**
* Returns the island manager
* @return the island manager
* @see #getIslandsManager()
*/ */
public IslandsManager getIslands() { public IslandsManager getIslands() {
return islandsManager; return islandsManager;
} }
/**
* Returns the island manager
* @return the island manager
* @see #getIslands()
*/
public IslandsManager getIslandsManager() {
return islandsManager;
}
private static void setInstance(BentoBox plugin) { private static void setInstance(BentoBox plugin) {
BentoBox.instance = plugin; BentoBox.instance = plugin;
} }