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

  • Method Details

    • getOldLocale

      @Nullable public @Nullable 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

      @NotNull public @NotNull 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

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

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