Abstract
Clears the value of the property for players that pass the predicate. Should only be used on the server.
The predicate to filter players
Abstract
clearClears the value of the property. This will clear the perPlayer map and fire the signal to all players. Should only be used on the server.
Clears the value of the property for a list of players. Should only be used on the server.
The list of players to clear the value for
Abstract
destroyCleans up any resources used by the packet.
Abstract
getReturns the current value of the property.
Optional
player: PlayerThe player to get the value for. Does nothing on the client.
The current value of the property
Abstract
observeObserves the property for changes. Unlike changed, this will fire the handler immediately if the value is already set. Else, it will wait for the value to be set and then fire the handler.
The handler to call when the property changes
A connection that can be disconnected to stop observing the property
Abstract
setSets the value of the property for all players. Should only be used on the server.
The new value of the property
Sets the value of the property for players that pass the predicate. Should only be used on the server.
The predicate to filter players
The new value of the property
Abstract
setSets the value of the property for a specific player.
The player to set the value for
The new value of the property
Sets the value of the property for a list of players. Should only be used on the server.
The list of players to set the value for
The new value of the property
Class name of the packet, used for debugging purposes.