mirror of
https://github.com/SimplexDevelopment/Traverse.git
synced 2024-12-22 13:57:37 +00:00
Fix null error
This commit is contained in:
parent
b82ede0b9e
commit
409fd5b170
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user