Replies: 1 comment
-
I mean, that's long been the issue with stuff like this, either we implement a service inside of paper which lets plugins adopt this, noting that many won't because they still target 10 year old versions of the server software, or, we basically just do what vault did and throw it into a plugin, but, we've already got enough on our plate for this. At the endo f the day, the reality is that this is generally going to be better served externally if people want this, because the reality is that people do want to support a wide version range of stuff, rather than just 1.2whateverwemergethisin+ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is your feature request related to a problem?
I suggest an API to know if an entity or plugin can do some action. This can be useful when a server use a protection or anti-cheat plugin.
The advantage of this API is that it allows you to ignore which plugin is preventing the action. No more need to implement each plugin in maven/gradle + less known plugins will benefit from this API
Describe the solution you'd like.
More method can be added over time : canKill , canUseItem, canTeleport, canOpen, canSpectate ...
calling one of this method will call an Event (must be sync), others plugin which does not allow the action have to do event.disallow(plugin).
The InteractResponse tell if yes or no we can perform the action + know each plugin which have disallow
Describe alternatives you've considered.
If it's not implement in Paper, the alternative is a free library plugin .
in fact, it is even an obligation for the support of versions prior to the creation of the paper api
Other
No response
Beta Was this translation helpful? Give feedback.
All reactions