public class ArcadeUtils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static java.util.List<java.lang.String> |
songs |
| Constructor and Description |
|---|
ArcadeUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
equipTeamColor(java.util.List<org.bukkit.entity.Player> players,
org.bukkit.Color color,
java.lang.String name)
Lets a group of players equip a chestplate in the color of their team.
|
static void |
placeTeam(java.util.List<org.bukkit.entity.Player> players,
org.bukkit.Location location,
int xOffset,
int zOffset)
Places a group of players to the new spawn point for their team.
|
private static void |
runEndTimer(int secondsTillEnd)
Runs a recursive timer for all players in the minigame.
|
static void |
runNextTimer(int secondsTillNext)
Runs a recursive timer for all players in the lobby.
|
static void |
runStartTimer(int secondsTillStart,
int secondsTillEnd)
Runs a recursive timer for all players in the minigame.
|
static java.util.List<org.bukkit.entity.Player> |
selectRandomPlayers(java.util.List<org.bukkit.entity.Player> players,
int count)
Selects random players from the given list.
|
static java.util.List<java.util.List<org.bukkit.entity.Player>> |
splitIntoTeams(java.util.List<org.bukkit.entity.Player> players,
int teamCount)
Splits the given players into random teams.
|
public static java.util.List<java.util.List<org.bukkit.entity.Player>> splitIntoTeams(java.util.List<org.bukkit.entity.Player> players,
int teamCount)
players - The players to split.teamCount - The amount of teams.public static java.util.List<org.bukkit.entity.Player> selectRandomPlayers(java.util.List<org.bukkit.entity.Player> players,
int count)
players - The list of players.count - The number of players to select.public static void equipTeamColor(java.util.List<org.bukkit.entity.Player> players,
org.bukkit.Color color,
java.lang.String name)
players - The group of players.color - Their team color.name - Their team name.public static void placeTeam(java.util.List<org.bukkit.entity.Player> players,
org.bukkit.Location location,
int xOffset,
int zOffset)
players - The group of players.location - Their team spawn.xOffset - Possible x-offset of the spawn point.zOffset - Possible z-offset of the spawn point.public static void runNextTimer(int secondsTillNext)
secondsTillNext - How many seconds to wait until the next game.public static void runStartTimer(int secondsTillStart,
int secondsTillEnd)
secondsTillStart - How many seconds to wait until game start.secondsTillEnd - How many seconds to wait until game end.private static void runEndTimer(int secondsTillEnd)
secondsTillEnd - How many seconds to wait until game end.