i18n-spigot/src/main/java/com/blackypaw/mc/i18n/PlayerLoginListener.java
/**
	 * Catches player logins as soon as possible by having the lowest priority possible.
	 *
	 * @param event The player login event
	 */
Catches player logins as soon as possible by having the lowest priority possible.
@param event The player login event
Catches player logins as soon as possible by having the lowest priority possible . @param event The player login event
@EventHandler( priority = EventPriority.LOWEST, ignoreCancelled = true )
	public void onPlayerLogin( PlayerLoginEvent event ) {
		Player player = event.getPlayer();
		Locale locale = this.i18n.getLocaleResolver().resolveLocale( player.getUniqueId() );
		this.i18n.storeLocale( player.getUniqueId(), locale );
	}
@ EventHandler ( priority = EventPriority . LOWEST , ignoreCancelled = true ) public void onPlayerLogin ( PlayerLoginEvent event ) { Player player = event . getPlayer ( ) ; Locale locale = this . i18n . getLocaleResolver ( ) . resolveLocale ( player . getUniqueId ( ) ) ; this . i18n . storeLocale ( player . getUniqueId ( ) , locale ) ; }
Catches player logins as soon as possible by having the lowest priority possible.
Catches player logins as soon as possible by having the lowest priority possible .