Class PlayerLocaleChangeEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
org.bukkit.event.player.PlayerLocaleChangeEvent

public class PlayerLocaleChangeEvent extends PlayerEvent
Called when a player changes their locale in the client settings.
Since:
1.12
  • Constructor Details

    • PlayerLocaleChangeEvent

      @Internal public PlayerLocaleChangeEvent(@NotNull @NotNull Player player, @NotNull @NotNull String locale)
  • Method Details

    • getLocale

      @NotNull @Deprecated public @NotNull String getLocale()
      Deprecated.
      in favour of locale()
      Returns:
      the player's new locale
      Since:
      1.12
      See Also:
    • locale

      @NotNull public @NotNull Locale locale()
      Returns:
      the player's new locale
      Since:
      1.16.5
      See Also:
    • getHandlers

      @NotNull public @NotNull HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
      Since:
      1.12
    • getHandlerList

      @NotNull public static @NotNull HandlerList getHandlerList()
      Since:
      1.12