PlayerController

public class PlayerController

Controller to manage all the player instances

Constructors

Link copied to clipboard
public void PlayerController()

Functions

Link copied to clipboard
public BBUPlayer createPlayer(UUID uniqueId, String name)
Create a BBUPlayer for a unique id and a name, though, if it already exists, we ignore it.
Link copied to clipboard
public boolean deletePlayer(String name)
Delete a BBUPlayer from cache based on the name
public boolean deletePlayer(UUID uniqueId)
Delete a BBUPlayer from cache based on the uuid
Link copied to clipboard
public String getName(UUID uniqueId)
Get the username of a player from the UUID
Link copied to clipboard
public BBUPlayer getPlayer(String name)
Retrieve a player based on their name
public BBUPlayer getPlayer(UUID uniqueId)
Retrieve a player based on their UUID
Link copied to clipboard
Link copied to clipboard
public UUID getUniqueId(String name)
Get the uuid of the player from their name
Link copied to clipboard
public void resetPlayers()
Recreate the players to reset their player game state