Class PlayerLocaleChangeEvent

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

@Deprecated(forRemoval=true) @ScheduledForRemoval(inVersion="1.21") public class PlayerLocaleChangeEvent extends PlayerEvent
Deprecated, for removal: This API element is subject to removal in a future version.
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, for removal: This API element is subject to removal in a future version.
  • Method Details

    • getOldLocale

      public String getOldLocale()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets the locale the player switched from.
      Returns:
      player's old locale
    • getNewLocale

      public String getNewLocale()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets the locale the player is changed to.
      Returns:
      player's new locale
    • getHandlers

      public HandlerList getHandlers()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getHandlers in class Event
    • getHandlerList

      public static HandlerList getHandlerList()
      Deprecated, for removal: This API element is subject to removal in a future version.