blockplacemods doesn't check permission #19

Closed
opened 2015-04-29 07:24:31 -04:00 by jomo · 2 comments
jomo commented 2015-04-29 07:24:31 -04:00 (Migrated from github.com)

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.
Dico200 commented 2015-04-29 07:58:03 -04:00 (Migrated from github.com)

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

I have the priority set to "monitor" and I check if the event isn't cancelled before continuing. It should be fine.
jomo commented 2015-04-29 08:10:27 -04:00 (Migrated from github.com)

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.
1 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Redstoner/redstoner-utils#19