• 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.
yes. i have edited the script
Code:
options:
    prefix: test -
    startmessage: start
    world: world
    command: test
    gameworld: test2
    server: JL

on load:
    reset {game}

command /setlobby:
    permission: jl.setup
    permission message: &cKeine Rechte!
    trigger:
        set {hub} to player's location

on join:
    set join message to "&a+ &7%player's name%"
    teleport player to {hub}
    reset {coins.%player%}
    clear {plates.%player%::*}
    set gamemode of player to Survival
    if {game} is true:
        execute console command "/gamemode 3 %player's name%"

on quit:
    set quit message to "&c- &7%player's name%"

command /setziel:
    permission: jl.setup
    permission message: &cKeine Rechte!
    trigger:
        set {break.%player%} to true

on break:
    if {break.%player%} is true:
        set {break.%player%} to false
        set {ziel} to event-block
        stop
    else:
        cancel event

every 1 ticks:
    if {game] is not set:
        if number of all players is greater than 1:
            loop all players:
                wait 30 seconds
                broadcast "{@prefix}Noch 30 Sekunden!"
                wait 10 seconds
                broadcast "{@prefix}Noch 20 Sekunden!"
                wait 10 seconds
                broadcast "{@prefix}Noch 10 Sekunden!"
                wait 5 seconds
                broadcast "{@prefix}Noch 5 Sekunden!"
                wait 1 seconds
                broadcast "{@prefix}Noch 4 Sekunden!"
                wait 1 seconds
                broadcast "{@prefix}Noch 3 Sekunden!"
                wait 1 seconds
                broadcast "{@prefix}Noch 2 Sekunden!"
                wait 1 seconds
                broadcast "{@prefix}Noch eine Sekunde!"
                wait 1 seconds
                broadcast "{@prefix}Teleportiere..."
                teleport loop-player to {game}
                broadcast "{@prefix}{@startmessage}"
                hide all players in loop-player's world from loop-player
                set {game} to true
                set {live} to number of all players
                set {start} to true
                stop
    if {game} is true:
        if number of all players is less than 2:
            broadcast "{@prefix}Spiel beendet."

on place:
        cancel event

command /start:
    permission: jl.start
    permission message: &cKeine Rechte!
    trigger:
        loop all players:
            teleport loop-player to {game}
            broadcast "{@prefix}{@startmessage}"
            hide all players in loop-player's world from loop-player
            set {game} to true
            set {live} to number of all players
            set {back.%player%} to player's location

on any movement:
    if block under player is light weighted pressure plate:
        if {plates.%player%::*} doesn't contain event-block's location:
            add event-block's location to {plates.%player%::*}
            message "&e+ 200 Coins"
            set {coins.%player%} to {coins.%player%} + 200
            play "LEVEL_UP" to player at volume 15
            set {back.%player%} to player's location
            stop
    if block under player is {ziel}:
        broadcast "&c%player% ist am Ziel!"
        loop all players:
            play "CHICKEN_EGG_POP" to loop-player at volume 20
            teleport loop-player to {hub}
            give 1 of chest named "&6Shop" with lore "" to loop-player
            reveal all players in player's world from loop-player
            wait 30 seconds
            broadcast "{@prefix}Noch 30 Sekunden!"
            wait 10 seconds
            broadcast "{@prefix}Noch 20 Sekunden!"
            wait 10 seconds
            broadcast "{@prefix}Noch 10 Sekunden!"
            wait 5 seconds
            broadcast "{@prefix}Noch 5 Sekunden!"
            wait 1 seconds
            broadcast "{@prefix}Noch 4 Sekunden!"
            wait 1 seconds
            broadcast "{@prefix}Noch 3 Sekunden!"
            wait 1 seconds
            broadcast "{@prefix}Noch 2 Sekunden!"
            wait 1 seconds
            broadcast "{@prefix}Noch eine Sekunde!"
            wait 1 seconds
            broadcast "{@prefix}Teleportiere..."
            set {time} to number of all players
            loop {time} times:
                set {tp} to a random element out of {points::*}
                add loop-player to {players::*}
                set {player} to a random element out of {players::*}
                teleport {player} to {tp}
                remove {player} from {players::*}
                remove 1 of chest named "&6Shop" with lore "" from {player}'s inventory
                set {life.%{player}%} to 3

command /setpoints:
    permission: jl.setup
    permission message: &cKeine Rechte!
    trigger:
        add player's location to {points::*}

on drop:
    if player's world is "{@world}":
        cancel event

on inventory click:
    if player's tool is chest:
        cancel event

on leftclick:
    if player's tool is chest:
        execute player command "{@command}"

on rightclick:
    if player's tool is chest:
        execute player command "{@command}"

on hunger meter change:
    set player's food level to 10

every 1 ticks:
    if {live} is 1:
        loop all players:
            if loop-player's gamemode is survival:
                broadcast "{@prefix}Der Spieler %loop-player's name% hat das Spiel gewonnen!"
                set {game} to false
                execute console command "stop"

command /{@command}:
    trigger:
        if player's world is "{@world}":
            wait 2 ticks
            open chest with 1 rows named "&6Shop" to player
            wait 2 ticks
            format slot 0 of player with wooden sword named "&cSchwerter" with lore "" to close then run [execute player command "schwertershop"]
            format slot 1 of player with chainmail chestplate named "&ePanzerung" with lore "" to close then run [execute player command "panzerungshop"]
            format slot 2 of player with golden apple named "&bSonstiges" with lore "" to close then run [execute player command "sonstigesshop"]

command /sonstigesshop:
    trigger:
        if player's world is "{@world}":
            wait 2 ticks
            open chest with 1 rows named "&6Shop" to player
            wait 2 ticks
            format slot 3 of player with golden apple named "&aGold Apfel" with lore "80 Coins" to run [execute player command "goldapfel"]
            format slot 4 of player with redstone dust named "&cExtra Herz" with lore "150 Coins" to run [execute player command "extrahealth"]

command /extrahealth:
    trigger:
        if {coins.%player%} is greater than 149:
            set {coins.%player%} to {coins.%player%} - 150
            set player's max health to player's max health + 2
            stop
        else:
            message "{@prefix}Du hast nicht genug Coins!"
            stop

