Class PlayerSettingsChangedEvent
java.lang.Object
com.velocitypowered.api.event.player.PlayerSettingsChangedEvent
This event is fired when the client sends new client settings for the player. This event can
and typically will be fired multiple times per connection. Velocity will not wait on this event
to finish firing.
-
Constructor Summary
ConstructorsConstructorDescriptionPlayerSettingsChangedEvent(Player player, PlayerSettings playerSettings) Constructs a new PlayerSettingsChangedEvent. -
Method Summary
Modifier and TypeMethodDescriptionReturns the player whose settings changed.Returns the new client settings sent by the player.toString()
-
Constructor Details
-
PlayerSettingsChangedEvent
Constructs a new PlayerSettingsChangedEvent.- Parameters:
player- the player who changed settingsplayerSettings- the new settings sent by the client
-
-
Method Details