Interface Game


public interface Game
  • Method Details

    • getName

      String getName()
      Returns:
      Arena name
    • getStatus

      GameStatus getStatus()
      Returns:
      GameStatus of the arena
    • start

      void start()
    • stop

      void stop()
    • isActivated

      default boolean isActivated()
      Returns:
      true if GameStatus is different than DISABLED
    • joinToGame

      void joinToGame(org.bukkit.entity.Player player)
      Parameters:
      player -
    • leaveFromGame

      void leaveFromGame(org.bukkit.entity.Player player)
      Parameters:
      player -
    • selectPlayerTeam

      void selectPlayerTeam(org.bukkit.entity.Player player, Team team)
      Parameters:
      player -
      team -
    • selectPlayerRandomTeam

      void selectPlayerRandomTeam(org.bukkit.entity.Player player)
      Parameters:
      player -
    • getGameWorld

      org.bukkit.World getGameWorld()
      Returns:
      defined world of the game
    • getPos1

      org.bukkit.Location getPos1()
      Returns:
    • getPos2

      org.bukkit.Location getPos2()
      Returns:
    • getSpectatorSpawn

      org.bukkit.Location getSpectatorSpawn()
      Returns:
    • getGameTime

      int getGameTime()
      Returns:
      configured time of the game
    • getMinPlayers

      int getMinPlayers()
      Returns:
      configured minimal players to start the game
    • getMaxPlayers

      int getMaxPlayers()
      Returns:
      configured maximal players of the arena
    • countConnectedPlayers

      int countConnectedPlayers()
      Returns:
      players in game
    • getConnectedPlayers

      List<org.bukkit.entity.Player> getConnectedPlayers()
      Returns:
      list of players in game
    • getGameStores

      List<GameStore> getGameStores()
      Returns:
      list of game stores
    • countGameStores

      int countGameStores()
      Returns:
    • getTeamFromName

      Team getTeamFromName(String name)
      Returns:
      Team instance from the name
    • getAvailableTeams

      List<Team> getAvailableTeams()
      Returns:
    • countAvailableTeams

      int countAvailableTeams()
      Returns:
    • getRunningTeams

      List<RunningTeam> getRunningTeams()
      Returns:
    • countRunningTeams

      int countRunningTeams()
      Returns:
    • getTeamOfPlayer

      RunningTeam getTeamOfPlayer(org.bukkit.entity.Player player)
      Parameters:
      player -
      Returns:
    • isPlayerInAnyTeam

      boolean isPlayerInAnyTeam(org.bukkit.entity.Player player)
      Parameters:
      player -
      Returns:
    • isPlayerInTeam

      boolean isPlayerInTeam(org.bukkit.entity.Player player, RunningTeam team)
      Parameters:
      player -
      team -
      Returns:
    • isLocationInArena

      boolean isLocationInArena(org.bukkit.Location location)
      Parameters:
      location -
      Returns:
    • isBlockAddedDuringGame

      boolean isBlockAddedDuringGame(org.bukkit.Location location)
      Parameters:
      location -
      Returns:
    • getActivedSpecialItems

      List<SpecialItem> getActivedSpecialItems()
      Returns:
    • getActivedSpecialItems

      List<SpecialItem> getActivedSpecialItems(Class<? extends SpecialItem> type)
      Parameters:
      type -
      Returns:
    • getActivedSpecialItemsOfTeam

      List<SpecialItem> getActivedSpecialItemsOfTeam(Team team)
      Parameters:
      team -
      Returns:
    • getActivedSpecialItemsOfTeam

      List<SpecialItem> getActivedSpecialItemsOfTeam(Team team, Class<? extends SpecialItem> type)
      Parameters:
      team -
      type -
      Returns:
    • getFirstActivedSpecialItemOfTeam

      SpecialItem getFirstActivedSpecialItemOfTeam(Team team)
      Parameters:
      team -
      Returns:
    • getFirstActivedSpecialItemOfTeam

      SpecialItem getFirstActivedSpecialItemOfTeam(Team team, Class<? extends SpecialItem> type)
      Parameters:
      team -
      type -
      Returns:
    • getActivedSpecialItemsOfPlayer

      List<SpecialItem> getActivedSpecialItemsOfPlayer(org.bukkit.entity.Player player)
      Parameters:
      player -
      Returns:
    • getActivedSpecialItemsOfPlayer

      List<SpecialItem> getActivedSpecialItemsOfPlayer(org.bukkit.entity.Player player, Class<? extends SpecialItem> type)
      Parameters:
      player -
      type -
      Returns:
    • getFirstActivedSpecialItemOfPlayer

      SpecialItem getFirstActivedSpecialItemOfPlayer(org.bukkit.entity.Player player)
      Parameters:
      player -
      Returns:
    • getFirstActivedSpecialItemOfPlayer

      SpecialItem getFirstActivedSpecialItemOfPlayer(org.bukkit.entity.Player player, Class<? extends SpecialItem> type)
      Parameters:
      player -
      type -
      Returns:
    • getActiveDelays

      List<DelayFactory> getActiveDelays()
      Returns:
    • getActiveDelaysOfPlayer

      List<DelayFactory> getActiveDelaysOfPlayer(org.bukkit.entity.Player player)
      Parameters:
      player -
      Returns:
    • getActiveDelay

      DelayFactory getActiveDelay(org.bukkit.entity.Player player, Class<? extends SpecialItem> specialItem)
      Parameters:
      player -
      specialItem -
      Returns:
    • registerDelay

      void registerDelay(DelayFactory delayFactory)
      Parameters:
      delayFactory -
    • unregisterDelay

      void unregisterDelay(DelayFactory delayFactory)
      Parameters:
      delayFactory -
    • isDelayActive

      boolean isDelayActive(org.bukkit.entity.Player player, Class<? extends SpecialItem> specialItem)
      Parameters:
      player -
      specialItem -
      Returns:
    • registerSpecialItem

      void registerSpecialItem(SpecialItem item)
      Parameters:
      item -
    • unregisterSpecialItem

      void unregisterSpecialItem(SpecialItem item)
      Parameters:
      item -
    • isRegisteredSpecialItem

      boolean isRegisteredSpecialItem(SpecialItem item)
      Parameters:
      item -
      Returns:
    • getItemSpawners

      List<ItemSpawner> getItemSpawners()
      Returns:
    • getRegion

      Region getRegion()
      Returns:
    • getStatusBar

      StatusBar getStatusBar()
      Returns:
    • getLobbyWorld

      org.bukkit.World getLobbyWorld()
      Returns:
    • getLobbySpawn

      org.bukkit.Location getLobbySpawn()
      Returns:
    • getLobbyCountdown

      int getLobbyCountdown()
      Returns:
    • countTeamChests

      int countTeamChests()
      Returns:
    • countTeamChests

      int countTeamChests(RunningTeam team)
      Parameters:
      team -
      Returns:
    • getTeamOfChest

      RunningTeam getTeamOfChest(org.bukkit.Location location)
      Parameters:
      location -
      Returns:
    • getTeamOfChest

      RunningTeam getTeamOfChest(org.bukkit.block.Block block)
      Parameters:
      block -
      Returns:
    • isEntityShop

      boolean isEntityShop(org.bukkit.entity.Entity entity)
      Parameters:
      entity -
      Returns:
    • getCompassEnabled

      InGameConfigBooleanConstants getCompassEnabled()
      Returns:
    • getOriginalOrInheritedCompassEnabled

      boolean getOriginalOrInheritedCompassEnabled()
      Returns:
    • getJoinRandomTeamAfterLobby

      InGameConfigBooleanConstants getJoinRandomTeamAfterLobby()
      Returns:
    • getOriginalOrInheritedJoinRandomTeamAfterLobby

      boolean getOriginalOrInheritedJoinRandomTeamAfterLobby()
      Returns:
    • getJoinRandomTeamOnJoin

      InGameConfigBooleanConstants getJoinRandomTeamOnJoin()
      Returns:
    • getOriginalOrInheritedJoinRandomTeamOnJoin

      boolean getOriginalOrInheritedJoinRandomTeamOnJoin()
      Returns:
    • getAddWoolToInventoryOnJoin

      InGameConfigBooleanConstants getAddWoolToInventoryOnJoin()
      Returns:
    • getOriginalOrInheritedAddWoolToInventoryOnJoin

      boolean getOriginalOrInheritedAddWoolToInventoryOnJoin()
      Returns:
    • getPreventKillingVillagers

      InGameConfigBooleanConstants getPreventKillingVillagers()
      Returns:
    • getOriginalOrInheritedPreventKillingVillagers

      boolean getOriginalOrInheritedPreventKillingVillagers()
      Returns:
    • getPlayerDrops

      Returns:
    • getOriginalOrInheritedPlayerDrops

      boolean getOriginalOrInheritedPlayerDrops()
      Returns:
    • getFriendlyfire

      InGameConfigBooleanConstants getFriendlyfire()
      Returns:
    • getOriginalOrInheritedFriendlyfire

      boolean getOriginalOrInheritedFriendlyfire()
      Returns:
    • getColoredLeatherByTeamInLobby

      InGameConfigBooleanConstants getColoredLeatherByTeamInLobby()
      Returns:
    • getOriginalOrInheritedColoredLeatherByTeamInLobby

      boolean getOriginalOrInheritedColoredLeatherByTeamInLobby()
      Returns:
    • getKeepInventory

      InGameConfigBooleanConstants getKeepInventory()
      Returns:
    • getOriginalOrInheritedKeepInventory

      boolean getOriginalOrInheritedKeepInventory()
      Returns:
    • getCrafting

      Returns:
    • getOriginalOrInheritedCrafting

      boolean getOriginalOrInheritedCrafting()
      Returns:
    • getLobbyBossbar

      InGameConfigBooleanConstants getLobbyBossbar()
      Returns:
    • getOriginalOrInheritedLobbyBossbar

      boolean getOriginalOrInheritedLobbyBossbar()
      Returns:
    • getGameBossbar

      Returns:
    • getOriginalOrInheritedGameBossbar

      boolean getOriginalOrInheritedGameBossbar()
      Returns:
    • getScoreboard

      Returns:
    • getOriginalOrInheritedScoreaboard

      boolean getOriginalOrInheritedScoreaboard()
      Returns:
    • getLobbyScoreboard

      InGameConfigBooleanConstants getLobbyScoreboard()
      Returns:
    • getOriginalOrInheritedLobbyScoreaboard

      boolean getOriginalOrInheritedLobbyScoreaboard()
      Returns:
    • getPreventSpawningMobs

      InGameConfigBooleanConstants getPreventSpawningMobs()
      Returns:
    • getOriginalOrInheritedPreventSpawningMobs

      boolean getOriginalOrInheritedPreventSpawningMobs()
      Returns:
    • getSpawnerHolograms

      InGameConfigBooleanConstants getSpawnerHolograms()
      Returns:
    • getOriginalOrInheritedSpawnerHolograms

      boolean getOriginalOrInheritedSpawnerHolograms()
      Returns:
    • getSpawnerDisableMerge

      InGameConfigBooleanConstants getSpawnerDisableMerge()
      Returns:
    • getOriginalOrInheritedSpawnerDisableMerge

      boolean getOriginalOrInheritedSpawnerDisableMerge()
      Returns:
    • getGameStartItems

      InGameConfigBooleanConstants getGameStartItems()
      Returns:
    • getOriginalOrInheritedGameStartItems

      boolean getOriginalOrInheritedGameStartItems()
      Returns:
    • getPlayerRespawnItems

      InGameConfigBooleanConstants getPlayerRespawnItems()
      Returns:
    • getOriginalOrInheritedPlayerRespawnItems

      boolean getOriginalOrInheritedPlayerRespawnItems()
      Returns:
    • getSpawnerHologramsCountdown

      InGameConfigBooleanConstants getSpawnerHologramsCountdown()
      Returns:
    • getOriginalOrInheritedSpawnerHologramsCountdown

      boolean getOriginalOrInheritedSpawnerHologramsCountdown()
      Returns:
    • getDamageWhenPlayerIsNotInArena

      InGameConfigBooleanConstants getDamageWhenPlayerIsNotInArena()
      Returns:
    • getOriginalOrInheritedDamageWhenPlayerIsNotInArena

      boolean getOriginalOrInheritedDamageWhenPlayerIsNotInArena()
      Returns:
    • getRemoveUnusedTargetBlocks

      InGameConfigBooleanConstants getRemoveUnusedTargetBlocks()
      Returns:
    • getOriginalOrInheritedRemoveUnusedTargetBlocks

      boolean getOriginalOrInheritedRemoveUnusedTargetBlocks()
      Returns:
    • getAllowBlockFalling

      InGameConfigBooleanConstants getAllowBlockFalling()
      Returns:
    • getOriginalOrInheritedAllowBlockFalling

      boolean getOriginalOrInheritedAllowBlockFalling()
      Returns:
    • getHoloAboveBed

      InGameConfigBooleanConstants getHoloAboveBed()
      Returns:
    • getOriginalOrInheritedHoloAboveBed

      boolean getOriginalOrInheritedHoloAboveBed()
      Returns:
    • getSpectatorJoin

      InGameConfigBooleanConstants getSpectatorJoin()
      Returns:
    • getOriginalOrInheritedSpectatorJoin

      boolean getOriginalOrInheritedSpectatorJoin()
      Returns:
    • getStopTeamSpawnersOnDie

      InGameConfigBooleanConstants getStopTeamSpawnersOnDie()
      Returns:
    • getOriginalOrInheritedStopTeamSpawnersOnDie

      boolean getOriginalOrInheritedStopTeamSpawnersOnDie()
      Returns:
    • getBungeeEnabled

      boolean getBungeeEnabled()
      Returns:
    • getArenaTime

      ArenaTime getArenaTime()
      Returns:
    • getArenaWeather

      org.bukkit.WeatherType getArenaWeather()
      Returns:
    • getLobbyBossBarColor

      org.bukkit.boss.BarColor getLobbyBossBarColor()
      Returns:
    • getGameBossBarColor

      org.bukkit.boss.BarColor getGameBossBarColor()
      Returns:
    • isProtectionActive

      boolean isProtectionActive(org.bukkit.entity.Player player)
      Returns:
    • getAnchorAutoFill

      InGameConfigBooleanConstants getAnchorAutoFill()
      Returns:
    • getOriginalOrInheritedAnchorAutoFill

      boolean getOriginalOrInheritedAnchorAutoFill()
      Returns:
    • getAnchorDecreasing

      InGameConfigBooleanConstants getAnchorDecreasing()
      Returns:
    • getOriginalOrInheritedAnchorDecreasing

      boolean getOriginalOrInheritedAnchorDecreasing()
      Returns:
    • getCakeTargetBlockEating

      InGameConfigBooleanConstants getCakeTargetBlockEating()
      Returns:
    • getOriginalOrInheritedCakeTargetBlockEating

      boolean getOriginalOrInheritedCakeTargetBlockEating()
      Returns:
    • getTargetBlockExplosions

      InGameConfigBooleanConstants getTargetBlockExplosions()
      Returns:
    • getOriginalOrInheritedTargetBlockExplosions

      boolean getOriginalOrInheritedTargetBlockExplosions()
      Returns:
    • getPostGameWaiting

      int getPostGameWaiting()
    • hasCustomPrefix

      default boolean hasCustomPrefix()
    • getCustomPrefix

      String getCustomPrefix()