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
@@ -55,7 +55,7 @@ public class FabricPlayerDeathListener implements PlayerStatusMessageEvents.Mess
|
||||
|
||||
final CarbonPlayer player = result.player();
|
||||
|
||||
if (!player.muteEntries().isEmpty()) {
|
||||
if (player.muted()) {
|
||||
event.disableMessage();
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user