mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 14:38:48 +00:00
fix (un)ignore feedback messages
This commit is contained in:
4 files changed
+10
-1
No files matched your search
@@ -98,7 +98,7 @@ public final class IgnoreCommand extends CarbonCommand {
|
||||
return;
|
||||
}
|
||||
|
||||
if (target.ignoring(target)) {
|
||||
if (sender.ignoring(target)) {
|
||||
this.carbonMessages.alreadyIgnored(sender, target.displayName());
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -94,6 +94,11 @@ public final class UnignoreCommand extends CarbonCommand {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!sender.ignoring(target)) {
|
||||
this.carbonMessages.notIgnored(sender, target.displayName());
|
||||
return;
|
||||
}
|
||||
|
||||
sender.ignoring(target, false);
|
||||
this.carbonMessages.noLongerIgnoring(sender, target.displayName());
|
||||
})
|
||||
|
||||
@@ -207,6 +207,9 @@ public interface CarbonMessages {
|
||||
@Message("ignore.already_ignored")
|
||||
void alreadyIgnored(final Audience audience, final Component target);
|
||||
|
||||
@Message("ignore.not_ignored")
|
||||
void notIgnored(Audience audience, Component target);
|
||||
|
||||
@Message("ignore.exempt")
|
||||
void ignoreExempt(final Audience audience, final Component target);
|
||||
|
||||
|
||||
Reference in new issue
Block a user