API Event for Jailing players
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.
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
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