OptionalmodifyCurrent ping value of the current player.
OptionalcustomData: anyAny custom data that might be returned from the previous addon's calback.
The new ping value of the current player.
OptionalmodifyIf defined, runs only for the current player in a client room and modifies its ping value.
Current ping value of the current player.
The new ping value of the current player.
OptionalmodifyCalled just before the player has joined the room. Using this callback, you may block all players or modify all players' name, flag and avatar properties just before they join the room.
Id of the new player who is about to join the room.
Name of the new player who is about to join the room.
Country code of the new player who is about to join the room.
Avatar of the new player who is about to join the room.
Connection string of the new player who is about to join the room.
Auth string of the new player who is about to join the room.
OptionalcustomData: anyAny custom data that might be returned from the previous addon's calback.
null: Blocks the player from joining the room.
[modifiedName: string, modifiedFlag: string, modifiedAvatar: string]: Modifies the name, flag and avatar values.Promise<[modifiedName: string, modifiedFlag: string, modifiedAvatar: string]>: Modifies the name, flag and avatar values after the promise might be resolved.OptionalmodifyCalled just before the player has joined the room. Using this callback, you may block all players or modify all players' name, flag and avatar properties just before they join the room.
Id of the new player who is about to join the room.
Name of the new player who is about to join the room.
Country code of the new player who is about to join the room.
Avatar of the new player who is about to join the room.
Connection string of the new player who is about to join the room.
Auth string of the new player who is about to join the room.
null: Blocks the player from joining the room.
[[modifiedName: string, modifiedFlag: string, modifiedAvatar: string], customData: any]: Modifies the name, flag and avatar values.Promise<[[modifiedName: string, modifiedFlag: string, modifiedAvatar: string], customData: any]>: Modifies the name, flag and avatar values after the promise might be resolved.OptionalmodifyIf defined, runs for all players except host in a host room. Modifies the ping value of the player whose id is playerId.
Host player's ping will not change using this callback. In order to change host player's ping, you need to modify room.hostPing value directly.
Id of the current player.
Current ping value of the current player.
OptionalcustomData: anyAny custom data that might be returned from the previous addon's calback.
The new ping value of the current player.
OptionalmodifyIf defined, runs for all players except host in a host room. Modifies the ping value of the player whose id is playerId.
Host player's ping will not change using this callback. In order to change host player's ping, you need to modify room.hostPing value directly.
Id of the current player.
Current ping value of the current player.
The new ping value of the current player.
OptionalonIf defined, runs for each message received from all clients in a host room, before they are processed and sent to all clients. This is the most important callback inside a host room; all permission logic should reside here. You are also allowed to freely modify the contents of all messages here.
Type of the received message. We have to look it up in the global OperationType object to understand what type of message it actually is.
The original message object. We can directly modify all contents of this object here as we wish.
The global frame no that host's physics engine is at, at the time that the message is received.
The frame no that this client's physics engine is at, at the time that the message is received.
OptionalcustomData: anyAny custom data that might be returned from the previous addon's calback.
true: accept event.
false: block message from being processed.throw exception: break the connection of the sender of this message.OptionalonIf defined, runs for each message received from all clients in a host room, before they are processed and sent to all clients. This is the most important callback inside a host room; all permission logic should reside here. You are also allowed to freely modify the contents of all messages here.
Type of the received message. We have to look it up in the global OperationType object to understand what type of message it actually is.
The original message object. We can directly modify all contents of this object here as we wish.
The global frame no that host's physics engine is at, at the time that the message is received.
The frame no that this client's physics engine is at, at the time that the message is received.
true: accept event.
false: block message from being processed.throw exception: break the connection of the sender of this message.
If defined, runs only for the current player in a client room and modifies its
pingvalue.