Class: AllowList experimental
Beta
Controls the allow list for the server. Only available on dedicated server.
Properties
enabled
enabled:
boolean
World Mutation Beta
Remarks
entries
readonlyentries:AllowListEntry[]
Beta
Remarks
The list of entries in the allow list.
Methods
add()
add(
player):void
World Mutation Beta
Parameters
player
any
Player or player name that should be added to the allow list.
Returns
void
Remarks
Adds a player to the server's allow list.
Throws
This function can throw errors.
clear()
clear():
void
World Mutation Beta
Returns
void
Remarks
Clears the allow list, removing all entries.
contains()
contains(
player):boolean
Beta
Parameters
player
any
Player or player name that should be checked for.
Returns
boolean
Remarks
Returns if the player is in the server's allow list.
Throws
This function can throw errors.
reloadFile()
reloadFile():
void
World Mutation Beta
Returns
void
Remarks
Reloads the server's allow list from disk.
Throws
This function can throw errors.
remove()
remove(
player):void
World Mutation Beta
Parameters
player
any
Player or player name that should be removed from the allow list.
Returns
void
Remarks
Removes a player from the server's allow list.
Throws
This function can throw errors.
