aboutsummaryrefslogtreecommitdiff
path: root/spark-sponge8/src/main/java/me/lucko
diff options
context:
space:
mode:
authorLuck <git@lucko.me>2021-07-09 13:34:58 +0100
committerLuck <git@lucko.me>2021-07-09 13:34:58 +0100
commit3c12a31ead109c11af7290d13e87651cff796b6c (patch)
tree7a3d02a3cda927a07b50183951185f4a534fe546 /spark-sponge8/src/main/java/me/lucko
parent805b75ecebd5f2f3aa760e8e072700a1e20a0e04 (diff)
downloadspark-3c12a31ead109c11af7290d13e87651cff796b6c.tar.gz
spark-3c12a31ead109c11af7290d13e87651cff796b6c.tar.bz2
spark-3c12a31ead109c11af7290d13e87651cff796b6c.zip
Fix Sponge API 8 platform build config
Diffstat (limited to 'spark-sponge8/src/main/java/me/lucko')
-rw-r--r--spark-sponge8/src/main/java/me/lucko/spark/sponge/Sponge8CommandSender.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/spark-sponge8/src/main/java/me/lucko/spark/sponge/Sponge8CommandSender.java b/spark-sponge8/src/main/java/me/lucko/spark/sponge/Sponge8CommandSender.java
index 60a4b8f..5e7a65a 100644
--- a/spark-sponge8/src/main/java/me/lucko/spark/sponge/Sponge8CommandSender.java
+++ b/spark-sponge8/src/main/java/me/lucko/spark/sponge/Sponge8CommandSender.java
@@ -79,4 +79,17 @@ public class Sponge8CommandSender extends AbstractCommandSender<Subject> {
public boolean hasPermission(String permission) {
return super.delegate.hasPermission(permission);
}
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) return true;
+ if (o == null || getClass() != o.getClass()) return false;
+ Sponge8CommandSender that = (Sponge8CommandSender) o;
+ return this.getUniqueId().equals(that.getUniqueId());
+ }
+
+ @Override
+ public int hashCode() {
+ return getUniqueId().hashCode();
+ }
}