Class GameManager

java.lang.Object
me.tomski.prophunt.GameManager

public class GameManager extends Object
  • Field Details

    • gameStatus

      public static boolean gameStatus
    • isHosting

      public static boolean isHosting
    • canHost

      public static boolean canHost
    • playersToStartGame

      public static int playersToStartGame
    • firstSeeker

      public static String firstSeeker
    • playersWaiting

      public static List<String> playersWaiting
    • hiders

      public static List<String> hiders
    • seekers

      public static List<String> seekers
    • spectators

      public static List<String> spectators
    • playerstoundisguise

      public static List<String> playerstoundisguise
    • playersQuit

      public static List<String> playersQuit
    • seekerLives

      public static Map<org.bukkit.entity.Player,​Integer> seekerLives
    • seekerLivesAmount

      public static int seekerLivesAmount
    • hiderCLASS

      public static HiderClass hiderCLASS
    • seekerCLASS

      public static SeekerClass seekerCLASS
    • interval

      public static int interval
    • starting_time

      public static int starting_time
    • seeker_damage

      public static double seeker_damage
    • timeleft

      public static int timeleft
    • time_reward

      public static int time_reward
    • TIMERID

      public static int TIMERID
    • chooseNewSeeker

      public static boolean chooseNewSeeker
    • randomArenas

      public static boolean randomArenas
    • GT

      public static GameTimer GT
    • automatic

      public static boolean automatic
    • dedicated

      public static boolean dedicated
    • sd

      public static SeekerDelay sd
    • SB

      public static PHScoreboard SB
    • currentGameArena

      public static Arena currentGameArena
    • blowDisguises

      public static boolean blowDisguises
    • crouchBlockLock

      public static boolean crouchBlockLock
    • usingSolidBlock

      public static boolean usingSolidBlock
    • solidBlockTime

      public static int solidBlockTime
    • seekerDelayTime

      public static int seekerDelayTime
    • usingHitmarkers

      public static boolean usingHitmarkers
    • usingHitsounds

      public static boolean usingHitsounds
    • blindSeeker

      public static boolean blindSeeker
    • autoRespawn

      public static boolean autoRespawn
    • useSideStats

      public static boolean useSideStats
    • lobbyTime

      public static int lobbyTime
    • currentLobbyTime

      public static int currentLobbyTime
    • gameStartTime

      public long gameStartTime
  • Constructor Details

    • GameManager

      public GameManager(PropHunt plugin)
  • Method Details

    • hostGame

      public void hostGame(org.bukkit.entity.Player host, Arena arena)
    • checkReady

      public boolean checkReady(Arena a)
    • startGame

      public void startGame(org.bukkit.entity.Player p)
    • endGame

      public void endGame(Reason reason, boolean shutdown) throws IOException
      Throws:
      IOException
    • kickPlayer

      public void kickPlayer(String name, boolean logOff) throws IOException
      Throws:
      IOException
    • chooseNewSeekerMeth

      public boolean chooseNewSeekerMeth()
    • addPlayerToGameDedi

      public void addPlayerToGameDedi(String name)
    • addPlayerToGame

      public void addPlayerToGame(String name)
    • teleportPlayersStart

      public void teleportPlayersStart()
    • teleportSeekerStart

      public void teleportSeekerStart(org.bukkit.entity.Player p)
    • teleportToSpectator

      public void teleportToSpectator(org.bukkit.entity.Player p)
    • teleportToLobby

      public void teleportToLobby(org.bukkit.entity.Player p, boolean message)
    • teleportToExit

      public void teleportToExit(org.bukkit.entity.Player p, boolean message)
    • checkEnd

      public void checkEnd() throws IOException
      Throws:
      IOException
    • spectateGame

      public void spectateGame(org.bukkit.entity.Player p)