OtherDrops

226k Downloads

Replacement block should honor WorldGuard (and other?) permissions

Zarius opened this issue ยท 3 comments

commented

http://dev.bukkit.org/server-mods/otherdrops/?comment=29

Joymo 110 minutes ago

Short question, does "replacementblock" adhere to WorldGuard regions, as in, does it check if player is allowed to even place and thus change blocks in that spot?

Zarius:

Mostly :D Any block break action will check worldguard permissions before letting you break the block. Is there a WorldGuard setting that allows you to break blocks but not place them?

One problem is mobs - setting replacementblock on them will not currently honor worldguard settings.

commented

My opinion is that if someone has set replacements for things, they likely want it to bypass restrictions. We could change this, of course; we could also add a third flag for it. I'm not sure.

commented

I can't think of any time that I want to bypass the restrictions. Eg. if for some reason I set sheep to replace with stone I'm happy for that to occur where-ever the player has build rights but I don't want to allow them to leave stone blocks all over my admin-only build area for example.

Another issue is with the new wooldye module - (see here http://dev.bukkit.org/server-mods/otherdrops/?comment=30) as people would not want this overriding restrictions.

I'll look into this later, got some ideas on how to do it.

commented

True, the wool dye one is a good example of where you definitely wouldn't want restrictions overridden.