Class PlayerSettingsChangeEvent

java.lang.Object
net.minestom.server.event.player.PlayerSettingsChangeEvent
All Implemented Interfaces:
Event, EntityEvent, PlayerEvent

public class PlayerSettingsChangeEvent extends Object implements PlayerEvent
Called after the player signals the server that his settings has been modified.
  • Constructor Details

    • PlayerSettingsChangeEvent

      public PlayerSettingsChangeEvent(@NotNull @NotNull Player player)
  • Method Details

    • getPlayer

      @NotNull public @NotNull Player getPlayer()
      Gets the player who changed his settings.

      You can retrieve the new player settings with Player.getSettings().

      Specified by:
      getPlayer in interface PlayerEvent
      Returns:
      the player