Essentials icon indicating copy to clipboard operation
Essentials copied to clipboard

API Event for Jailing players

Open DereC4 opened this issue 8 months ago • 2 comments

Feature description

Add an event related to jailing, that includes the target player (Player), jail time (-1 if permanent) and jail.

How the feature is useful

This is nice for developers who want to make prison plugins associated with essentials maybe, or those that want to work with the API and don't want to listen for a /jail command, as this gives them a direct, supported endpoint for detecting jails.

DereC4 avatar May 05 '25 02:05 DereC4

The JailStatusChangeEvent can be used for this, although it's certainly not as easy to use as it could be, given that you have to wait for the jail command to finish executing before retrieving more info

JasonHorkles avatar May 06 '25 18:05 JasonHorkles

The JailStatusChangeEvent can be used for this, although it's certainly not as easy to use as it could be, given that you have to wait for the jail command to finish executing before retrieving more info

hmm nice, i might make a PR possibly contributing a new event without risking the old one breaking

DereC4 avatar May 07 '25 07:05 DereC4