Ignore all canceled events
This commit is contained in:
1 parent
2b16f3341f
commit
bba4eb4eec
3 files changed
+12
No files matched your search
+4
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user