command /goldapfel:
    trigger:
        if {coins.%player%} is greater than 79:
            set {coins.%player%} to {coins.%player%} - 80
            give 1 of golden apple to player
            stop
        else:
            message "{@prefix}Du hast nicht genug Coins!"
            stop


on damage:
    if victim's world is "{@gameworld}":
        stop
    cancel event
    if damage cause is void:
        teleport victim to {back.%victim%}

command /panzerungshop:
    trigger:
        if player's world is "{@world}":
            wait 2 ticks
            open virtual chest inventory with size 3 named "&6Shop" to player
            wait 2 ticks
            make gui slot 9 to 305 named "&7Ketten Schuhe" with lore "70 Coins":
                execute player command "chainboots"
            make gui slot 12 to chainmail helmet named "&7Ketten Helm" with lore "70 Coins":
                execute player command "chainhelmet"
            make gui slot 18 to 309 "&fEisen Schuhe" with lore "150 Coins":
                make player execute command "ironboots"
            make gui slot 19 to iron leggings named "&fEisen Hose" with lore "400 Coins":
                execute player command "ironleggings"
            make gui slot 20 to 307 "&fEisen Brustplatte" with lore "500 Coins":
                execute player command "ironchestplate"
            make gui slot 21 to iron helmet named "&fEisen Helm" with lore "150 Coins":
                execute player command "ironhelmet"
            make gui slot 26 to 166 named "&cBack" with lore "":
                close player's inventory
                execute player command "{@command}"
            make gui slot 0 to leather boots named "&6Leder Schuhe" with lore "50 Coins":
                execute player command "leatherboots"
            make gui slot 1 to leather leggings named "&6Leder Hose" with lore "80 Coins":
                execute player command "leatherleggings"
            make gui slot 2 to leather chestplate named "&6Leder Brustplatte" with lore "100 Coins":
                execute player command "leatherchestplate"
            make gui slot 3 to leather helmet named "&6Leder Helm" with lore "50 Coins":
                execute player command "leatherhelmet"
            make gui slot 10 to chainmail leggings named "&7Ketten Hose" with lore "100 Coins":
                execute player command "chainleggings"
            make gui slot 11 to chainmail chestplate named "&7Ketten Brustplatte" with lore "150 Coins":
                execute player command "chainchestplate"


command /chainchestplate:
    trigger:
        if {coins.%player%} is greater than 149:
            set {coins.%player%} to {coins.%player%} - 150
            give 1 of chainmail chestplate to player
            stop
        else:
            message "{@prefix}Du hast nicht genug Coins!"
            stop



command /chainhelmet:
    trigger:
        if {coins.%player%} is greater than 69:
            set {coins.%player%} to {coins.%player%} - 70
            give 1 of chainmail helmet to player
            stop
        else:
            message "{@prefix}Du hast nicht genug Coins!"
            stop


command /chainleggings:
    trigger:
        if {coins.%player%} is greater than 99:
            set {coins.%player%} to {coins.%player%} - 100
            give 1 of chainmail leggings to player
            stop
        else:
            message "{@prefix}Du hast nicht genug Coins!"
            stop


command /chainboots:
    trigger:
        if {coins.%player%} is greater than 69:
            set {coins.%player%} to {coins.%player%} - 70
            give 1 of chainmail boots to player
            stop
        else:
            message "{@prefix}Du hast nicht genug Coins!"
            stop


command /ironchestplate:
    trigger:
        if {coins.%player%} is greater than 499:
            set {coins.%player%} to {coins.%player%} - 500
            give 1 of iron chestplate to player
            stop
        else:
            message "{@prefix}Du hast nicht genug Coins!"
            stop



command /ironhelmet:
    trigger:
        if {coins.%player%} is greater than 149:
            set {coins.%player%} to {coins.%player%} - 150
            give 1 of iron helmet to player
            stop
        else:
            message "{@prefix}Du hast nicht genug Coins!"
            stop


command /ironleggings:
    trigger:
        if {coins.%player%} is greater than 399:
            set {coins.%player%} to {coins.%player%} - 400
            give 1 of iron leggings to player
            stop
        else:
            message "{@prefix}Du hast nicht genug Coins!"
            stop


command /ironboots:
    trigger:
        if {coins.%player%} is greater than 149:
            set {coins.%player%} to {coins.%player%} - 150
            give 1 of iron boots to player
            stop
        else:
            message "{@prefix}Du hast nicht genug Coins!"
            stop

command /leatherchestplate:
    trigger:
        if {coins.%player%} is greater than 99:
            set {coins.%player%} to {coins.%player%} - 100
            give 1 of leather chestplate to player
            stop
        else:
            message "{@prefix}Du hast nicht genug Coins!"
            stop

every 10 ticks:
    loop all players:
        if loop-player's world is "{@world}":
            set name of sidebar of loop-player to "&e&lJumpLeague - &a&lPlayTopic.de"
            set score "&c" in sidebar of loop-player to 12
            set score "&aServer" in sidebar of loop-player to 11
            set score "&e> &c{@server}" in sidebar of loop-player to 10
            set score "&2" in sidebar of loop-player to 9
            set score "&aCoins" in sidebar of loop-player to 8
            set score "&e> &c%{coins.%loop-player%}%" in sidebar of loop-player to 7
            set score "&r" in sidebar of loop-player to 6
            set score "&aProfil" in sidebar of loop-player to 5
            set score "&e> &c%loop-player's name%" in sidebar of loop-player to 4
            set score "&d" in sidebar of loop-player to 3
            set score "&aTeamSpeak" in sidebar of loop-player to 2
            set score "&e> &cPlayTopic.de" in sidebar of loop-player to 1
            set score "&f" in sidebar of loop-player to 0

command /leatherhelmet:
    trigger:
        if {coins.%player%} is greater than 49:
            set {coins.%player%} to {coins.%player%} - 50
            give 1 of leather helmet to player
            stop
        else:
            message "{@prefix}Du hast nicht genug Coins!"
            stop


command /leatherleggings:
    trigger:
        if {coins.%player%} is greater than 79:
            set {coins.%player%} to {coins.%player%} - 80
            give 1 of leather leggings to player
            stop
        else:
            message "{@prefix}Du hast nicht genug Coins!"
            stop


