PlayerList
Importing the class
If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.
import crafttweaker.api.server.PlayerList;
Members
getPlayer(uuid as UUID) as ServerPlayer
myPlayerList.getPlayer(myUUID);
Parameters:
uuid: UUID
Type: UUID
Return Type:
ServerPlayer
getPlayerByName(name as string) as ServerPlayer
myPlayerList.getPlayerByName(myString);
Parameters:
name: string
Type: string
Return Type:
ServerPlayer
Getter
// PlayerList.isAllowCheatsForAllPlayers as boolmyPlayerList.isAllowCheatsForAllPlayers
Return Type:
bool
isAllowCheatsForAllPlayers() as bool
// PlayerList.isAllowCheatsForAllPlayers() as bool;myPlayerList.isAllowCheatsForAllPlayers();
Return Type:
bool
Getter
// PlayerList.maxPlayers as intmyPlayerList.maxPlayers
Return Type:
int
maxPlayers() as int
// PlayerList.maxPlayers() as int;myPlayerList.maxPlayers();
Return Type:
int
Getter
// PlayerList.playerCount as intmyPlayerList.playerCount
Return Type:
int
playerCount() as int
// PlayerList.playerCount() as int;myPlayerList.playerCount();
Return Type:
int
Getter
myPlayerList.players
Return Type:
List<ServerPlayer>
players() as List<ServerPlayer>
Getter
// PlayerList.simulationDistance as intmyPlayerList.simulationDistance
Return Type:
int
simulationDistance() as int
// PlayerList.simulationDistance() as int;myPlayerList.simulationDistance();
Return Type:
int
Getter
// PlayerList.viewDistance as intmyPlayerList.viewDistance
Return Type:
int
viewDistance() as int
// PlayerList.viewDistance() as int;myPlayerList.viewDistance();
Return Type:
int