public void connect() {
    try {

      establishConnectionWithClient(Server.getIP(), Server.getPort(), clientName, uname, password);

    } catch (Exception e) {
      e.printStackTrace();
    }
  }
Exemple #2
0
 public static UUID getUUID() {
   String ip = "SP";
   if (Server.inServer()) ip = Server.getIP();
   return UUID.nameUUIDFromBytes((ip + ":" + World.getName()).getBytes());
 }