command /leatherboots:
    trigger:
        if {coins.%player%} is greater than 49:
            set {coins.%player%} to {coins.%player%} - 50
            give 1 of leather boots to player
            stop
        else:
            message "{@prefix}Du hast nicht genug Coins!"
            stop


command /schwertershop:
    trigger:
        if player's world is "{@world}":
            wait 2 ticks
            open chest with 1 rows named "&6Shop" to player
            wait 2 ticks
            format slot 0 of player with wooden sword named "&6Holz Schwert" with lore "100 Coins" to run [execute player command "holzschwert"]
            format slot 1 of player with stone sword named "&7Stein Schwert" with lore "300 Coins" to run [execute player command "stoneschwert"]
            format slot 2 of player with iron sword named "&fEisen Schwert" with lore "600 Coins" to run [execute player command "ironschwert"]
            format slot 8 of player with 166 named "&cBack" with lore "" to close then run [execute player command "{@command}"]
            format slot 3 of player with fishing rod named "&7Angel" with lore "250 Coins" to run [execute player command "angel"]

command /angel:
    trigger:
        if {coins.%player%} is greater than 249:
            set {coins.%player%} to {coins.%player%} - 250
            give 1 of fishing rod to player
            stop
        else:
            message "{@prefix}Du hast nicht genug Coins!"
            stop



command /ironschwert:
    trigger:
        if {coins.%player%} is greater than 599:
            set {coins.%player%} to {coins.%player%} - 600
            give 1 of iron sword to player
            stop
        else:
            message "{@prefix}Du hast nicht genug Coins!"
            stop


command /stoneschwert:
    trigger:
        if {coins.%player%} is greater than 299:
            set {coins.%player%} to {coins.%player%} - 300
            give 1 of stone sword to player
            stop
        else:
            message "{@prefix}Du hast nicht genug Coins!"
            stop


command /holzschwert:
    trigger:
        if {coins.%player%} is greater than 99:
            set {coins.%player%} to {coins.%player%} - 100
            give 1 of wooden sword to player
            stop
        else:
            message "{@prefix}Du hast nicht genug Coins!"
            stop

on death:
    set death message to ""
    if {life.%victim%} isn't 0:
        heal victim
        stop
    else:
        execute console command "/gamemode 3 %victim's name%"
        remove 1 from {live}
        heal victim
        clear victim's inventory
 
yes. i have edited the script
Code:
options:
    prefix: test -
    startmessage: start
    world: world
    command: test
    gameworld: test2
    server: JL

on load:
    reset {game}

command /setlobby:
    permission: jl.setup
    permission message: &cKeine Rechte!
    trigger:
        set {hub} to player's location

on join:
    set join message to "&a+ &7%player's name%"
    teleport player to {hub}
    reset {coins.%player%}
    clear {plates.%player%::*}
    set gamemode of player to Survival
    if {game} is true:
        execute console command "/gamemode 3 %player's name%"

on quit:
    set quit message to "&c- &7%player's name%"

command /setziel:
    permission: jl.setup
    permission message: &cKeine Rechte!
    trigger:
        set {break.%player%} to true

on break:
    if {break.%player%} is true:
        set {break.%player%} to false
        set {ziel} to event-block
        stop
    else:
        cancel event

every 1 ticks:
    if {game] is not set:
        if number of all players is greater than 1:
            loop all players:
                wait 30 seconds
                broadcast "{@prefix}Noch 30 Sekunden!"
                wait 10 seconds
                broadcast "{@prefix}Noch 20 Sekunden!"
                wait 10 seconds
                broadcast "{@prefix}Noch 10 Sekunden!"
                wait 5 seconds
                broadcast "{@prefix}Noch 5 Sekunden!"
                wait 1 seconds
                broadcast "{@prefix}Noch 4 Sekunden!"
                wait 1 seconds
                broadcast "{@prefix}Noch 3 Sekunden!"
                wait 1 seconds
                broadcast "{@prefix}Noch 2 Sekunden!"
                wait 1 seconds
                broadcast "{@prefix}Noch eine Sekunde!"
                wait 1 seconds
                broadcast "{@prefix}Teleportiere..."
                teleport loop-player to {game}
                broadcast "{@prefix}{@startmessage}"
                hide all players in loop-player's world from loop-player
                set {game} to true
                set {live} to number of all players
                set {start} to true
                stop
    if {game} is true:
        if number of all players is less than 2:
            broadcast "{@prefix}Spiel beendet."

on place:
        cancel event

command /start:
    permission: jl.start
    permission message: &cKeine Rechte!
    trigger:
        loop all players:
            teleport loop-player to {game}
            broadcast "{@prefix}{@startmessage}"
            hide all players in loop-player's world from loop-player
            set {game} to true
            set {live} to number of all players
            set {back.%player%} to player's location

on any movement:
    if block under player is light weighted pressure plate:
        if {plates.%player%::*} doesn't contain event-block's location:
            add event-block's location to {plates.%player%::*}
            message "&e+ 200 Coins"
            set {coins.%player%} to {coins.%player%} + 200
            play "LEVEL_UP" to player at volume 15
            set {back.%player%} to player's location
            stop
    if block under player is {ziel}:
        broadcast "&c%player% ist am Ziel!"
        loop all players:
            play "CHICKEN_EGG_POP" to loop-player at volume 20
            teleport loop-player to {hub}
            give 1 of chest named "&6Shop" with lore "" to loop-player
            reveal all players in player's world from loop-player
            wait 30 seconds
            broadcast "{@prefix}Noch 30 Sekunden!"
            wait 10 seconds
            broadcast "{@prefix}Noch 20 Sekunden!"
            wait 10 seconds
            broadcast "{@prefix}Noch 10 Sekunden!"
            wait 5 seconds
            broadcast "{@prefix}Noch 5 Sekunden!"
            wait 1 seconds
            broadcast "{@prefix}Noch 4 Sekunden!"
            wait 1 seconds
            broadcast "{@prefix}Noch 3 Sekunden!"
            wait 1 seconds
            broadcast "{@prefix}Noch 2 Sekunden!"
            wait 1 seconds
            broadcast "{@prefix}Noch eine Sekunde!"
            wait 1 seconds
            broadcast "{@prefix}Teleportiere..."
            set {time} to number of all players
            loop {time} times:
                set {tp} to a random element out of {points::*}
                add loop-player to {players::*}
                set {player} to a random element out of {players::*}
                teleport {player} to {tp}
                remove {player} from {players::*}
                remove 1 of chest named "&6Shop" with lore "" from {player}'s inventory
                set {life.%{player}%} to 3

