mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 06:28:54 +00:00
simplify mute command
This commit is contained in:
23 files changed
+92
-366
No files matched your search
+1
-1
@@ -58,7 +58,7 @@ public class SpongePlayerDeathListener {
|
||||
|
||||
final CarbonPlayer carbonPlayer = result.player();
|
||||
|
||||
if (!carbonPlayer.muteEntries().isEmpty()) {
|
||||
if (carbonPlayer.muted()) {
|
||||
event.setMessageCancelled(true);
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -63,7 +63,7 @@ public class SpongePlayerJoinListener {
|
||||
}
|
||||
|
||||
// Don't show join messages when muted
|
||||
if (this.configFactory.primaryConfig().hideMutedJoinLeaveQuit() && !player.muteEntries().isEmpty()) {
|
||||
if (this.configFactory.primaryConfig().hideMutedJoinLeaveQuit() && player.muted()) {
|
||||
event.setMessageCancelled(true);
|
||||
}
|
||||
}
|
||||
@@ -80,7 +80,7 @@ public class SpongePlayerJoinListener {
|
||||
final CarbonPlayer player = result.player();
|
||||
|
||||
if (this.configFactory.primaryConfig().hideMutedJoinLeaveQuit()) {
|
||||
if (!player.muteEntries().isEmpty()) {
|
||||
if (player.muted()) {
|
||||
event.setAudience(Audience.empty());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user