mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 14:38:49 +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);
|
||||
|
||||
|
||||
@@ -71,6 +71,7 @@ error.command.invalid_syntax=<red>Invalid command syntax. Correct command syntax
|
||||
error.command.no_permission=<red>I'm sorry, but you do not have permission to perform this command.\nPlease contact the server administrators if you believe that this is in error.
|
||||
error.command.command_needs_player=<red>Non-players must provide the player argument to execute this command.
|
||||
ignore.already_ignored=<red>You are already ignoring <target>
|
||||
ignore.not_ignored=<red>You are not ignoring <target>
|
||||
ignore.exempt=<red>You cannot ignore <target>
|
||||
ignore.invalid_target=<red>No target found
|
||||
ignore.now_ignoring=<green>You are now ignoring <target>
|
||||
|
||||
Reference in new issue
Block a user