RedstonerServer / redstoner-utils

Redstoner's plugins, written in Python.
MIT License
7 stars 3 forks source link

blockplacemods doesn't check permission #19

Closed jomo closed 9 years ago

jomo commented 9 years ago

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.

Dico200 commented 9 years ago

I have the priority set to "monitor" and I check if the event isn't cancelled before continuing. It should be fine.

jomo commented 9 years ago

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.