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.

Solved Skript Error

Discussion in 'Skript' started by Jonathan Cohen, Dec 18, 2020.

Thread Status:
Not open for further replies.
  1. Jonathan Cohen

    Joined:
    Jul 31, 2019
    Messages:
    24
    Likes Received:
    0
    I keep getting this error on the command "/player (mode)"

    Skript version: 2.2-dev36
    Server version: 1.8.8 craftbukkit

    Code
    -----------------------------------
    command /play [<text>]:
    executable by: players
    trigger:
    if arg-1 is set:
    if arg-1 is "solo_normal" or "solo_insane":
    if size of {arena.amounts} is not 0:
    send "&aLooking for a game!"
    wait 1 second
    if arg-1 is "solo_normal":
    loop {sw.arena::*}:
    if {sw.arena.%loop-value%.mode} is "SOLO_NORMAL":
    if {sw.arena.event.%loop-value%} is "{@Waiting}" or "{@Starting}":
    if {sw.arena.%loop-value%.playing} is between 0 and {maxplayerssolo}:
    if {sw.playing.%player%} is false:
    send "&aFound a server running &bSOLO:NORMAL!&a Sending you to %loop-value%!"
    set {sw.playing.%player%} to true
    add 1 to {sw.arena.%loop-value%.playing}
    add player to {sw.arena.%loop-value%.players.alive::*}
    set {sw.player.%loop-value%.number} to "%player%"
    teleport player to {sw.arena.%loop-value%.spawn.num.%{sw.arena.%loop-value%.cage.count}%}
    stop
    else:
    make player execute "/leave"
    wait 0.1 seconds
    make player execute "/play solo_normal"
    stop
    else:
    send "&aThere are no availible arenas at the moment!"
    stop
    else:
    send "{@gameactive}"
    stop

    --- Double Post Merged, Dec 18, 2020, Original Post Date: Dec 18, 2020 ---
    Code
    ------------------------

    https://pastebin.com/8gqswXDM
     

    Attached Files:

Thread Status:
Not open for further replies.

Share This Page

Loading...