Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @EventHandler
- public void onPostLoginEvent(LoginEvent e) {
- getLogger().info("LoginEvent start, player connected: " + e.getConnection().isConnected());
- e.registerIntent(this);
- new Thread(()->{
- try {
- Thread.sleep(5000);
- } catch (InterruptedException ex) {
- throw new RuntimeException(ex);
- }
- e.completeIntent(this);
- getLogger().info("LoginEvent end, player connected: " + e.getConnection().isConnected());
- }).start();
- }
- @EventHandler
- public void onPlayerDisconnect(PlayerDisconnectEvent e) {
- getLogger().info("PlayerDisconnectEvent called");
- }
- @EventHandler
- public void onPostLoginEvent(PostLoginEvent e) {
- getLogger().info("PostLoginEvent called");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement