Message and setting loading

This commit is contained in:
William committed 2022-05-20 19:48:32 +01:00
1 parent 704e4b12f8
commit 10e3345b38
16 files changed
+821 -25

No files matched your search

@@ -1,7 +1,5 @@
package net.william278.huskhomes.position;
import java.util.UUID;
/**
* Represents a server on a proxied network
*/
@@ -12,9 +10,16 @@ public class Server {
*/
public String id;
/**
* Plugin-assigned identifier of this server
*/
public UUID uuid;
public Server(String id) {
this.id = id;
}
@Override
public boolean equals(Object other) {
if (other instanceof Server server) {
// If the id of this server matches another, the servers are the same.
return server.id.equalsIgnoreCase(this.id);
}
return super.equals(other);
}
}