Ignore all canceled events

This commit is contained in:
games647
2016-07-03 21:28:44 +02:00
parent 2b16f3341f
commit bba4eb4eec
3 changed files with 12 additions and 0 deletions
@@ -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