1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT??:

    You can always check our our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Not working

Discussion in 'Skript' started by KAVKAZIE, Mar 17, 2019.

Thread Status:
Not open for further replies.
  1. KAVKAZIE

    KAVKAZIE Well-Known Member

    Joined:
    Feb 27, 2017
    Messages:
    103
    Likes Received:
    0
    Hey, The togglemessages on Private messages are not working when im disabling my message the target can keep /replay me.
    Code (Text):
    1. command /w [<offline player>] [<text>]:
    2.     aliases: /message, /pm, /m
    3.     trigger:
    4.         if arg 1 is not set:
    5.             send "&cYou must type a specify player."
    6.             stop
    7.         if arg 1 is set:
    8.             if arg 2 is not set:
    9.                 send "&cYou must type a specify message."
    10.                 stop
    11.             if arg 1 is online:
    12.                 if arg 2 is set:
    13.                     if {pmblock.%uuid of arg 1%} is set:
    14.                         send "&c%arg-1%'s messages are disabled!"
    15.                         stop
    16.                     if {pmblock.%uuid of arg 1%} is not set:
    17.                         set {chat.private.reply.%player%} to arg 1
    18.                         set {chat.private.reply.%arg 1%} to player
    19.                         send "&7(To %colored prefix of arg-1%%arg 1%&7) %arg 2%" to player
    20.                         send "&7(From %colored prefix of player%%player%&7) %arg 2%" to arg 1
    21.             else:
    22.                 send "&c%arg-1% is offline!"
    23.  
    24. command /reply [<text>]:  
    25.     aliases: /r
    26.     trigger:
    27.         if arg 1 is not set:
    28.             send "&cYou must type a specify message."
    29.             stop
    30.         if arg 1 is set:
    31.             if {chat.private.reply.%player%} is online:
    32.                 if {pmblock.%{chat.private.reply.%player%}%} is set:
    33.                     send "&c%arg-1%'s messages are disabled!"
    34.                     stop
    35.                 if {pmblock.%{chat.private.reply.%player%}%} is not set:
    36.                     send "&7(To %colored prefix of {chat.private.reply.%player%}%%{chat.private.reply.%player%}%&7) %arg 1%" to player
    37.                     send "&7(From %colored prefix of player%%player%&7) %arg 1%" to {chat.private.reply.%player%}
    38.                     stop
    39.             if {chat.private.reply.%player%} is not online:
    40.                 send "&c%{chat.private.reply.%player%}% is offline!"
    41.                 stop
    42.  
    43. command /togglemessages:
    44.     aliases: /togglepm, messages
    45.     trigger:
    46.         if {pmblock.%uuid of player%} is not set:
    47.             set {pmblock.%uuid of player%} to true
    48.             send "&cMessages has been disabled!"
    49.             stop
    50.         else if {pmblock.%uuid of player%} is true:
    51.             set {pmblock.%uuid of player%} to false
    52.             send "&aMessages has been enabled!"
    53.             stop
    54.         else if {pmblock.%uuid of player%} is false:
    55.             set {pmblock.%uuid of player%} to true
    56.             send "&cMessages has been disabled!"
    57.             stop
     
  2. M

    McAcrylic Well-Known Member

    Joined:
    Oct 21, 2017
    Messages:
    55
    Likes Received:
    0
    change offline player to player
     
  3. KAVKAZIE

    KAVKAZIE Well-Known Member

    Joined:
    Feb 27, 2017
    Messages:
    103
    Likes Received:
    0
    There is no offline player on /replay
     
Thread Status:
Not open for further replies.
Loading...