simplify mute command

This commit is contained in:
Draycia committed 2021-11-30 23:34:15 -08:00
1 parent e20bc2a4bb
commit 50e4f00ecd
23 files changed
+92 -366

No files matched your search

@@ -55,7 +55,7 @@ public class FabricPlayerDeathListener implements PlayerStatusMessageEvents.Mess
final CarbonPlayer player = result.player();
if (!player.muteEntries().isEmpty()) {
if (player.muted()) {
event.disableMessage();
}
}
@@ -52,7 +52,7 @@ public class FabricPlayerJoinListener implements PlayerStatusMessageEvents.Messa
}
// Don't show join messages when muted
if (this.configFactory.primaryConfig().hideMutedJoinLeaveQuit() && !player.muteEntries().isEmpty()) {
if (this.configFactory.primaryConfig().hideMutedJoinLeaveQuit() && player.muted()) {
event.disableMessage();
}
}
@@ -62,7 +62,7 @@ public class FabricPlayerLeaveListener implements PlayerStatusMessageEvents.Mess
final CarbonPlayer player = result.player();
if (this.configFactory.primaryConfig().hideMutedJoinLeaveQuit()) {
if (!player.muteEntries().isEmpty()) {
if (player.muted()) {
event.disableMessage();
}
}