Skip to content

Commit

Permalink
Added convenience methods getPlayersManager() and getIslandsManager()
Browse files Browse the repository at this point in the history
This just helps make the API more friendly and consistent with other
manager getters.
  • Loading branch information
tastybento committed Jan 24, 2021
1 parent 01d8075 commit 2bef0fe
Showing 1 changed file with 27 additions and 7 deletions.
34 changes: 27 additions & 7 deletions src/main/java/world/bentobox/bentobox/BentoBox.java
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ public void onEnable(){

Bukkit.getScheduler().runTask(instance, () -> {
try {
completeSetup(loadTime);
completeSetup(loadTime);
} catch (Exception e) {
fireCriticalError(e.getMessage(), "");
}
Expand Down Expand Up @@ -316,18 +316,38 @@ public void onDisable() {
}

/**
* Returns the player database
* @return the player database
* Returns the player manager
* @return the player manager
* @see #getPlayersManager()
*/
public PlayersManager getPlayers(){
public PlayersManager getPlayers() {
return playersManager;
}

/**
* Returns the island database
* @return the island database
* Returns the player manager
* @return the player manager
* @see #getPlayers()
*/
public IslandsManager getIslands(){
public PlayersManager getPlayersManager() {
return playersManager;
}

/**
* Returns the island manager
* @return the island manager
* @see #getIslandsManager()
*/
public IslandsManager getIslands() {
return islandsManager;
}

/**
* Returns the island manager
* @return the island manager
* @see #getIslands()
*/
public IslandsManager getIslandsManager() {
return islandsManager;
}

Expand Down

0 comments on commit 2bef0fe

Please sign in to comment.