EssentialsX

EssentialsX

2M Downloads

Include mute reason and duration in MuteStatusChangeEvent

mdcfe opened this issue ยท 3 comments

commented

Feature request

Feature description
MuteStatusChangeEvent currently doesn't expose the mute timestamp or reason. This event could be extended to include these. Note that the timestamp and reason arguments would need to be parsed before sending the event, but currently they aren't parsed until after this.

How the feature is useful
Developers will be able to retrieve the mute reason and timestamp without waiting for
EssentialsX to determine and save them.

commented

How about adding the timestamp to every StatusChangeEvent or even in every event?

commented

@Stupremee The timestamp in this case is the mute duration (it's referred to as timestamp in the mute code). There isn't any point adding the timestamp to every event - you wouldn't gain anything over just checking the current time in your listener.

commented

Ohh okay. I misinterpreted it.