Fix null error

This commit is contained in:
Paldiu 2023-01-29 01:05:35 -06:00 committed by GitHub
parent b82ede0b9e
commit 409fd5b170
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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();