public GameModule
@NotNull Timer getTimer()
class Timer for this game.void setTimer(@NotNull
Timer timer)
Set remaining class Timer for this game.
class Timervoid setCanJoinAfterStart(boolean p)
After the game starts, you decide to allow or deny players from joining this game. (Defaults to false)
void setCanRespawn(boolean p)
Whether or not to let players respawn upon death. (Defaults to false)
void setKeepInventory(boolean keep,
boolean drop)
Decide if players' items should be kept upon death.
void setRespawnTimer(@NotNull
Timer timer)
The amount of class Timer players have to wait before they respawn.
class Timervoid setLastManStanding(boolean enable)
Toggle LastManStanding mode.
In this mode, the player (or its team) wins if they have survived and the others are dead.
enable - true to enable LMS. (Defaults to false)void setGameMode(@NotNull
org.bukkit.GameMode mode)
Set default GameMode.
void setPVP(boolean pvp)
Control the ability of players to attack each other.
void setMoneyReward(@NotNull
org.bukkit.entity.Player player,
double amount)
void setItemReward(@NotNull
org.bukkit.entity.Player player,
@NotNull
org.bukkit.loot.LootTable lootTable)
Set lootTable the Player will be rewarded at the end.
Use ItemModule.getLootTable to get a loot table.
ItemModule.getLootTablevoid broadcast(@NotNull
java.lang.String message)
Broadcast message to everyone in this game.
messagevoid finishGame(@NotNull
org.bukkit.scoreboard.Team winner,
@NotNull
Timer timer)
Finish game and mark winner team.
winner - The winning team.timer - Amount of time to celebrate.void finishGame(@NotNull
org.bukkit.entity.Player winner,
@NotNull
Timer timer)
Finish game and mark a winner.
winner - The winner.timer - Amount of time to celebrate.void drawGame(@NotNull
Timer timer)
Finish game and mark it as draw.
timer - Amount of time to celebrate.