Package me.tomski.prophunt
Class GameManager
java.lang.Object
me.tomski.prophunt.GameManager
-
Field Summary
Modifier and TypeFieldDescriptionstatic boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static Arena
static int
static boolean
static String
long
static boolean
static GameTimer
static HiderClass
static int
static boolean
static int
static int
static boolean
static PHScoreboard
static SeekerDelay
static double
static SeekerClass
static int
static int
static int
static int
static int
static int
static int
static boolean
static boolean
static boolean
static boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addPlayerToGame(String name)
void
addPlayerToGameDedi(String name)
void
checkEnd()
boolean
checkReady(Arena a)
boolean
void
void
void
kickPlayer(String name, boolean logOff)
void
spectateGame(org.bukkit.entity.Player p)
void
startGame(org.bukkit.entity.Player p)
void
void
teleportSeekerStart(org.bukkit.entity.Player p)
void
teleportToExit(org.bukkit.entity.Player p, boolean message)
void
teleportToLobby(org.bukkit.entity.Player p, boolean message)
void
teleportToSpectator(org.bukkit.entity.Player p)
-
Field Details
-
gameStatus
public static boolean gameStatus -
isHosting
public static boolean isHosting -
canHost
public static boolean canHost -
playersToStartGame
public static int playersToStartGame -
firstSeeker
-
playersWaiting
-
hiders
-
seekers
-
spectators
-
playerstoundisguise
-
playersQuit
-
seekerLives
-
seekerLivesAmount
public static int seekerLivesAmount -
hiderCLASS
-
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
-
automatic
public static boolean automatic -
dedicated
public static boolean dedicated -
sd
-
SB
-
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
-
-
Method Details
-
hostGame
-
checkReady
-
startGame
public void startGame(org.bukkit.entity.Player p) -
endGame
- Throws:
IOException
-
kickPlayer
- Throws:
IOException
-
chooseNewSeekerMeth
public boolean chooseNewSeekerMeth() -
addPlayerToGameDedi
-
addPlayerToGame
-
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
- Throws:
IOException
-
spectateGame
public void spectateGame(org.bukkit.entity.Player p)
-