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 out 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.

on chat ignorant doesn't work.

Discussion in 'Skript' started by Castolo GR, Jul 22, 2020.

Thread Status:
Not open for further replies.
  1. Castolo GR

    Castolo GR New Member

    Joined:
    Feb 25, 2020
    Messages:
    3
    Likes Received:
    0
    I am trying to make it so that when someone ignores someone they cant see their messages and the ignored player cant see the messages from the player who ignored them.

    My code:
    Code (Text):
    1. on chat:
    2.     loop all players:
    3.         if {ignored.%uuid of player%::%uuid of loop-player%} is "true":
    4.             set {chat.rec} to chat recipients
    5.             remove player from chat recipients
    6.             remove loop-player from chat recipients
    7.             send formatted "<ttp: %nl%  &3Name: &f%player%%nl% %nl%  &aBalance: &f%format({balance::%player%})%%nl%  &eRank: &f%player's group%%nl%  &cPlaytime: &f%{days::%player%}%d %{hours::%player%}%h %{minutes::%player%}%m %{seconds::%player%}%ss%nl%  &bWorld: &f%player's world%%nl% >%player's prefix% %player's display name% %player's suffix%&r: %message%" to chat recipients
    8.                  
    9.         else:
    10.             clear chat recipients
    11.             send formatted "<ttp: %nl%  &3Name: &f%player%%nl% %nl%  &aBalance: &f%format({balance::%player%})%%nl%  &eRank: &f%player's group%%nl%  &cPlaytime: &f%{days::%player%}%d %{hours::%player%}%h %{minutes::%player%}%m %{seconds::%player%}%ss%nl%  &bWorld: &f%player's world%%nl% >%player's prefix% %player's display name% %player's suffix%&r: %message%" to chat recipients
    12.  
     
    #1 Castolo GR, Jul 22, 2020
    Last edited: Jul 22, 2020
  2. oHeckGage

    oHeckGage Active Member

    Joined:
    Mar 24, 2020
    Messages:
    105
    Likes Received:
    5
    If this is what doesn't work, here: (You never specified what "doesn't work")

    Code (Text):
    1.  
    2. command /ignore <offline player>:
    3.     trigger:
    4.         {ignored::%player%::*} doesn't contains arg:
    5.             add arg to {ignored::%player%::*}
    6.             send "&b%arg% added to your ignored list."
    7.             stop
    8.         {ignored::%player%::*} contains arg:
    9.             remove arg from {ignored::%player%::*}
    10.             send "&b%arg% removed from your ignored list."
    11. on chat:
    12.     loop all players:
    13.         cancel event
    14.         if {ignored::%player%::*} doesn't contain loop-player:
    15.             send formatted "<tooltip: %nl% &3Name: &f%player% %nl%%nl%  &aBalance: &f%format({balance::%player%})%%nl%  &eRank: &f%player's group%%nl%  &cPlaytime: &f%{days::%player%}%d %{hours::%player%}%h %{minutes::%player%}%m %{seconds::%player%}%ss%nl%  &bWorld: &f%player's world%%nl% > %player's display name%" to loop-player
    16.  
     
  3. Castolo GR

    Castolo GR New Member

    Joined:
    Feb 25, 2020
    Messages:
    3
    Likes Received:
    0
    Sorry not to say :emoji_frowning:. I meant that it sends the message to everyone, even the ones that have them ignored.
     
  4. oHeckGage

    oHeckGage Active Member

    Joined:
    Mar 24, 2020
    Messages:
    105
    Likes Received:
    5
    what's the point of it then? xDDD
     
Thread Status:
Not open for further replies.

Share This Page

Loading...