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

@@ -57,7 +57,7 @@ public class BukkitPlayerDeathListener implements Listener {
final CarbonPlayer player = result.player();
if (!player.muteEntries().isEmpty()) {
if (player.muted()) {
event.deathMessage(null);
}
}
@@ -66,7 +66,7 @@ public class BukkitPlayerJoinListener implements Listener {
}
// Don't show join messages when muted
if (this.configFactory.primaryConfig().hideMutedJoinLeaveQuit() && !player.muteEntries().isEmpty()) {
if (this.configFactory.primaryConfig().hideMutedJoinLeaveQuit() && player.muted()) {
event.joinMessage(null);
}
}
@@ -83,7 +83,7 @@ public class BukkitPlayerJoinListener implements Listener {
final CarbonPlayer player = result.player();
if (this.configFactory.primaryConfig().hideMutedJoinLeaveQuit()) {
if (!player.muteEntries().isEmpty()) {
if (player.muted()) {
event.quitMessage(null);
}
}