command /setpoints:
    permission: jl.setup
    permission message: &cKeine Rechte!
    trigger:
        add player's location to {points::*}

on drop:
    if player's world is "{@world}":
        cancel event

on inventory click:
    if player's tool is chest:
        cancel event

on leftclick:
    if player's tool is chest:
        execute player command "{@command}"

on rightclick:
    if player's tool is chest:
        execute player command "{@command}"

on hunger meter change:
    set player's food level to 10

every 1 ticks:
    if {live} is 1:
        loop all players:
            if loop-player's gamemode is survival:
                broadcast "{@prefix}Der Spieler %loop-player's name% hat das Spiel gewonnen!"
                set {game} to false
                execute console command "stop"

command /{@command}:
    trigger:
        if player's world is "{@world}":
            wait 2 ticks
            open chest with 1 rows named "&6Shop" to player
            wait 2 ticks
            format slot 0 of player with wooden sword named "&cSchwerter" with lore "" to close then run [execute player command "schwertershop"]
            format slot 1 of player with chainmail chestplate named "&ePanzerung" with lore "" to close then run [execute player command "panzerungshop"]
            format slot 2 of player with golden apple named "&bSonstiges" with lore "" to close then run [execute player command "sonstigesshop"]

command /sonstigesshop:
    trigger:
        if player's world is "{@world}":
            wait 2 ticks
            open chest with 1 rows named "&6Shop" to player
            wait 2 ticks
            format slot 3 of player with golden apple named "&aGold Apfel" with lore "80 Coins" to run [execute player command "goldapfel"]
            format slot 4 of player with redstone dust named "&cExtra Herz" with lore "150 Coins" to run [execute player command "extrahealth"]

command /extrahealth:
    trigger:
        if {coins.%player%} is greater than 149:
            set {coins.%player%} to {coins.%player%} - 150
            set player's max health to player's max health + 2
            stop
        else:
            message "{@prefix}Du hast nicht genug Coins!"
            stop

command /goldapfel:
    trigger:
        if {coins.%player%} is greater than 79:
            set {coins.%player%} to {coins.%player%} - 80
            give 1 of golden apple to player
            stop
        else:
            message "{@prefix}Du hast nicht genug Coins!"
            stop


on damage:
    if victim's world is "{@gameworld}":
        stop
    cancel event
    if damage cause is void:
        teleport victim to {back.%victim%}

command /panzerungshop:
    trigger:
        if player's world is "{@world}":
            wait 2 ticks
            open virtual chest inventory with size 3 named "&6Shop" to player
            wait 2 ticks
            make gui slot 9 to 305 named "&7Ketten Schuhe" with lore "70 Coins":
                execute player command "chainboots"
            make gui slot 12 to chainmail helmet named "&7Ketten Helm" with lore "70 Coins":
                execute player command "chainhelmet"
            make gui slot 18 to 309 "&fEisen Schuhe" with lore "150 Coins":
                make player execute command "ironboots"
            make gui slot 19 to iron leggings named "&fEisen Hose" with lore "400 Coins":
                execute player command "ironleggings"
            make gui slot 20 to 307 "&fEisen Brustplatte" with lore "500 Coins":
                execute player command "ironchestplate"
            make gui slot 21 to iron helmet named "&fEisen Helm" with lore "150 Coins":
                execute player command "ironhelmet"
            make gui slot 26 to 166 named "&cBack" with lore "":
                close player's inventory
                execute player command "{@command}"
            make gui slot 0 to leather boots named "&6Leder Schuhe" with lore "50 Coins":
                execute player command "leatherboots"
            make gui slot 1 to leather leggings named "&6Leder Hose" with lore "80 Coins":
                execute player command "leatherleggings"
            make gui slot 2 to leather chestplate named "&6Leder Brustplatte" with lore "100 Coins":
                execute player command "leatherchestplate"
            make gui slot 3 to leather helmet named "&6Leder Helm" with lore "50 Coins":
                execute player command "leatherhelmet"
            make gui slot 10 to chainmail leggings named "&7Ketten Hose" with lore "100 Coins":
                execute player command "chainleggings"
            make gui slot 11 to chainmail chestplate named "&7Ketten Brustplatte" with lore "150 Coins":
                execute player command "chainchestplate"


command /chainchestplate:
    trigger:
        if {coins.%player%} is greater than 149:
            set {coins.%player%} to {coins.%player%} - 150
            give 1 of chainmail chestplate to player
            stop
        else:
            message "{@prefix}Du hast nicht genug Coins!"
            stop



command /chainhelmet:
    trigger:
        if {coins.%player%} is greater than 69:
            set {coins.%player%} to {coins.%player%} - 70
            give 1 of chainmail helmet to player
            stop
        else:
            message "{@prefix}Du hast nicht genug Coins!"
            stop


command /chainleggings:
    trigger:
        if {coins.%player%} is greater than 99:
            set {coins.%player%} to {coins.%player%} - 100
            give 1 of chainmail leggings to player
            stop
        else:
            message "{@prefix}Du hast nicht genug Coins!"
            stop


command /chainboots:
    trigger:
        if {coins.%player%} is greater than 69:
            set {coins.%player%} to {coins.%player%} - 70
            give 1 of chainmail boots to player
            stop
        else:
            message "{@prefix}Du hast nicht genug Coins!"
            stop


command /ironchestplate:
    trigger:
        if {coins.%player%} is greater than 499:
            set {coins.%player%} to {coins.%player%} - 500
            give 1 of iron chestplate to player
            stop
        else:
            message "{@prefix}Du hast nicht genug Coins!"
            stop



