-
Notifications
You must be signed in to change notification settings - Fork 1
Documentation
Complete documentation with all methods
- TAGA.java
.getGameManager()
.getTaskManager()
.getVersion()
- Game.java
Game(Plugin plugin, World world, String gameName, long time)
.start()
.stop(boolean saveWorld)
.stop(Player winner, Player loser, boolean saveWorld)
.stop(Player[] winners, Player[] losers, boolean saveWorld)
.stop(HashSet winners, HashSet losers, boolean saveWorld)
.shutdown(boolean saveWorld)
.connectPlayer(Player player)
.connectPlayer(Player player, Location location)
.connectPlayer(Player player, double x, double y, double z)
.disconnectPlayer(GamePlayer player)
.disconnectPlayer(GamePlayer player, Location location)
.disconnectPlayer(GamePlayer player, double x, double y, double z)
.getWhenStarted()
.getPlayers()
.getTime()
.getGameName()
.getWorld()
.getTask()
.isLeaveOnKick()
.setTime(long time)
.setKickOnLeave(boolean kickOnLeave)
- GameTask.java
.cancel()
.getGame()
Return:
GameManager
Return:
TaskManager
Return:
String - Api version
Return:
void
Parameters:
World world
- The world where the game will be
String gameName
- Name of the game
long timer
- Game time
Return:
void
Parameters:
World world
- The world where the game will be
String gameName
- Name of the game
Return:
Game
Parameters:
String gameName
- Name of the game
Return:
HashMap<String, Game>
Return:
GameTask
Parameters:
@NotNull Runnable task
- What you need to do every period
Game game
- The game for which the task is being created
long delay
- Delay after which the task will be executed
long period
- The period with which the task will be executed
Return:
GameTask
Parameters:
Game game
- The game in which the task is completed
Return:
HashMap<Game, GameTask>
Return:
void
Return:
void
Parameters:
boolean saveWorld
- Whether to keep the world after stopping the game
Return:
void
Parameters:
Player winner
- Whoever won the game
Player loser
- The one who lost the game
boolean saveWorld
- Whether to keep the world after stopping the game
Return:
void
Parameters:
Player[] winners
- Those who won the game
Player[] losers
- Those who lost the game
boolean saveWorld
- Whether to keep the world after stopping the game
Return:
void
Parameters:
HashSet<Player> winners
- Those who won the game
HashSet<Player> losers
- Those who lost the game
boolean saveWorld
- Whether to keep the world after stopping the game
Return:
void
Parameters:
boolean saveWorld
- Whether to keep the world after stopping the game
Return:
void
Parameters:
Player player
- The player you want to join the game
Return:
void
Parameters:
Player player
- The player you want to join the game
Location location
- The location where the player will have to teleport
Return:
void
Parameters:
Player player
- The player you want to join the game
double x
- X coordinate of the location where the player will have to teleport
double y
- Y coordinate of the location where the player will have to teleport
double z
- Z coordinate of the location where the player will have to teleport
Return:
void
Parameters:
GamePlayer player
- The game player you want to disconnect from the game
Return:
void
Parameters:
GamePlayer player
- The game player you want to join the game
Location location
- The location where the player will have to teleport
Return:
void
Parameters:
GamePlayer player
- The game player you want to join the game
double x
- X coordinate of the location where the player will have to teleport
double y
- Y coordinate of the location where the player will have to teleport
double z
- Z coordinate of the location where the player will have to teleport
Return:
long
Return:
HashMap<Player, GamePlayer>
Return:
long
Return:
String
Return:
World
Return:
GameTask
Return:
boolean
Return:
void
Parameters:
long time
- Time of the whole game
Return:
void
Parameters:
boolean kickOnLeave
- Whether to kick the player out of the game when he leaves the server
Return:
Player
Return:
Game
Return:
int
Return:
boolean
Return:
void
Parameters:
int score
- Player score
Return:
void
Parameters:
boolean isDied
- Has the player died
Return:
void
Return:
Game