Usage: /blockcmd [command], /unblockcmd [command]
Example: /blockcmd help
Example: /blockcmd help
Code:
on command:
if {blockcmd::*} contains command:
cancel event
send "This command is blocked."
command /blockcmd <text>:
permission: op
trigger:
if arg-1 is set:
if {blockcmd::*} contains arg-1:
send "This command is already blocked!"
else:
add arg-1 to {blockcmd::*}
send "Succesfully blocked command: /%arg-1%"
else:
send "Please enter a command."
command /unblockcmd <text>:
permission: op
trigger:
if arg-1 is set:
if {blockcmd::*} contains arg-1:
remove arg-1 from {blockcmd::*}
send "Succesfully unblocked command: /%arg-1%"
send "Command is not blocked."
else:
send "Please enter a command."