Player Executor
The PlayerExecutor is used to perform interactions with players, such as sending messages, connecting to servers, or retrieving information.
1. Methods
1.1 getPlayer(String)
getPlayer(String)
Description: This method is used to retrieve player information based on the UUID as a string.
1.2 getPlayer(UUID)
getPlayer(UUID)
Description: This method is used to retrieve player information based on the UUID.
1.3 getPlayerByName(String)
getPlayerByName(String)
Description: This method is used to retrieve player information based on the player name.
1.4 getPlayerCounts()
getPlayerCounts()
Description: This method is used to retrieve the number of players (current, max).
1.5 connect(String, String)
connect(String, String)
Description: This method is used to connect a player to a service.
1.6 disconnect(String, String)
disconnect(String, String)
In the API, you will often encounter parsedBaseComponent
or similar terms. This refers to the BaseComponents of Bungee-Chat in JSON format. There is a ComponentSerializer provided by BungeeCord that can directly build these components into JSON format.
Description: This method is used to disconnect a player from the BungeeCord server.
1.7 sendMesasge(String, String)
sendMesasge(String, String)
Description: This method is used to send a chat message to the player.
1.8 sendMesasge(String, String[])
sendMesasge(String, String[])
Description: This method is used to send multiple chat messages to the player.
1.9 broadcastMessage(String[], String[])
broadcastMessage(String[], String[])
Description: This method is used to send multiple chat messages to all players. Permissions are optional.
1.10 broadcastMessage(String, String[])
broadcastMessage(String, String[])
Description: This method is used to send a chat message to all players. Permissions are optional.
1.11 broadcastMessage(String, String[])
broadcastMessage(String, String[])
Description: This method is used to send a chat message to all players. Permissions are optional.
1.12 broadcastBaseComponents(String[], String[])
broadcastBaseComponents(String[], String[])
Description:
This method is used to send BaseComponents
to all players. Permissions are optional.
1.13 broadcastBaseComponents(String, String[])
broadcastBaseComponents(String, String[])
Description:
This method is used to send a single BaseComponent
to all players. Permissions are optional.
1.14 sendBaseComponents(String, String)
sendBaseComponents(String, String)
Description:
This method is used to send a BaseComponent
to a specific player using their UUID as a string.
Last updated