mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-01 22:16:08 +00:00
More bukkit adapter stuff, load SQL schema from file, start work on MySQL implementation, start event processing
This commit is contained in:
1 parent
8e7d5e74a0
commit
bd52c99d4d
18 files changed
+973
-101
No files matched your search
@@ -8,20 +8,20 @@ import org.jetbrains.annotations.NotNull;
|
||||
public class Server {
|
||||
|
||||
/**
|
||||
* Proxy-defined identifier of this server
|
||||
* Proxy-defined name of this server
|
||||
*/
|
||||
@NotNull
|
||||
public String id;
|
||||
public String name;
|
||||
|
||||
public Server(@NotNull String id) {
|
||||
this.id = id;
|
||||
public Server(@NotNull String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
@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);
|
||||
// If the name of this server matches another, the servers are the same.
|
||||
return server.name.equalsIgnoreCase(this.name);
|
||||
}
|
||||
return super.equals(other);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user