Hey! I am trying to write a skript where when you run the command /break and you have the perm admin.break you can either disable the ability to break / place blocks or enable it.
Code:
options:
BlockRegenMSG: &cYou have building disabled!
BlockBreakMSG: &cYou have breaking disabled!
cbreak: true
command /break:
permission: admin.break
trigger:
if {@cbreak} = true:
set {@cbreak} to false
if {@cbreak} = false:
set {@cbreak} to true
else:
send "&cYou do not have the permission!"
on break:
if {@cbreak} = true
cancel event
message "{@BlockBreakMSG}"
on place:
if {@cbreak} = true
cancel event
message "{@BlockRegenMSG}"
Last edited: