Class PlayerPreLoginEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerPreLoginEvent

@Deprecated(since="1.3.2") public class PlayerPreLoginEvent extends Event
Deprecated.
This event causes synchronization from the login thread; AsyncPlayerPreLoginEvent is preferred to keep the secondary threads asynchronous.
Stores details for players attempting to log in

When this event is fired, the player's locale is not available. Therefore, any translatable component will be rendered with the default locale, Locale.US.

Consider rendering any translatable yourself with GlobalTranslator.render(net.kyori.adventure.text.Component, java.util.Locale) if the client's language is known.