#whats wrong

1 messages · Page 1 of 1 (latest)

turbid glacier
#

Define what doesn’t work

limpid hamlet
#

The 3rd line doesn’t specify who to send the message to

#

you forgot “to player”

#

Oh wait

#

Actually

#

Every spot where you put “send <message>” you didn’t specify a player

drowsy stump
#

Line 13

#

{warns::%uuid of arg-2%} not uuid of player

#
options:
    prefix (your prefix)

on join:
    if {msgwarn::%uuid of player%} is 1:
        send "{@prefix} &aYou have a open &c&lWarn: &a%{warnmsg::%uuid of player%}%"

#----------[ MISC COMMANDS ]----------#
command /warn [<offline player>] [<text>]:
    permission: op
    trigger:
        if arg-2 is not set:
            send "{@prefix} &cUse: /warn <player> <reason>"
        else if arg-1 is online:
            add 1 to {warns::%uuid of arg-1%}
            send "{@prefix} &ayou have warned %arg 1%"
            send "{@prefix} &a..." to arg-1
        else if arg-1 is offline:
            send "{@prefix} &aThe player is right now offline"
            add arg-2 to {warnmsg::%uuid of arg-1%}
            add 1 to {msgwarn::%uuid of arg-1%}```
#

That should work