Package eu.bedwarsia.bedsumo.api
Interface BedSumoAPI
- All Known Implementing Classes:
BedSumoAPIProvider
public interface BedSumoAPI
The public interface to access BedSumo runtime information and features.
-
Method Summary
Modifier and TypeMethodDescriptionintReturns active placed bed blocks currently awaiting timeouts.List<org.bukkit.Location> Retrieves immutable snapshot of preconfigured arena fallback spawnpoints.Returns a list of all loaded language identifiers available on this server.getBedOwner(org.bukkit.Location location) Retrieves the UUID of the player who placed this bed, if actively tracked.intgetCurrentKillstreak(org.bukkit.entity.Player player) Returns the current live in-memory session killstreak of a player.static BedSumoAPIStatic instance accessor pattern commonly used in Spigot plugins.getLiveStats(UUID playerUuid) Returns internal BedSumo live Stats object cached in server memory.getPlayerLanguage(UUID playerUuid) Get the current language code assigned to a player (e.g.getPlayerStats(UUID playerUuid) Blocks to fetch recent player stats from current database state.getPlayerStatsAsync(UUID playerUuid) Fetch player stats in a separate thread.getTopDeaths(int limit) Retrieves the current leaderboard configuration for Top Deaths.getTopKills(int limit) Retrieves the current leaderboard configuration for Top Kills.booleanisBuildMode(org.bukkit.entity.Player player) Checks if a user currently has administrative build mode enabled.voidTriggers system-wide configuration reloading.voidsetBuildMode(org.bukkit.entity.Player player, boolean state) Explicitly enable/disable administrative building mode for a player.voidsetPlayerLanguage(UUID playerUuid, String languageCode) Sets the persistent language code for a player.voidsetScoreboardVisible(org.bukkit.entity.Player player, boolean visible) Toggles dynamic rendering of the BedSumo objective sidebar for a user.Translates a message key into the target player's chosen language format with correct color codes and placeholder insertion.
-
Method Details
-
getInstance
Static instance accessor pattern commonly used in Spigot plugins. -
getPlayerLanguage
Get the current language code assigned to a player (e.g. "en", "fr"). Defaults to "en". -
setPlayerLanguage
Sets the persistent language code for a player. -
getAvailableLanguages
Returns a list of all loaded language identifiers available on this server. -
translate
Translates a message key into the target player's chosen language format with correct color codes and placeholder insertion. -
getPlayerStats
Blocks to fetch recent player stats from current database state. -
getPlayerStatsAsync
Fetch player stats in a separate thread. -
getTopKills
Retrieves the current leaderboard configuration for Top Kills. -
getTopDeaths
Retrieves the current leaderboard configuration for Top Deaths. -
getCurrentKillstreak
int getCurrentKillstreak(org.bukkit.entity.Player player) Returns the current live in-memory session killstreak of a player. -
getLiveStats
Returns internal BedSumo live Stats object cached in server memory. (Will update constantly as user moves/kills during matches). -
isBuildMode
boolean isBuildMode(org.bukkit.entity.Player player) Checks if a user currently has administrative build mode enabled. -
setBuildMode
void setBuildMode(org.bukkit.entity.Player player, boolean state) Explicitly enable/disable administrative building mode for a player. -
reloadConfiguration
void reloadConfiguration()Triggers system-wide configuration reloading. -
getArenaSpawnpoints
List<org.bukkit.Location> getArenaSpawnpoints()Retrieves immutable snapshot of preconfigured arena fallback spawnpoints. -
getBedOwner
Retrieves the UUID of the player who placed this bed, if actively tracked. -
getActiveBedCount
int getActiveBedCount()Returns active placed bed blocks currently awaiting timeouts. -
setScoreboardVisible
void setScoreboardVisible(org.bukkit.entity.Player player, boolean visible) Toggles dynamic rendering of the BedSumo objective sidebar for a user.
-