void connect() throws UnknownHostException, IOException {
PlayerFile dat = new PlayerFile(name, server);
dat.setInventory(inv);
dat.setPosition(player.position());
dat.setLook(player.yaw(), player.pitch());
dat.save();
super.connect();
}
public void add(int id, int count, int damage) {
inv.add(id, count, damage);