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

View File

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