/** called during player login. reads the player information from disk. */ public void readPlayerDataFromFile(EntityPlayerMP par1EntityPlayerMP) { NBTTagCompound var2 = this.mcServer.worldServers[0].getWorldInfo().getPlayerNBTTagCompound(); if (par1EntityPlayerMP.getCommandSenderName().equals(this.mcServer.getServerOwner()) && var2 != null) { par1EntityPlayerMP.readFromNBT(var2); } else { this.playerNBTManagerObj.readPlayerData(par1EntityPlayerMP); } }
/** called during player login. reads the player information from disk. */ public NBTTagCompound readPlayerDataFromFile(EntityPlayerMP playerIn) { NBTTagCompound var2 = this.mcServer.worldServers[0].getWorldInfo().getPlayerNBTTagCompound(); NBTTagCompound var3; if (playerIn.getName().equals(this.mcServer.getServerOwner()) && var2 != null) { playerIn.readFromNBT(var2); var3 = var2; logger.debug("loading single player"); } else { var3 = this.playerNBTManagerObj.readPlayerData(playerIn); } return var3; }