Solved Banwave | Not 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!

Status
Not open for further replies.

H3A

Member
Aug 19, 2019
30
1
8
38
https://tinyurl.com/banwaveskriptfixed
Code:
command /banwave [<text>] [<player>]:
    trigger:
        if arg-1 is not set:
            send "&cUsage: /banwave list"
        if arg-1 is "list":
            send "&cCommands:%nl%&f/banwave list%nl%/banwave add%nl%/banwave remove%nl%/banwave start"
        if arg-1 is "add":
            if arg-2 is set:
                add arg-2's uuid to {bw::*}
                send "&cSucessfully added %arg-2%&c to the banwave."
        if arg-1 is "remove":
            if arg-2 is set:
                if {bw::*} contains "%arg-2's uuid%":
                    remove arg-2's uuid from {bw::*}
        if arg-1 is "start":
            loop {bw::*} 1000 times:
                wait 10 ticks
                remove loop-value from {bw::*}
                broadcast "&e%loop-value% &7has been banned!"
                ban loop-value due to "&cYou have been banned!"
                kick loop-value due to "&cYou have been banned!"
                send "&aBanwave Complete!" to player
^ If hastebin is down.
 
Last edited:
  • Like
Reactions: ShaneBee
Status
Not open for further replies.