Skip to content

Instantly share code, notes, and snippets.

@riking
Created June 22, 2013 21:52
Show Gist options
  • Save riking/5842752 to your computer and use it in GitHub Desktop.
Save riking/5842752 to your computer and use it in GitHub Desktop.
/**
* ....
* <p>
* This event is the first in the login process lifecycle. The lifecycle goes
* as follows:
* <ol>
* <li>Username verification with Mojang (unless in offline/insecure mode)</li>
* <li>AsyncPlayerPreLoginEvent<br>
* <b>Only if necessary:</b>
* <ol>
* <li>Server ticks</li>
* <li>The deprecated PlayerPreLoginEvent is called</li>
* </ol></li>
* <li>Player kicked if AsyncPlayerPreLoginEvent was disallow()ed</li>
* <li>Server ticks</li>
* <li>Bans are checked</li>
* <li>PlayerLoginEvent</li>
* <li>Player kicked if PlayerLoginEvent was disallow()ed</li>
* <li>Player is given a position and world</li>
* <li>PlayerJoinEvent (not cancellable!)</li>
* <li>PlayerTeleportEvent to correct login position</li>
* <li>Any other initialization is completed</li>
* </ol>
*/
public class AsyncPlayerPreLoginEvent ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment