Ignore Help

  • 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 community!

    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.

CormanYT

Active Member
Jan 6, 2018
122
5
18
I'm trying to make a /ignore in my skript, here is my current code
code_language.skript:
command /ignore <player>:
    permission: iEssentials.ignore
    permission message: {@no-permission-message}
    trigger:
        if arg is set:
            set {iEssentials::ignored::%player's uuid%::%argument's uuid%} to true
            message "&6You have ignored &f%argument%&6!"
        else:
            message "&cPlease specify who to ignore!"
on chat:
    loop all players:
        if {iEssentials::ignored::%player's uuid%::%loop-player's uuid%} is true:
            hide message from loop-player
And it won't work! Any help? This is what should happen:
------------------------------------------------------------------------------------------------------------------------------------------------
Player 1 uses command /ignore Player 2
Player 2 says "Hi" in chat
Player 3 sees "Player 2: Hi" in chat
Player 1 does not see it
Player 1 says "Player 3 is bad at pvp" in chat
Player 2 sees it
Player 3 sees it
Player 3 does /ignore Player 1
Player 1 says "He's just like terrible at strafing, also aim too!"
Player 2 sees it
Player 3 does not see it

------------------------------------------------------------------------------------------------------------------------------------------------
I hope my issue gets resolved!
 
at first glance im pretty sure you just have the uuids flipped
code_language.skript:
on chat:
    loop recipients:
        if {iEssentials::ignored::%loop-player's uuid%::%player's uuid%} is true:
            remove loop-player from recipients
 
Status
Not open for further replies.