Package eu.bedwarsia.bedsumo.api
Class BedSumoAPIProvider
java.lang.Object
eu.bedwarsia.bedsumo.api.BedSumoAPIProvider
- All Implemented Interfaces:
BedSumoAPI
-
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 BedSumoAPIgetLiveStats(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.static voidregister(eu.bedwarsia.bedsumo.BedSumo plugin) 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.static void
-
Method Details
-
register
public static void register(eu.bedwarsia.bedsumo.BedSumo plugin) -
unregister
public static void unregister() -
getInstance
-
getPlayerLanguage
Description copied from interface:BedSumoAPIGet the current language code assigned to a player (e.g. "en", "fr"). Defaults to "en".- Specified by:
getPlayerLanguagein interfaceBedSumoAPI
-
setPlayerLanguage
Description copied from interface:BedSumoAPISets the persistent language code for a player.- Specified by:
setPlayerLanguagein interfaceBedSumoAPI
-
getAvailableLanguages
Description copied from interface:BedSumoAPIReturns a list of all loaded language identifiers available on this server.- Specified by:
getAvailableLanguagesin interfaceBedSumoAPI
-
translate
Description copied from interface:BedSumoAPITranslates a message key into the target player's chosen language format with correct color codes and placeholder insertion.- Specified by:
translatein interfaceBedSumoAPI
-
getPlayerStats
Description copied from interface:BedSumoAPIBlocks to fetch recent player stats from current database state.- Specified by:
getPlayerStatsin interfaceBedSumoAPI
-
getPlayerStatsAsync
Description copied from interface:BedSumoAPIFetch player stats in a separate thread.- Specified by:
getPlayerStatsAsyncin interfaceBedSumoAPI
-
getTopKills
Description copied from interface:BedSumoAPIRetrieves the current leaderboard configuration for Top Kills.- Specified by:
getTopKillsin interfaceBedSumoAPI
-
getTopDeaths
Description copied from interface:BedSumoAPIRetrieves the current leaderboard configuration for Top Deaths.- Specified by:
getTopDeathsin interfaceBedSumoAPI
-
getCurrentKillstreak
public int getCurrentKillstreak(org.bukkit.entity.Player player) Description copied from interface:BedSumoAPIReturns the current live in-memory session killstreak of a player.- Specified by:
getCurrentKillstreakin interfaceBedSumoAPI
-
getLiveStats
Description copied from interface:BedSumoAPIReturns internal BedSumo live Stats object cached in server memory. (Will update constantly as user moves/kills during matches).- Specified by:
getLiveStatsin interfaceBedSumoAPI
-
isBuildMode
public boolean isBuildMode(org.bukkit.entity.Player player) Description copied from interface:BedSumoAPIChecks if a user currently has administrative build mode enabled.- Specified by:
isBuildModein interfaceBedSumoAPI
-
setBuildMode
public void setBuildMode(org.bukkit.entity.Player player, boolean state) Description copied from interface:BedSumoAPIExplicitly enable/disable administrative building mode for a player.- Specified by:
setBuildModein interfaceBedSumoAPI
-
reloadConfiguration
public void reloadConfiguration()Description copied from interface:BedSumoAPITriggers system-wide configuration reloading.- Specified by:
reloadConfigurationin interfaceBedSumoAPI
-
getArenaSpawnpoints
Description copied from interface:BedSumoAPIRetrieves immutable snapshot of preconfigured arena fallback spawnpoints.- Specified by:
getArenaSpawnpointsin interfaceBedSumoAPI
-
getBedOwner
Description copied from interface:BedSumoAPIRetrieves the UUID of the player who placed this bed, if actively tracked.- Specified by:
getBedOwnerin interfaceBedSumoAPI
-
getActiveBedCount
public int getActiveBedCount()Description copied from interface:BedSumoAPIReturns active placed bed blocks currently awaiting timeouts.- Specified by:
getActiveBedCountin interfaceBedSumoAPI
-
setScoreboardVisible
public void setScoreboardVisible(org.bukkit.entity.Player player, boolean visible) Description copied from interface:BedSumoAPIToggles dynamic rendering of the BedSumo objective sidebar for a user.- Specified by:
setScoreboardVisiblein interfaceBedSumoAPI
-