mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 06:28:54 +00:00
fix: don't send muted player messages to discord
This commit is contained in:
1 parent
84fd5b67cd
commit
cf54cb69d6
1 file changed
+5
-1
@@ -79,6 +79,10 @@ public final class DSRVListener implements ChatHook {
|
||||
return;
|
||||
}
|
||||
|
||||
if (carbonPlayer.muted()) {
|
||||
return;
|
||||
}
|
||||
|
||||
final ImmutablePair<CarbonPlayer, ChatChannel> pair = new ImmutablePair<>(carbonPlayer, chatChannel);
|
||||
Component messageComponent = awaitingEvent.getIfPresent(pair);
|
||||
awaitingEvent.invalidate(pair);
|
||||
@@ -142,7 +146,7 @@ public final class DSRVListener implements ChatHook {
|
||||
|
||||
@Override
|
||||
public Plugin getPlugin() {
|
||||
return null;
|
||||
return this.plugin;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user