EssentialsX

EssentialsX

2M Downloads

Java API: get player mute state

car1ot opened this issue · 3 comments

commented

Information

Full output of /ess version:

Server log:

EssentialsX config

Help request

Problem
Java API: How to get player mute state (is player muted <true/false> or mute expires time)?

What I have tried
Importing EssentialsX and looking around .api

Screenshots
No screenshots

commented

Essentials -> getUser -> isMuted

commented

Hello.
Is there any event for handling this change automatically without having to periodically check on the player mute status? Thank you

commented

Hello.
Is there any event for handling this change automatically without having to periodically check on the player mute status? Thank you

You can use MuteStatusChangeEvent for this purpose. You can also see all available events at https://github.com/EssentialsX/Essentials/tree/2.x/Essentials/src/main/java/net/ess3/api/events and https://github.com/EssentialsX/Essentials/tree/2.x/Essentials/src/main/java/net/essentialsx/api/v2/events