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.
Called when the locale of the player is changed.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Field Summary
Fields inherited from class org.bukkit.event.player.PlayerEvent
player
-
Constructor Summary
ConstructorDescriptionPlayerLocaleChangeEvent
(Player player, String oldLocale, String newLocale) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionstatic HandlerList
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Gets the locale the player is changed to.Deprecated, for removal: This API element is subject to removal in a future version.Gets the locale the player switched from.Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayer
Methods inherited from class org.bukkit.event.Event
asynchronous, callEvent, getEventName, isAsynchronous
-
Constructor Details
-
PlayerLocaleChangeEvent
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
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
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
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getHandlers
in classEvent
-
getHandlerList
Deprecated, for removal: This API element is subject to removal in a future version.
-
PlayerLocaleChangeEvent
upstream