Class PlayerLocaleChangeEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
com.destroystokyo.paper.event.player.PlayerLocaleChangeEvent

@Deprecated public class PlayerLocaleChangeEvent extends PlayerEvent
Deprecated.
Replaced by PlayerLocaleChangeEvent upstream
Called when the locale of the player is changed.
  • Constructor Details

    • PlayerLocaleChangeEvent

      public PlayerLocaleChangeEvent(Player player, String oldLocale, String newLocale)
      Deprecated.
  • Method Details

    • getOldLocale

      public String getOldLocale()
      Deprecated.
      Gets the locale the player switched from.
      Returns:
      player's old locale
    • getNewLocale

      public String getNewLocale()
      Deprecated.
      Gets the locale the player is changed to.
      Returns:
      player's new locale
    • getHandlers

      public HandlerList getHandlers()
      Deprecated.
      Specified by:
      getHandlers in class Event
    • getHandlerList

      public static HandlerList getHandlerList()
      Deprecated.