mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 06:28:49 +00:00
Message and setting loading
This commit is contained in:
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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user