game.removeEntity(entity.getId());
int id = entity.getId(); game.removeEntity(id, Entity.REMOVE_NEVER_JOINED); send(createRemoveEntityPacket(id, Entity.REMOVE_NEVER_JOINED));
    private void removeAllEntitesOwnedBy(Player player) {        Vector toRemove = new Vector();                for (Enumeration e = game.getEntities(); e.hasMoreElements();) {            final Entity entity = (Entity)e.nextElement();                        if (entity.getOwner().equals(player)) {                toRemove.addElement(entity);            }        }                for (Enumeration e = toRemove.elements(); e.hasMoreElements();) {            final Entity entity = (Entity)e.nextElement();                        game.removeEntity(entity.getId());        }    }