public SpoutCraftPlayer(CraftServer server, EntityPlayer entity) {
super(server, entity);
createInventory(null);
if (entity.playerConnection != null) {
CraftPlayer player = entity.playerConnection.getPlayer();
perm = new SpoutPermissibleBase(player.addAttachment(Bukkit.getServer().getPluginManager().getPlugin("Spout")).getPermissible());
perm.recalculatePermissions();
hasPlayed = player.hasPlayedBefore();
lastPlayed = player.getLastPlayed();
firstPlayed = player.getFirstPlayed();
} else {
perm = new SpoutPermissibleBase(new PermissibleBase(this));
perm.recalculatePermissions();
}
mainScreen = new InGameScreen(this.getEntityId());