Not working

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

KAVKAZIE

Active Member
Feb 27, 2017
146
0
16
Hey, The togglemessages on Private messages are not working when im disabling my message the target can keep /replay me.
Code:
command /w [<offline player>] [<text>]:
    aliases: /message, /pm, /m
    trigger:
        if arg 1 is not set:
            send "&cYou must type a specify player."
            stop
        if arg 1 is set:
            if arg 2 is not set:
                send "&cYou must type a specify message."
                stop
            if arg 1 is online:
                if arg 2 is set:
                    if {pmblock.%uuid of arg 1%} is set:
                        send "&c%arg-1%'s messages are disabled!"
                        stop
                    if {pmblock.%uuid of arg 1%} is not set:
                        set {chat.private.reply.%player%} to arg 1
                        set {chat.private.reply.%arg 1%} to player
                        send "&7(To %colored prefix of arg-1%%arg 1%&7) %arg 2%" to player
                        send "&7(From %colored prefix of player%%player%&7) %arg 2%" to arg 1
            else:
                send "&c%arg-1% is offline!"

command /reply [<text>]:   
    aliases: /r
    trigger:
        if arg 1 is not set:
            send "&cYou must type a specify message."
            stop
        if arg 1 is set:
            if {chat.private.reply.%player%} is online:
                if {pmblock.%{chat.private.reply.%player%}%} is set:
                    send "&c%arg-1%'s messages are disabled!"
                    stop
                if {pmblock.%{chat.private.reply.%player%}%} is not set:
                    send "&7(To %colored prefix of {chat.private.reply.%player%}%%{chat.private.reply.%player%}%&7) %arg 1%" to player
                    send "&7(From %colored prefix of player%%player%&7) %arg 1%" to {chat.private.reply.%player%}
                    stop
            if {chat.private.reply.%player%} is not online:
                send "&c%{chat.private.reply.%player%}% is offline!"
                stop

command /togglemessages:
    aliases: /togglepm, messages
    trigger:
        if {pmblock.%uuid of player%} is not set:
            set {pmblock.%uuid of player%} to true
            send "&cMessages has been disabled!"
            stop
        else if {pmblock.%uuid of player%} is true:
            set {pmblock.%uuid of player%} to false
            send "&aMessages has been enabled!"
            stop
        else if {pmblock.%uuid of player%} is false:
            set {pmblock.%uuid of player%} to true
            send "&cMessages has been disabled!"
            stop
 
Status
Not open for further replies.