-
-
Notifications
You must be signed in to change notification settings - Fork 770
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
Instabreak drops items when disabled in BlockBreakEvent. #4508
Comments
Can you please attach code for reproduction ? |
@EventHandler
public void onBlockBreakEvent(BlockBreakEvent event) {
event.setDropItems(false);
} |
I would consider setting the event priority. |
BlockBreakEvent with instabreak falg is called by PlotSquared... I would suggest u check before proposing a solution that will not work. |
For instabreak P2 uses Block#breakNaturally and I do not know what event(s) that would send, and what it would be determined as have being "done" by |
Would u guys just look 2 mins at ur own code before replying? |
We don't make any guarantees about what information is used from the BlockBreakEvent. I guess this is a feature request then. Feel free to open a PR. |
Well, is this a feature request or a bug? Well, I would say it is most definitely a bug, when calling Bukkit-evnets, the behavior of the event should mimic Bukkit as closely as possible. If're not doing that, u break other plugins. Which events are being called at an block break by a player?
Well to be super correct, the BlockDropItems event should also be called when makeing a fake block break by an player |
Server Implementation
Paper
Server Version
1.20
Describe the bug
Instabreak dropes items when disabled in BlockBreakEvent.
To Reproduce
Expected behaviour
Items only stopping when blockbreak event says it should
Screenshots / Videos
No response
Error log (if applicable)
No response
Plot Debugpaste
https://athion.net/ISPaster/paste/view/14b8c2d536ca470293e0f3a37ec0bbab
PlotSquared Version
7.3.12-SNAPSHOT
Checklist
Anything else?
Compiled form latest src
The text was updated successfully, but these errors were encountered: