Ignore all canceled events

This commit is contained in:
games647 committed 2016-07-03 21:28:44 +02:00
1 parent 2b16f3341f
commit bba4eb4eec
3 files changed
+12

No files matched your search

@@ -49,6 +49,10 @@ public class PlayerConnectionListener implements Listener {
@EventHandler
public void onLogin(LoginEvent loginEvent) {
if (loginEvent.isCancelled()) {
return;
}
//use the loginevent instead of the postlogin event in order to send the loginsuccess packet to the client
//with the offline uuid this makes it possible to set the skin then