Merge branch 'kitchen-sink' of https://github.com/SimplexDevelopment/Traverse into kitchen-sink

This commit is contained in:
Paldiu 2023-01-30 00:37:09 -06:00
commit 5a48fb7285
1 changed files with 2 additions and 1 deletions

View File

@ -39,7 +39,8 @@ public class MuteCMD extends AbstractCommandBase {
if (duration == 0) return Component.text("Invalid duration.");
MuteService service = new MuteService(getPlugin().getPIPELINE(), "MuteService", duration);
service.setInfractionData(infData);
if (!infData.isMuted()) {
infData.setMuted(true);
getPlugin().getScheduler().queue(service).subscribe();