You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For my ProtectionLib plugin i listen to the PlotClearEvent and i have seen the event implements the interface CancellablePlotEvent.
The EventResult an enum is always null, i don't know how to handle if a non owner player try to usage /plot clear then the event is always triggerd by the player It doesn't matter whether he is the owner or whether he has the rights to do so.
To Reproduce
I have written an debug output inside my protectionlib plugin i know these is not the right way to reproduce it.
But here is it:
The results are generally null by default. That just indicates, that no other addon listening on that event already set / modified the result.
The player check will only be ignored if the result is set to FORCE. Generally that event does not seem to be quite suitable for your needs - #4268 might be worthwhile waiting for.
Thank you @PierreSchwang that was exactly what i think how it works.
I have seen #4268 already thank you, i only asked here because maybe sometimes i need to double check if the behaviour is correct and maybe i do something wrong.
Server Implementation
Spigot
Server Version
1.20.4
Describe the bug
For my ProtectionLib plugin i listen to the PlotClearEvent and i have seen the event implements the interface CancellablePlotEvent.
The EventResult an enum is always null, i don't know how to handle if a non owner player try to usage
/plot clear
then the event is always triggerd by the player It doesn't matter whether he is the owner or whether he has the rights to do so.To Reproduce
I have written an debug output inside my protectionlib plugin i know these is not the right way to reproduce it.
But here is it:
Expected behaviour
The PlotClearEvent should not be triggered then the player have no permissions for it or use the Result enum as expacted
The null resulot should be avoidet here to avoid confusing.
Screenshots / Videos
https://www.youtube.com/watch?v=4RxtKsnJUkg
Error log (if applicable)
No response
Plot Debugpaste
https://athion.net/ISPaster/paste/view/6c0efd6a58eb4c949553fe75fe1be21e
PlotSquared Version
PlotSquared v7 7.3.1-Premium
Checklist
Anything else?
No response
The text was updated successfully, but these errors were encountered: