TeamController

public class TeamController

Controller to manage all the team instances

Constructors

Link copied to clipboard
public void TeamController()

Functions

Link copied to clipboard
public void clearTeams()
Link copied to clipboard
public boolean createTeam(BBUTeamColor colour)
Create a team and cache it
Link copied to clipboard
public boolean deleteTeam(BBUTeamColor colour)
Delete a team from cache based on colour
public boolean deleteTeam(BBUTeam team)
Delete a team from cache from the instance of it
Link copied to clipboard
public ImmutableList<BBUTeam> getAllTeams()
Link copied to clipboard
public BBUTeam getTeam(BBUTeamColor colour)
Retrieve a team based on colour
public BBUTeam getTeam(BBUPlayer bbuPlayer)
Retrieve a team from a player within it
public BBUTeam getTeam(Block beacon)
Retrieve a team from the beacon position
@Nullable()
public @Nullable() BBUTeam getTeam(Player player)
Retrieve a team from a bukkit player within it
Link copied to clipboard
Link copied to clipboard
public void setupTeams()
Sets up all the teams according to the me.imoltres.bbu.data.BBUTeamColor class