Load player data before calling PlayerLoginEvent. Fixes BUKKIT-1531 and Fixes BUKKIT-601.

This commit is contained in:
feildmaster
2012-04-18 12:28:50 -05:00
parent e61a316815
commit 119b5d18a5
2 changed files with 3 additions and 2 deletions

View File

@@ -102,7 +102,7 @@ public class NetLoginHandler extends NetHandler {
EntityPlayer entityplayer = this.server.serverConfigurationManager.attemptLogin(this, packet1login.name, this.hostname); // CraftBukkit - add hostname parameter
if (entityplayer != null) {
this.server.serverConfigurationManager.b(entityplayer);
//this.server.serverConfigurationManager.b(entityplayer); // CraftBukkit - Moved to attemptLogin
// entityplayer.a((World) this.server.a(entityplayer.dimension)); // CraftBukkit - set by Entity
entityplayer.itemInWorldManager.a((WorldServer) entityplayer.world);
// CraftBukkit - add world and location to 'logged in' message.