Package com.olziedev.playereconomy.api
Class PlayerEconomyAPI
java.lang.Object
com.olziedev.playereconomy.api.PlayerEconomyAPI
- All Implemented Interfaces:
PluginAPI
The main class for accessing and using the API.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract CommandRegistryabstract EPlayergetEcoPlayer(UUID uuid) Retrieve the requested eco player.static PlayerEconomyAPIstatic voidWaits for the instance of the API when it is ready.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.olziedev.playereconomy.api.PluginAPI
createConfigItem, getExpansionRegistry, getPlugin, sendMessage
-
Constructor Details
-
PlayerEconomyAPI
public PlayerEconomyAPI()
-
-
Method Details
-
getInstance
- Returns:
- The instance of the API.
-
getInstance
Waits for the instance of the API when it is ready.- Parameters:
api- Callback with the instance of the API.
-
getEcoPlayer
Retrieve the requested eco player.- Parameters:
uuid- The uuid of a player to get.- Returns:
- The requested player.
-
getEcoPlayers
- Returns:
- The currently loaded eco players.
-
getCommandRegistry
- Returns:
- The command registry to manage the plugin sub-commands.
-