Interface OreAnnouncerAPI
public interface OreAnnouncerAPI
-
Method Summary
Modifier and TypeMethodDescription@Nullable OABlockAdd a block to the configuration@Nullable OABlockGet the block from the configurationdefault LinkedList<OABlockFound>getLogBlocks(int limit) Get latest blocks founddefault LinkedList<OABlockFound>getLogBlocks(int limit, OABlock block) Get latest blocks ofblockfounddefault LinkedList<OABlockFound>getLogBlocks(int limit, OAPlayer player) Get latest blocks found byplayerdefault LinkedList<OABlockFound>getLogBlocks(int limit, OAPlayer player, OABlock block) Get latest blocks ofblockfound byplayergetLogBlocks(int limit, OAPlayer player, OABlock block, int offset) Get latest blocks ofblockfound byplayergetOAPlayer(UUID uuid) Get the player by hisUUIDdefault LinkedHashMap<OAPlayer,Integer> getTopPlayersByDestroy(int numberOfPlayers) Get top players ordered by destroydefault LinkedHashMap<OAPlayer,Integer> getTopPlayersByDestroy(int numberOfPlayers, int offset) Get top players ordered by destroydefault LinkedHashMap<OAPlayer,Integer> getTopPlayersByDestroy(int numberOfPlayers, OABlock block) Get top players ordered by given block destroygetTopPlayersByDestroy(int numberOfPlayers, OABlock block, int offset) Get top players ordered by block destroydefault LinkedHashMap<OAPlayer,Integer> getTopPlayersByFound(int numberOfPlayers) Get top players ordered by founddefault LinkedHashMap<OAPlayer,Integer> getTopPlayersByFound(int numberOfPlayers, int offset) Get top players ordered by founddefault LinkedHashMap<OAPlayer,Integer> getTopPlayersByFound(int numberOfPlayers, OABlock block) Get top players ordered by block foundgetTopPlayersByFound(int numberOfPlayers, OABlock block, int offset) Get top players ordered by block foundbooleanCheck if the plugin have BungeeCord option enabledmakeBlockDestroy(@NotNull UUID playerUuid, @NotNull OABlock block, int destroyCount) Make a newOABlockDestroydefault voidDeprecated.Use reloadPlugin() insteadvoidReload OreAnnouncer configuration filesvoidremoveBlock(@NotNull OABlock block) Remove the block from the configuration
-
Method Details
-
reloadPlugin
void reloadPlugin()Reload OreAnnouncer configuration files -
reloadOreAnnouncer
Deprecated.Use reloadPlugin() insteadReload OreAnnouncer configuration files -
isBungeeCordEnabled
boolean isBungeeCordEnabled()Check if the plugin have BungeeCord option enabled- Returns:
- True if BungeeCord support is enabled
-
getOAPlayer
Get the player by hisUUID -
getTopPlayersByDestroy
Get top players ordered by destroy -
getTopPlayersByDestroy
Get top players ordered by given block destroy -
getTopPlayersByDestroy
Get top players ordered by destroy -
getTopPlayersByDestroy
LinkedHashMap<OAPlayer,Integer> getTopPlayersByDestroy(int numberOfPlayers, OABlock block, int offset) Get top players ordered by block destroy -
getTopPlayersByFound
Get top players ordered by found -
getTopPlayersByFound
Get top players ordered by block found -
getTopPlayersByFound
Get top players ordered by found -
getTopPlayersByFound
LinkedHashMap<OAPlayer,Integer> getTopPlayersByFound(int numberOfPlayers, OABlock block, int offset) Get top players ordered by block found -
getLogBlocks
Get latest blocks found- Parameters:
limit- The result number limit- Returns:
- Returns a set of
OABlockFound
-
getLogBlocks
Get latest blocks found byplayer- Parameters:
limit- The result number limitplayer- The player to use as filter- Returns:
- Returns a set of
OABlockFound
-
getLogBlocks
Get latest blocks ofblockfound- Parameters:
limit- The result number limitblock- The block to use as filter- Returns:
- Returns a set of
OABlockFound
-
getLogBlocks
Get latest blocks ofblockfound byplayer- Parameters:
limit- The result number limitplayer- The player to use as filterblock- The block to use as filter- Returns:
- Returns a set of
OABlockFound
-
getLogBlocks
Get latest blocks ofblockfound byplayer- Parameters:
limit- The result number limitplayer- The player to use as filterblock- The block to use as filteroffset- Offset the result list- Returns:
- Returns a set of
OABlockFound
-
getBlock
Get the block from the configuration- Parameters:
materialName- The block to get- Returns:
- Returns the block or null if not exists
-
addBlock
Add a block to the configuration- Parameters:
materialName- The block name to add- Returns:
- Returns a new block or null if already exists
-
removeBlock
Remove the block from the configuration- Parameters:
block- The block to remove
-
makeBlockDestroy
OABlockDestroy makeBlockDestroy(@NotNull @NotNull UUID playerUuid, @NotNull @NotNull OABlock block, int destroyCount) Make a newOABlockDestroy- Parameters:
playerUuid- The player UUIDblock- The blockdestroyCount- The number of destroyed blocks- Returns:
- Returns a new instance of
OABlockDestroy
-