mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-27 13:15:28 +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,18 +316,38 @@ public class BentoBox extends JavaPlugin {
|
||||
}
|
||||
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user