mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-24 03:35:11 +01:00
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:
parent
01d8075318
commit
2bef0fe57c
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user