command /ironhelmet:
    trigger:
        if {coins.%player%} is greater than 149:
            set {coins.%player%} to {coins.%player%} - 150
            give 1 of iron helmet to player
            stop
        else:
            message "{@prefix}Du hast nicht genug Coins!"
            stop


command /ironleggings:
    trigger:
        if {coins.%player%} is greater than 399:
            set {coins.%player%} to {coins.%player%} - 400
            give 1 of iron leggings to player
            stop
        else:
            message "{@prefix}Du hast nicht genug Coins!"
            stop


command /ironboots:
    trigger:
        if {coins.%player%} is greater than 149:
            set {coins.%player%} to {coins.%player%} - 150
            give 1 of iron boots to player
            stop
        else:
            message "{@prefix}Du hast nicht genug Coins!"
            stop

command /leatherchestplate:
    trigger:
        if {coins.%player%} is greater than 99:
            set {coins.%player%} to {coins.%player%} - 100
            give 1 of leather chestplate to player
            stop
        else:
            message "{@prefix}Du hast nicht genug Coins!"
            stop

every 10 ticks:
    loop all players:
        if loop-player's world is "{@world}":
            set name of sidebar of loop-player to "&e&lJumpLeague - &a&lPlayTopic.de"
            set score "&c" in sidebar of loop-player to 12
            set score "&aServer" in sidebar of loop-player to 11
            set score "&e> &c{@server}" in sidebar of loop-player to 10
            set score "&2" in sidebar of loop-player to 9
            set score "&aCoins" in sidebar of loop-player to 8
            set score "&e> &c%{coins.%loop-player%}%" in sidebar of loop-player to 7
            set score "&r" in sidebar of loop-player to 6
            set score "&aProfil" in sidebar of loop-player to 5
            set score "&e> &c%loop-player's name%" in sidebar of loop-player to 4
            set score "&d" in sidebar of loop-player to 3
            set score "&aTeamSpeak" in sidebar of loop-player to 2
            set score "&e> &cPlayTopic.de" in sidebar of loop-player to 1
            set score "&f" in sidebar of loop-player to 0

command /leatherhelmet:
    trigger:
        if {coins.%player%} is greater than 49:
            set {coins.%player%} to {coins.%player%} - 50
            give 1 of leather helmet to player
            stop
        else:
            message "{@prefix}Du hast nicht genug Coins!"
            stop


command /leatherleggings:
    trigger:
        if {coins.%player%} is greater than 79:
            set {coins.%player%} to {coins.%player%} - 80
            give 1 of leather leggings to player
            stop
        else:
            message "{@prefix}Du hast nicht genug Coins!"
            stop


command /leatherboots:
    trigger:
        if {coins.%player%} is greater than 49:
            set {coins.%player%} to {coins.%player%} - 50
            give 1 of leather boots to player
            stop
        else:
            message "{@prefix}Du hast nicht genug Coins!"
            stop


command /schwertershop:
    trigger:
        if player's world is "{@world}":
            wait 2 ticks
            open chest with 1 rows named "&6Shop" to player
            wait 2 ticks
            format slot 0 of player with wooden sword named "&6Holz Schwert" with lore "100 Coins" to run [execute player command "holzschwert"]
            format slot 1 of player with stone sword named "&7Stein Schwert" with lore "300 Coins" to run [execute player command "stoneschwert"]
            format slot 2 of player with iron sword named "&fEisen Schwert" with lore "600 Coins" to run [execute player command "ironschwert"]
            format slot 8 of player with 166 named "&cBack" with lore "" to close then run [execute player command "{@command}"]
            format slot 3 of player with fishing rod named "&7Angel" with lore "250 Coins" to run [execute player command "angel"]

command /angel:
    trigger:
        if {coins.%player%} is greater than 249:
            set {coins.%player%} to {coins.%player%} - 250
            give 1 of fishing rod to player
            stop
        else:
            message "{@prefix}Du hast nicht genug Coins!"
            stop



command /ironschwert:
    trigger:
        if {coins.%player%} is greater than 599:
            set {coins.%player%} to {coins.%player%} - 600
            give 1 of iron sword to player
            stop
        else:
            message "{@prefix}Du hast nicht genug Coins!"
            stop


command /stoneschwert:
    trigger:
        if {coins.%player%} is greater than 299:
            set {coins.%player%} to {coins.%player%} - 300
            give 1 of stone sword to player
            stop
        else:
            message "{@prefix}Du hast nicht genug Coins!"
            stop


command /holzschwert:
    trigger:
        if {coins.%player%} is greater than 99:
            set {coins.%player%} to {coins.%player%} - 100
            give 1 of wooden sword to player
            stop
        else:
            message "{@prefix}Du hast nicht genug Coins!"
            stop

on death:
    set death message to ""
    if {life.%victim%} isn't 0:
        heal victim
        stop
    else:
        execute console command "/gamemode 3 %victim's name%"
        remove 1 from {live}
        heal victim
        clear victim's inventory
give errors then
 
