Skip to content

Commit

Permalink
ignore login event if cancelled
Browse files Browse the repository at this point in the history
  • Loading branch information
weaondara committed Dec 5, 2015
1 parent 543a7ae commit a05a212
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -63,6 +63,12 @@ public void disable()
@EventHandler(priority = Byte.MIN_VALUE + 1)
public void onLogin(LoginEvent e)
{
//don't load if cancelled
if(e.isCancelled())
{
return;
}

String playername = e.getConnection().getName();
UUID uuid = null;
if (config.isUseUUIDs())
Expand Down

0 comments on commit a05a212

Please sign in to comment.