Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
Integrations: add null PlasmoVoice check
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFaser committed Nov 13, 2023
1 parent a7c5f36 commit a266342
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,14 @@ public FPlasmoVoice() {
}

public void mute(@NotNull Player player, @Nullable UUID moderator, int time, @NotNull String reason) {
if (voiceServer == null) return;

voiceServer.getMuteManager().mute(player.getUniqueId(), moderator, time, MuteDurationUnit.SECOND, reason, true);
}

public void unmute(@NotNull Player player) {
if (voiceServer == null) return;

voiceServer.getMuteManager().unmute(player.getUniqueId(), true);
}

Expand Down

0 comments on commit a266342

Please sign in to comment.