#help with simple command

1 messages · Page 1 of 1 (latest)

dark garnet
#
    if %arg-1% has permission "op":
        cancel event
        send "&cYou cannot kick an OP player!" to the player

on command "/ban <player> [<reason>]":
    if %arg-1% has permission "op":
        cancel event
        send "&cYou cannot ban an OP player!" to the player

on command "/mute <player> [<reason>]":
    if %arg-1% has permission "op":
        cancel event
        send "&cYou cannot mute an OP player!" to the player```
#

the error is in "if arg-1 has permission op"

#

can anyone help

errant leaf
#

you dont need the percents.. thats only when you are using a var or expressions in a string..