Skript 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 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!

xSummons

Member
Apr 14, 2025
12
1
3
Does anyone know why this wont work? I don't really see any reason why it shouldn't work;

every 1 second:
loop all players:
if {mute.%loop-player's uuid%} is true:
remove 1 from {mute.time::%loop-player's uuid%}
send action bar "&cMute Timer: &l%{mute.time::%loop-player's uuid%}%s" to loop-player
{mute.time::%loop-player's uuid%} = 0:
set {mute.%loop-player's uuid%} to false

It seems to acknowledge that the mute is set to true so it shows a action bar but doesn't remove anything from the mute timer.
 
try:
Code:
every 1 second:
    loop all players:
        if {mute.%loop-player's uuid%} is true:
            add -1 to {mute.time::%loop-player's uuid%}
            send action bar "&cMute Timer: &l%{mute.time::%loop-player's uuid%}%s" to loop-player
            if {mute.time::%loop-player's uuid%} <= 0:
                set {mute.%loop-player's uuid%} to false
                delete {mute.time::%loop-player's uuid%}
 
try:
Code:
every 1 second:
    loop all players:
        if {mute.%loop-player's uuid%} is true:
            add -1 to {mute.time::%loop-player's uuid%}
            send action bar "&cMute Timer: &l%{mute.time::%loop-player's uuid%}%s" to loop-player
            if {mute.time::%loop-player's uuid%} <= 0:
                set {mute.%loop-player's uuid%} to false
                delete {mute.time::%loop-player's uuid%}
still does not work.
 
It did, but is hard to say if the issue is due to the update because I only wrote it after I updated.
 
This works for me:
Code:
every 1 second:
    loop all players:
        {mute.%loop-player's uuid%} is true:
            remove 1 from {mute.time::%loop-player's uuid%}
            send actionbar "&cMute Timer: &l%{mute.time::%loop-player's uuid%}%s" to loop-player
            {mute.time::%loop-player's uuid%} = 0:
                set {mute.%loop-player's uuid%} to false
                delete {mute.time::%loop-player's uuid%}
                send actionbar "&aMute Timer: &lNo longer muted" to loop-player
if it doesn't work then idk might be the /mute command is the issue