mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 22:15:08 +00:00
fix shadowmute and toggle
This commit is contained in:
1 parent
36672f8ed3
commit
75c6fbe892
2 files changed
+5
-5
No files matched your search
@@ -29,15 +29,15 @@ public class ToggleCommand extends BaseCommand {
|
||||
UserChannelSettings settings = user.getChannelSettings(channel);
|
||||
|
||||
if (settings.isIgnored()) {
|
||||
settings.setIgnoring(true);
|
||||
settings.setIgnoring(false);
|
||||
message = channel.getToggleOffMessage();
|
||||
} else {
|
||||
settings.setIgnoring(false);
|
||||
settings.setIgnoring(true);
|
||||
message = channel.getToggleOnMessage();
|
||||
}
|
||||
|
||||
user.sendMessage(MiniMessage.get().parse(message,
|
||||
"color", channel.getColor().toString(), "channel", channel.getName()));
|
||||
"color", "<color:" + channel.getColor().toString() + ">", "channel", channel.getName()));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user