I think you can use the right click event anywhere, you probably want to fire a block place event and check if it's cancelled before changing the block.
This is already done in the tilehelper module.
I think you can use the right click event anywhere, you probably want to fire a block place event and check if it's cancelled before changing the block.
This is already done in the tilehelper module.
The problem is that a right click doesn't (necessarily) change any blocks and thus the event is not cancelled by other plugins (e.g. PlotMe).
That's why you should fire a place block event to check if a player is actually allowed to build.
The problem is that a right click doesn't (necessarily) change any blocks and thus the event is not cancelled by other plugins (e.g. PlotMe).
That's why you should fire a place block event to check if a player is actually allowed to build.
This repo is archived. You cannot comment on issues.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
I think you can use the right click event anywhere, you probably want to fire a block place event and check if it's cancelled before changing the block.
This is already done in the tilehelper module.
I have the priority set to "monitor" and I check if the event isn't cancelled before continuing. It should be fine.
The problem is that a right click doesn't (necessarily) change any blocks and thus the event is not cancelled by other plugins (e.g. PlotMe).
That's why you should fire a place block event to check if a player is actually allowed to build.