Need help with my mute skript

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

Zea

Member
Oct 4, 2017
4
0
0
23
Skript Version: 2.2
Skript Author: Bensku
Minecraft Version: 1.12 (but it has to work for 1.8 too)
---
Full Code:
code_language.skript:
command /spamming [<offline player>]:
    executable by: console and players
    aliases: /spam
    trigger:
        if arg has permission "staff.immune":
            message "&cThe player you tried to punish is immune!"
        else:
            add 600 to {mute.%arg%}
            broadcast "{@prefixPlayer} &c%arg% &7has been muted by &c%executor% &7for &c10 minutes &7for &c&lSpamming"

every 1 seconds:
    loop all players:
        if {mute.%loop-player%} is between 1 and 9999999999:
            remove 1 from {mute.%loop-player%}

        If {mute.%loop-player%} is 0:
            delete {mute.%loop-player%}

on chat:
    if {mute.%player%} is between 1 and 9999999999:
        cancel event

every 20 seconds:
    loop all players:
        while {mute.%loop-player%} is between 1 and 9999999999:
            show an action bar from "&7&lMuted <> [&c&l{mute.%loop-player%}&7&l]" to %player%

Errors on Reload:
code_language.skript:
Cant understand this condition/effect: show an action bar from "&7&lMuted <> [&c&l{mute.%loop-player%}&7&l]" to %player%

I am very new to skript, as you can probably see.
Thanks.
 
Last edited:
Status
Not open for further replies.