public void connect() { try { establishConnectionWithClient(Server.getIP(), Server.getPort(), clientName, uname, password); } catch (Exception e) { e.printStackTrace(); } }
public static UUID getUUID() { String ip = "SP"; if (Server.inServer()) ip = Server.getIP(); return UUID.nameUUIDFromBytes((ip + ":" + World.getName()).getBytes()); }