Hi guys I would like to allow players to place some blocks in the protection area, but I can't use a flag in worldguard because it doesn't have a specific block place flag there. So I decided to set allow-place: allow in worldguard area and write a script as follow:
what I'm trying to do is to let players can only place TNT in other player areas but let the owner can place every block
My Question is If there is a new protected area, are there any ways to let the owner can place every block except others that can place only TNT and add a new coordinate every time instead of putting a number in the script?
Thank you in advance
Code:
on place:
if "%region at event-block%" is "ps192x62y76z in world world": #Protectionstone plugin
if event-block is not tnt:
if player is not the owner of the region:
cancel event
else:
set event-block to tnt
remove 1 tnt from player's inventory
what I'm trying to do is to let players can only place TNT in other player areas but let the owner can place every block
My Question is If there is a new protected area, are there any ways to let the owner can place every block except others that can place only TNT and add a new coordinate every time instead of putting a number in the script?
Thank you in advance