diff options
author | Luck <git@lucko.me> | 2021-07-09 13:34:58 +0100 |
---|---|---|
committer | Luck <git@lucko.me> | 2021-07-09 13:34:58 +0100 |
commit | 3c12a31ead109c11af7290d13e87651cff796b6c (patch) | |
tree | 7a3d02a3cda927a07b50183951185f4a534fe546 /spark-sponge8/src/main/java/me/lucko | |
parent | 805b75ecebd5f2f3aa760e8e072700a1e20a0e04 (diff) | |
download | spark-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.java | 13 |
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(); + } } |