Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: Add ResidentPreJailEvent #4862

Closed
galacticwarrior9 opened this issue Apr 10, 2021 · 1 comment
Closed

Suggestion: Add ResidentPreJailEvent #4862

galacticwarrior9 opened this issue Apr 10, 2021 · 1 comment

Comments

@galacticwarrior9
Copy link
Contributor

galacticwarrior9 commented Apr 10, 2021

Please explain your feature request to the best of your abilities:

Some servers may require finer control to limit the circumstances under which residents can be jailed. The existing ResidentJailEvent is not cancellable and is called after imprisonment has taken place.

Example use case, from my server:

Teleportation on my server is severely limited. The only forms of teleportation are (1) range-limited TPA requests and (2) respawns at town homeblocks after dying. With the jail mechanic enabled, ranked residents can imprison other residents on the other side of the map to quickly summon them to the town. A ResidentPreJailEvent would allow us to check how far the detainee is from their town and deny the request if appropriate.

@LlmDl
Copy link
Member

LlmDl commented Apr 10, 2021

The event isn't great but it will do what you want. With the coming jail overhaul it'll end up being a lot nicer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants