Just so you know, we don't know the file format for every file. If it's just a bunch of random characters, it's probably a .zip or .jar.
options:
# MESSAGES : EDITABLE #
blocked-msg: &cThis command is block by security reasons.
alert-staff: &c%player% &7tried to use the command &c%command%
command /cb [<text>] [<text>]:
trigger:
if arg-1 is "block" or "unblock":
if player has the permission "cb.admin":
if arg-1 is "block":
if arg-2 is set:
if {cb.%arg-2%} is not set:
set {cb.%arg-2%} to true
send "&7Added &a%arg-2% &7to blocked commands!"
stop
else:
send "&cThat command is already blocked!"
else:
send "&cCorrect usage: /cb (block/unblock) (command)"
else if arg-1 is "unblock":
if arg-2 is set:
if {cb.%arg-2%} is set:
delete {cb.%arg-2%}
send "&7Removed &a%arg-2% &7from blocked commands!"
stop
else:
send "&cThat command is not blocked!"
else:
send "&cCorrect usage: /cb (block/unblock) (command)"
else:
send "&cCorrect usage: /cb (block/unblock) (command)"
else:
send "&cInsufficient permissions."
stop
else if arg-1 is "view":
if player has the permission "cb.view":
if arg-2 is "on":
set {viewcb.%player%} to true
send "&aNow you can spy who uses blocked commands!"
else if arg-2 is "off":
delete {viewcb.%player%}
send "&cYou disable spy mode!"
else:
send "&cCorrect usage: /cb view (on/off)"
else:
send "&cInsufficient permissions"
stop
else:
send "&7&m----------------------"
send " &b/cb block (command)"
send " &b/cb unblock (command)"
send " &b/cb view on"
send " &b/cb view off"
send "&7&m----------------------"
on command:
if {cb.%command%} is true:
cancel event
send "{@blocked-msg}"
loop all players:
if {viewcb.%loop-player%} is true:
send "{@alert-staff}" to loop-player
else:
stop