aboutsummaryrefslogtreecommitdiff
path: root/spark-sponge8/src/main/java/me/lucko
diff options
context:
space:
mode:
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();
+ }
}