the error:
Code:
[14:47:29 ERROR]: Invalid amount or placement of brackets. Please make sure that each opening bracket has a corresponding closing bracket. (js.sk, line 45: if {game] is not set:')
[14:47:29 ERROR]: 'light weighted pressure plate' is not an entity type (js.sk, line 93: if block under player is light weighted pressure plate:')
[14:47:29 ERROR]: 'virtual chest inventory with size 3 named "&6Shop"' is not an entity type (js.sk, line 220: open virtual chest inventory with size 3 named "&6Shop" to player')
[14:47:29 ERROR]: 'make gui slot 9 to 305 named "&7Ketten Schuhe" with lore "70 Coins"' is not a boolean (yes/no) (js.sk, line 222: make gui slot 9 to 305 named "&7Ketten Schuhe" with lore "70 Coins":')
[14:47:29 ERROR]: 'make gui slot 12 to chainmail helmet named "&7Ketten Helm" with lore "70 Coins"' is not a boolean (yes/no) (js.sk, line 224: make gui slot 12 to chainmail helmet named "&7Ketten Helm" with lore "70 Coins":')
[14:47:29 ERROR]: 'make gui slot 18 to 309 "&fEisen Schuhe" with lore "150 Coins"' is not a boolean (yes/no) (js.sk, line 226: make gui slot 18 to 309 "&fEisen Schuhe" with lore "150 Coins":')
[14:47:29 ERROR]: 'make gui slot 19 to iron leggings named "&fEisen Hose" with lore "400 Coins"' is not a boolean (yes/no) (js.sk, line 228: make gui slot 19 to iron leggings named "&fEisen Hose" with lore "400 Coins":')
[14:47:29 ERROR]: 'make gui slot 20 to 307 "&fEisen Brustplatte" with lore "500 Coins"' is not a boolean (yes/no) (js.sk, line 230: make gui slot 20 to 307 "&fEisen Brustplatte" with lore "500 Coins":')
[14:47:29 ERROR]: 'make gui slot 21 to iron helmet named "&fEisen Helm" with lore "150 Coins"' is not a boolean (yes/no) (js.sk, line 232: make gui slot 21 to iron helmet named "&fEisen Helm" with lore "150 Coins":')
[14:47:29 ERROR]: 'make gui slot 26 to 166 named "&cBack" with lore ""' is not a boolean (yes/no) (js.sk, line 234: make gui slot 26 to 166 named "&cBack" with lore "":')
[14:47:29 ERROR]: 'make gui slot 0 to leather boots named "&6Leder Schuhe" with lore "50 Coins"' is not a boolean (yes/no) (js.sk, line 237: make gui slot 0 to leather boots named "&6Leder Schuhe" with lore "50 Coins":')
[14:47:29 ERROR]: 'make gui slot 1 to leather leggings named "&6Leder Hose" with lore "80 Coins"' is not a boolean (yes/no) (js.sk, line 239: make gui slot 1 to leather leggings named "&6Leder Hose" with lore "80 Coins":')
[14:47:29 ERROR]: 'make gui slot 2 to leather chestplate named "&6Leder Brustplatte" with lore "100 Coins"' is not a boolean (yes/no) (js.sk, line 241: make gui slot 2 to leather chestplate named "&6Leder Brustplatte" with lore "100 Coins":')
[14:47:29 ERROR]: 'make gui slot 3 to leather helmet named "&6Leder Helm" with lore "50 Coins"' is not a boolean (yes/no) (js.sk, line 243: make gui slot 3 to leather helmet named "&6Leder Helm" with lore "50 Coins":')
[14:47:29 ERROR]: 'make gui slot 10 to chainmail leggings named "&7Ketten Hose" with lore "100 Coins"' is not a boolean (yes/no) (js.sk, line 245: make gui slot 10 to chainmail leggings named "&7Ketten Hose" with lore "100 Coins":')
[14:47:29 ERROR]: 'make gui slot 11 to chainmail chestplate named "&7Ketten Brustplatte" with lore "150 Coins"' is not a boolean (yes/no) (js.sk, line 247: make gui slot 11 to chainmail chestplate named "&7Ketten Brustplatte" with lore "150 Coins":')
[14:47:30 WARN]: Using an ID instead of an alias is discouraged and will likely not be supported in future versions of Skript anymore. Please replace '166' with e.g. 'barrier'. (js.sk, line 410: format slot 8 of player with 166 named "&cBack" with lore "" to close then run [execute player command "{@command}"]')
[
 
i fixed it almost. I have 5 errors
[doublepost=1582816673,1582816300][/doublepost]
Code:
options:
    prefix: test -
    startmessage: start
    world: world
    command: test
    gameworld: test2
    server: JL
 
on load:
    reset {game}
 
command /setlobby:
    permission: jl.setup
    permission message: &cKeine Rechte!
    trigger:
        set {hub} to player's location
 
on join:
    set join message to "&a+ &7%player's name%"
    teleport player to {hub}
    reset {coins.%player%}
    clear {plates.%player%::*}
    set gamemode of player to Survival
    if {game} is true:
        execute console command "/gamemode 3 %player's name%"
 
on quit:
    set quit message to "&c- &7%player's name%"
 
command /setziel:
    permission: jl.setup
    permission message: &cKeine Rechte!
    trigger:
        set {break.%player%} to true
 
on break:
    if {break.%player%} is true:
        set {break.%player%} to false
        set {ziel} to event-block
        stop
    else:
        cancel event
 
every 1 ticks:
    if {game} is not set:
        if number of all players is greater than 1:
            loop all players:
                wait 30 seconds
                broadcast "{@prefix}Noch 30 Sekunden!"
                wait 10 seconds
                broadcast "{@prefix}Noch 20 Sekunden!"
                wait 10 seconds
                broadcast "{@prefix}Noch 10 Sekunden!"
                wait 5 seconds
                broadcast "{@prefix}Noch 5 Sekunden!"
                wait 1 seconds
                broadcast "{@prefix}Noch 4 Sekunden!"
                wait 1 seconds
                broadcast "{@prefix}Noch 3 Sekunden!"
                wait 1 seconds
                broadcast "{@prefix}Noch 2 Sekunden!"
                wait 1 seconds
                broadcast "{@prefix}Noch eine Sekunde!"
                wait 1 seconds
                broadcast "{@prefix}Teleportiere..."
                teleport loop-player to {game}
                broadcast "{@prefix}{@startmessage}"
                hide all players in loop-player's world from loop-player
                set {game} to true
                set {live} to number of all players
                set {start} to true
                stop
    if {game} is true:
        if number of all players is less than 2:
            broadcast "{@prefix}Spiel beendet."
 
on place:
        cancel event
 
command /start:
    permission: jl.start
    permission message: &cKeine Rechte!
    trigger:
        loop all players:
            teleport loop-player to {game}
            broadcast "{@prefix}{@startmessage}"
            hide all players in loop-player's world from loop-player
            set {game} to true
            set {live} to number of all players
            set {back.%player%} to player's location
 
on any movement:
    if block under player is light weighted pressure plate:
        if {plates.%player%::*} doesn't contain event-block's location:
            add event-block's location to {plates.%player%::*}
            message "&e+ 200 Coins"
            set {coins.%player%} to {coins.%player%} + 200
            play "LEVEL_UP" to player at volume 15
            set {back.%player%} to player's location
            stop
    if block under player is {ziel}:
        broadcast "&c%player% ist am Ziel!"
        loop all players:
            play "CHICKEN_EGG_POP" to player at volume 20
            teleport loop-player to {hub}
            give 1 of chest named "&6Shop" with lore "" to loop-player
            reveal all players in player's world from loop-player
            wait 30 seconds
            broadcast "{@prefix}Noch 30 Sekunden!"
            wait 10 seconds
            broadcast "{@prefix}Noch 20 Sekunden!"
            wait 10 seconds
            broadcast "{@prefix}Noch 10 Sekunden!"
            wait 5 seconds
            broadcast "{@prefix}Noch 5 Sekunden!"
            wait 1 seconds
            broadcast "{@prefix}Noch 4 Sekunden!"
            wait 1 seconds
            broadcast "{@prefix}Noch 3 Sekunden!"
            wait 1 seconds
            broadcast "{@prefix}Noch 2 Sekunden!"
            wait 1 seconds
            broadcast "{@prefix}Noch eine Sekunde!"
            wait 1 seconds
            broadcast "{@prefix}Teleportiere..."
            set {time} to number of all players
            loop {time} times:
                set {tp} to a random element out of {points::*}
                add loop-player to {players::*}
                set {player} to a random element out of {players::*}
                teleport {player} to {tp}
                remove {player} from {players::*}
                remove 1 of chest named "&6Shop" with lore "" from {player}'s inventory
                set {life.%{player}%} to 3
 
command /setpoints:
    permission: jl.setup
    permission message: &cKeine Rechte!
    trigger:
        add player's location to {points::*}
 
on drop:
    if player's world is "{@world}":
        cancel event
 
on inventory click:
    if player's tool is chest:
        cancel event
 
on leftclick:
    if player's tool is chest:
        execute player command "{@command}"
 
on rightclick:
    if player's tool is chest:
        execute player command "{@command}"
 
on hunger meter change:
    set player's food level to 10
 
every 1 ticks:
    if {live} is 1:
        loop all players:
            if loop-player's gamemode is survival:
                broadcast "{@prefix}Der Spieler %loop-player's name% hat das Spiel gewonnen!"
                set {game} to false
                execute console command "stop"
 
command /{@command}:
    trigger:
        if player's world is "{@world}":
            wait 2 ticks
            open chest with 1 rows named "&6Shop" to player
            wait 2 ticks
            format slot 0 of player with wooden sword named "&cSchwerter" with lore "" to close then run [execute player command "schwertershop"]
            format slot 1 of player with chainmail chestplate named "&ePanzerung" with lore "" to close then run [execute player command "panzerungshop"]
            format slot 2 of player with golden apple named "&bSonstiges" with lore "" to close then run [execute player command "sonstigesshop"]
 
command /sonstigesshop:
    trigger:
        if player's world is "{@world}":
            wait 2 ticks
            open chest with 1 rows named "&6Shop" to player
            wait 2 ticks
            format slot 3 of player with golden apple named "&aGold Apfel" with lore "80 Coins" to run [execute player command "goldapfel"]
            format slot 4 of player with redstone dust named "&cExtra Herz" with lore "150 Coins" to run [execute player command "extrahealth"]
 
command /extrahealth:
    trigger:
        if {coins.%player%} is greater than 149:
            set {coins.%player%} to {coins.%player%} - 150
            set player's max health to player's max health + 2
            stop
        else:
            message "{@prefix}Du hast nicht genug Coins!"
            stop
 
command /goldapfel:
    trigger:
        if {coins.%player%} is greater than 79:
            set {coins.%player%} to {coins.%player%} - 80
            give 1 of golden apple to player
            stop
        else:
            message "{@prefix}Du hast nicht genug Coins!"
            stop
 
 
on damage:
    if victim's world is "{@gameworld}":
        stop
    cancel event
on damage:
    damage was caused by void:
        teleport victim to {back.%victim%}
 
command /panzerungshop:
    trigger:
        if player's world is "{@world}":
            wait 2 ticks
            open chest inventory with 3 rows named "&6Shop" to player
            wait 2 ticks
            format slot 9 of player with chainmail boots named "&7Ketten Schuhe" with lore "70 Coins" to run [execute player command "chainboots"]
            format slot 12 of player with chainmail helmet named "&7Ketten Helm" with lore "70 Coins" to run [execute player command "chainhelmet"]
            format slot 18 of player with iron boots named "&fEisen Schuhe" with lore "150 Coins" to run [execute player command "ironboots"]
            format slot 19 of player with iron leggings named "&fEisen Hose" with lore "400 Coins" to run [execute player command "ironleggings"]
            format slot 20 of player with iron chestplate named "&fEisen Brustplatte" with lore "500 Coins" to run [execute player command "ironchestplate"]
            format slot 21 of player with iron helmet named "&fEisen Helm" with lore "150 Coins" to run [execute player command "ironhelmet"]
            format slot 26 of player with barrier named "&cBack" with lore "" to run [execute player command "{@command}"]
            format slot 0 of player with leather boots named "&6Leder Schuhe" with lore "50 Coins" to run [execute player command "leatherboots"]
            format slot 1 of player with leather leggings named "&6Leder Hose" with lore "80 Coins" to run [execute player command "leatherleggings"]
            format slot 2 of player with leather chestplate named "&6Leder Brustplatte" with lore "100 Coins" to run [execute player command "leatherchestplate"]
            format slot 3 of player with leather helmet named "&6Leder Helm" with lore "50 Coins" to run [execute player command "leatherhelmet"]
            format slot 10 of player with chainmail leggings named "&7Ketten Hose" with lore "100 Coins" to run [execute player command "chainleggings"]
            format slot 11 of player with chainmail chestplate named "&7Ketten Brustplatte" with lore "150 Coins" to run [execute player command "chainchestplate"]
 
 
command /chainchestplate:
    trigger:
        if {coins.%player%} is greater than 149:
            set {coins.%player%} to {coins.%player%} - 150
            give 1 of chainmail chestplate to player
            stop
        else:
            message "{@prefix}Du hast nicht genug Coins!"
            stop
 
 
 
command /chainhelmet:
    trigger:
        if {coins.%player%} is greater than 69:
            set {coins.%player%} to {coins.%player%} - 70
            give 1 of chainmail helmet to player
            stop
        else:
            message "{@prefix}Du hast nicht genug Coins!"
            stop
 
 
command /chainleggings:
    trigger:
        if {coins.%player%} is greater than 99:
            set {coins.%player%} to {coins.%player%} - 100
            give 1 of chainmail leggings to player
            stop
        else:
            message "{@prefix}Du hast nicht genug Coins!"
            stop
 
 
command /chainboots:
    trigger:
        if {coins.%player%} is greater than 69:
            set {coins.%player%} to {coins.%player%} - 70
            give 1 of chainmail boots to player
            stop
        else:
            message "{@prefix}Du hast nicht genug Coins!"
            stop
 
 
command /ironchestplate:
    trigger:
        if {coins.%player%} is greater than 499:
            set {coins.%player%} to {coins.%player%} - 500
            give 1 of iron chestplate to player
            stop
        else:
            message "{@prefix}Du hast nicht genug Coins!"
            stop
 
 
 
command /ironhelmet:
    trigger:
        if {coins.%player%} is greater than 149:
            set {coins.%player%} to {coins.%player%} - 150
            give 1 of iron helmet to player
            stop
        else:
            message "{@prefix}Du hast nicht genug Coins!"
            stop
 
 
command /ironleggings:
    trigger:
        if {coins.%player%} is greater than 399:
            set {coins.%player%} to {coins.%player%} - 400
            give 1 of iron leggings to player
            stop
        else:
            message "{@prefix}Du hast nicht genug Coins!"
            stop
 
 
command /ironboots:
    trigger:
        if {coins.%player%} is greater than 149:
            set {coins.%player%} to {coins.%player%} - 150
            give 1 of iron boots to player
            stop
        else:
            message "{@prefix}Du hast nicht genug Coins!"
            stop
 
command /leatherchestplate:
    trigger:
        if {coins.%player%} is greater than 99:
            set {coins.%player%} to {coins.%player%} - 100
            give 1 of leather chestplate to player
            stop
        else:
            message "{@prefix}Du hast nicht genug Coins!"
            stop
 
every 10 ticks:
    loop all players:
        if loop-player's world is "{@world}":
            set name of sidebar of loop-player to "&e&lJumpLeague - &a&lPlayTopic.de"
            set score "&c" in sidebar of loop-player to 12
            set score "&aServer" in sidebar of loop-player to 11
            set score "&e> &c{@server}" in sidebar of loop-player to 10
            set score "&2" in sidebar of loop-player to 9
            set score "&aCoins" in sidebar of loop-player to 8
            set score "&e> &c%{coins.%loop-player%}%" in sidebar of loop-player to 7
            set score "&r" in sidebar of loop-player to 6
            set score "&aProfil" in sidebar of loop-player to 5
            set score "&e> &c%loop-player's name%" in sidebar of loop-player to 4
            set score "&d" in sidebar of loop-player to 3
            set score "&aTeamSpeak" in sidebar of loop-player to 2
            set score "&e> &cPlayTopic.de" in sidebar of loop-player to 1
            set score "&f" in sidebar of loop-player to 0
 
command /leatherhelmet:
    trigger:
        if {coins.%player%} is greater than 49:
            set {coins.%player%} to {coins.%player%} - 50
            give 1 of leather helmet to player
            stop
        else:
            message "{@prefix}Du hast nicht genug Coins!"
            stop
 
 
command /leatherleggings:
    trigger:
        if {coins.%player%} is greater than 79:
            set {coins.%player%} to {coins.%player%} - 80
            give 1 of leather leggings to player
            stop
        else:
            message "{@prefix}Du hast nicht genug Coins!"
            stop
 
 
command /leatherboots:
    trigger:
        if {coins.%player%} is greater than 49:
            set {coins.%player%} to {coins.%player%} - 50
            give 1 of leather boots to player
            stop
        else:
            message "{@prefix}Du hast nicht genug Coins!"
            stop
 
 
command /schwertershop:
    trigger:
        if player's world is "{@world}":
            wait 2 ticks
            open chest with 1 rows named "&6Shop" to player
            wait 2 ticks
            format slot 0 of player with wooden sword named "&6Holz Schwert" with lore "100 Coins" to run [execute player command "holzschwert"]
            format slot 1 of player with stone sword named "&7Stein Schwert" with lore "300 Coins" to run [execute player command "stoneschwert"]
            format slot 2 of player with iron sword named "&fEisen Schwert" with lore "600 Coins" to run [execute player command "ironschwert"]
            format slot 8 of player with barrier named "&cBack" with lore "" to close then run [execute player command "{@command}"]
            format slot 3 of player with fishing rod named "&7Angel" with lore "250 Coins" to run [execute player command "angel"]
 
command /angel:
    trigger:
        if {coins.%player%} is greater than 249:
            set {coins.%player%} to {coins.%player%} - 250
            give 1 of fishing rod to player
            stop
        else:
            message "{@prefix}Du hast nicht genug Coins!"
            stop
 
 
 
command /ironschwert:
    trigger:
        if {coins.%player%} is greater than 599:
            set {coins.%player%} to {coins.%player%} - 600
            give 1 of iron sword to player
            stop
        else:
            message "{@prefix}Du hast nicht genug Coins!"
            stop
 
 
command /stoneschwert:
    trigger:
        if {coins.%player%} is greater than 299:
            set {coins.%player%} to {coins.%player%} - 300
            give 1 of stone sword to player
            stop
        else:
            message "{@prefix}Du hast nicht genug Coins!"
            stop
 
 
command /holzschwert:
    trigger:
        if {coins.%player%} is greater than 99:
            set {coins.%player%} to {coins.%player%} - 100
            give 1 of wooden sword to player
            stop
        else:
            message "{@prefix}Du hast nicht genug Coins!"
            stop
 
on death:
    set death message to ""
    if {life.%victim%} isn't 0:
        heal victim
        stop
    else:
        execute console command "/gamemode 3 %victim's name%"
        remove 1 from {live}
        heal victim
        clear victim's inventory
This code fixes almost every error on my server test it on yours. Errors are caused by not valid sound type on my server (i have 1.15.1 server)
 
Status
Not open for further replies.