#Mine And Place Blocks

1 messages · Page 1 of 1 (latest)

obsidian wolf
#

I have a code set so people cant mine or place blocks

on mine:
if event-block is not {mineableblocks::*}:
if gamemode is creative:
if player does not have permission "trippleworld.build":
cancel event
send "{@p} &7You can't mine that!" to player
if gamemode is survival:
cancel event
send "{@p} &7You can't mine that!" to player

on place:
if gamemode is survival:
cancel event
send "{@p} &7You can't place blocks!" to player
else if player does not have permission "trippleworld.build":
cancel event
send "{@p} &7You can't place blocks!" to player
else if event-block is {mineableblocks::*}:
cancel event
send "{@p} &7Sorry but you can't place mineable blocks builder!" to player

I get no errors but when i try to mine and place blocks in both survival and creative I get 2 messages saying i cant break/place blocks even though i have permission to place blocks.

bronze remnant
#

Also, it's player's gamemode

obsidian wolf
bronze remnant
#

??

#

Also, you're checking if an event-block is an entire list

#

Which won't pass...

obsidian wolf
#

oh

bronze remnant
#

please format your code

#

```like this```
like this

obsidian wolf
#

ok also i fixed the problem

bronze remnant
#

alright