Skip to content
This repository has been archived by the owner on Oct 12, 2024. It is now read-only.

Commit

Permalink
Merge branch 'master' into Ceddix_master
Browse files Browse the repository at this point in the history
  • Loading branch information
WiIIiam278 committed Apr 23, 2022
2 parents d0dc57e + 201b2f4 commit f491953
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ public void dispatch() {
if (spy.getUuid().equals(sender.getUuid())) {
continue;
}
if (!sender.hasPermission("huskchat.command.localspy")) {
if (!spy.hasPermission("huskchat.command.localspy")) {
try {
PlayerCache.removeLocalSpy(sender);
PlayerCache.removeLocalSpy(spy);
} catch(IOException e) {
implementor.getLoggingAdapter().log(Level.SEVERE, "Failed to remove local spy after failed permission check", e);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ public void dispatch() {
if (spy.getUuid().equals(sender.getUuid())) {
continue;
}
if (!sender.hasPermission("huskchat.command.socialspy")) {
if (!spy.hasPermission("huskchat.command.socialspy")) {
try {
PlayerCache.removeSocialSpy(sender);
PlayerCache.removeSocialSpy(spy);
} catch (IOException e) {
implementor.getLoggingAdapter().log(Level.SEVERE, "Failed to remove social spy after failed permission check", e);
}
Expand Down

0 comments on commit f491953

Please sign in to comment.