Package com.andrei1058.bedwars.api
Interface BedWars
public interface BedWars
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
static interface
static interface
static interface
static interface
static interface
static interface
-
Method Summary
Modifier and TypeMethodDescriptionThis is my standard location where to store addons configurations.Get afk system methods.Get bedWars main commandGet server default language.getForCurrentVersion
(String v18, String v12, String v13) getLangIso
(org.bukkit.entity.Player p) Get a player language iso codegetLanguageByIso
(String isoCode) Get language by iso code.Get levels methods.Get lobby world name.Get party util.getPlayerLanguage
(org.bukkit.entity.Player player) Get a player language.Get the restore adapter.Scoreboard options.Get server type.getSetupSession
(UUID player) Get active setup session.Get shop util.Get stats utils.Get shop util.Get nms operations.boolean
boolean
isInSetupSession
(UUID player) Check if a player is in setup session.boolean
void
setLevelAdapter
(Level level) void
setPartyAdapter
(Party partyAdapter) Change the party interface.void
setRestoreAdapter
(RestoreAdapter restoreAdapter) Change the arena restore adapter.
-
Method Details
-
getStatsUtil
BedWars.IStats getStatsUtil()Get stats utils. -
getAFKUtil
BedWars.AFKUtil getAFKUtil()Get afk system methods. It will only work if the game is started. -
getArenaUtil
BedWars.ArenaUtil getArenaUtil() -
getConfigs
BedWars.Configs getConfigs() -
getShopUtil
BedWars.ShopUtil getShopUtil()Get shop util. -
getTeamUpgradesUtil
BedWars.TeamUpgradesUtil getTeamUpgradesUtil()Get shop util. -
getLevelsUtil
Level getLevelsUtil()Get levels methods. -
getPartyUtil
Party getPartyUtil()Get party util. -
getSetupSession
Get active setup session.- Parameters:
player
- player uuid.- Returns:
- null if no session was found.
-
isInSetupSession
Check if a player is in setup session. -
getServerType
ServerType getServerType()Get server type. -
getLangIso
Get a player language iso code -
getBedWarsCommand
ParentCommand getBedWarsCommand()Get bedWars main command -
getRestoreAdapter
RestoreAdapter getRestoreAdapter()Get the restore adapter. -
setRestoreAdapter
Change the arena restore adapter.- Parameters:
restoreAdapter
- your custom adapter.- Throws:
IllegalAccessError
-
setPartyAdapter
Change the party interface. You man need to unregister /party command yourself. -
getVersionSupport
VersionSupport getVersionSupport()Get nms operations. -
getDefaultLang
Language getDefaultLang()Get server default language. -
getLobbyWorld
String getLobbyWorld()Get lobby world name. -
getForCurrentVersion
-
setLevelAdapter
-
isAutoScale
boolean isAutoScale() -
getLanguageByIso
Get language by iso code. -
getPlayerLanguage
Get a player language. -
getAddonsPath
File getAddonsPath()This is my standard location where to store addons configurations. Make sure to create a folder in it with your addon name. -
getScoreboardUtil
BedWars.ScoreboardUtil getScoreboardUtil()Scoreboard options. -
isShuttingDown
boolean isShuttingDown() -
getScoreboardManager
ISidebarService getScoreboardManager()
-