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 Can anyone please find the Error?

Discussion in 'Skript' started by Philotastisch, Feb 27, 2020.

Thread Status:
Not open for further replies.
  1. Philotastisch

    Philotastisch Member

    Joined:
    Sep 25, 2019
    Messages:
    45
    Likes Received:
    0
    Here is the script: https://pastebin.com/SsFp1jPk

    Server Version: 1.8.8

    Plugins: MundoSk, WildSkript, skDragon, skUtilities, SkExtras, SkQuery, TuSKe, ProtocolLib, Skellet, skRayFall

    Best greetings
    Philippe

     
  2. Best Answer:
    Post #6 by PanHack, Feb 27, 2020
  3. PanHack

    PanHack Active Member

    Joined:
    Dec 18, 2019
    Messages:
    143
    Likes Received:
    8
    any errors on reload ?
     
  4. Philotastisch

    Philotastisch Member

    Joined:
    Sep 25, 2019
    Messages:
    45
    Likes Received:
    0
    yes. i have edited the script
    Code (Text):
    1. options:
    2.     prefix: test -
    3.     startmessage: start
    4.     world: world
    5.     command: test
    6.     gameworld: test2
    7.     server: JL
    8.  
    9. on load:
    10.     reset {game}
    11.  
    12. command /setlobby:
    13.     permission: jl.setup
    14.     permission message: &cKeine Rechte!
    15.     trigger:
    16.         set {hub} to player's location
    17.  
    18. on join:
    19.     set join message to "&a+ &7%player's name%"
    20.     teleport player to {hub}
    21.     reset {coins.%player%}
    22.     clear {plates.%player%::*}
    23.     set gamemode of player to Survival
    24.     if {game} is true:
    25.         execute console command "/gamemode 3 %player's name%"
    26.  
    27. on quit:
    28.     set quit message to "&c- &7%player's name%"
    29.  
    30. command /setziel:
    31.     permission: jl.setup
    32.     permission message: &cKeine Rechte!
    33.     trigger:
    34.         set {break.%player%} to true
    35.  
    36. on break:
    37.     if {break.%player%} is true:
    38.         set {break.%player%} to false
    39.         set {ziel} to event-block
    40.         stop
    41.     else:
    42.         cancel event
    43.  
    44. every 1 ticks:
    45.     if {game] is not set:
    46.         if number of all players is greater than 1:
    47.             loop all players:
    48.                 wait 30 seconds
    49.                 broadcast "{@prefix}Noch 30 Sekunden!"
    50.                 wait 10 seconds
    51.                 broadcast "{@prefix}Noch 20 Sekunden!"
    52.                 wait 10 seconds
    53.                 broadcast "{@prefix}Noch 10 Sekunden!"
    54.                 wait 5 seconds
    55.                 broadcast "{@prefix}Noch 5 Sekunden!"
    56.                 wait 1 seconds
    57.                 broadcast "{@prefix}Noch 4 Sekunden!"
    58.                 wait 1 seconds
    59.                 broadcast "{@prefix}Noch 3 Sekunden!"
    60.                 wait 1 seconds
    61.                 broadcast "{@prefix}Noch 2 Sekunden!"
    62.                 wait 1 seconds
    63.                 broadcast "{@prefix}Noch eine Sekunde!"
    64.                 wait 1 seconds
    65.                 broadcast "{@prefix}Teleportiere..."
    66.                 teleport loop-player to {game}
    67.                 broadcast "{@prefix}{@startmessage}"
    68.                 hide all players in loop-player's world from loop-player
    69.                 set {game} to true
    70.                 set {live} to number of all players
    71.                 set {start} to true
    72.                 stop
    73.     if {game} is true:
    74.         if number of all players is less than 2:
    75.             broadcast "{@prefix}Spiel beendet."
    76.  
    77. on place:
    78.         cancel event
    79.  
    80. command /start:
    81.     permission: jl.start
    82.     permission message: &cKeine Rechte!
    83.     trigger:
    84.         loop all players:
    85.             teleport loop-player to {game}
    86.             broadcast "{@prefix}{@startmessage}"
    87.             hide all players in loop-player's world from loop-player
    88.             set {game} to true
    89.             set {live} to number of all players
    90.             set {back.%player%} to player's location
    91.  
    92. on any movement:
    93.     if block under player is light weighted pressure plate:
    94.         if {plates.%player%::*} doesn't contain event-block's location:
    95.             add event-block's location to {plates.%player%::*}
    96.             message "&e+ 200 Coins"
    97.             set {coins.%player%} to {coins.%player%} + 200
    98.             play "LEVEL_UP" to player at volume 15
    99.             set {back.%player%} to player's location
    100.             stop
    101.     if block under player is {ziel}:
    102.         broadcast "&c%player% ist am Ziel!"
    103.         loop all players:
    104.             play "CHICKEN_EGG_POP" to loop-player at volume 20
    105.             teleport loop-player to {hub}
    106.             give 1 of chest named "&6Shop" with lore "" to loop-player
    107.             reveal all players in player's world from loop-player
    108.             wait 30 seconds
    109.             broadcast "{@prefix}Noch 30 Sekunden!"
    110.             wait 10 seconds
    111.             broadcast "{@prefix}Noch 20 Sekunden!"
    112.             wait 10 seconds
    113.             broadcast "{@prefix}Noch 10 Sekunden!"
    114.             wait 5 seconds
    115.             broadcast "{@prefix}Noch 5 Sekunden!"
    116.             wait 1 seconds
    117.             broadcast "{@prefix}Noch 4 Sekunden!"
    118.             wait 1 seconds
    119.             broadcast "{@prefix}Noch 3 Sekunden!"
    120.             wait 1 seconds
    121.             broadcast "{@prefix}Noch 2 Sekunden!"
    122.             wait 1 seconds
    123.             broadcast "{@prefix}Noch eine Sekunde!"
    124.             wait 1 seconds
    125.             broadcast "{@prefix}Teleportiere..."
    126.             set {time} to number of all players
    127.             loop {time} times:
    128.                 set {tp} to a random element out of {points::*}
    129.                 add loop-player to {players::*}
    130.                 set {player} to a random element out of {players::*}
    131.                 teleport {player} to {tp}
    132.                 remove {player} from {players::*}
    133.                 remove 1 of chest named "&6Shop" with lore "" from {player}'s inventory
    134.                 set {life.%{player}%} to 3
    135.  
    136. command /setpoints:
    137.     permission: jl.setup
    138.     permission message: &cKeine Rechte!
    139.     trigger:
    140.         add player's location to {points::*}
    141.  
    142. on drop:
    143.     if player's world is "{@world}":
    144.         cancel event
    145.  
    146. on inventory click:
    147.     if player's tool is chest:
    148.         cancel event
    149.  
    150. on leftclick:
    151.     if player's tool is chest:
    152.         execute player command "{@command}"
    153.  
    154. on rightclick:
    155.     if player's tool is chest:
    156.         execute player command "{@command}"
    157.  
    158. on hunger meter change:
    159.     set player's food level to 10
    160.  
    161. every 1 ticks:
    162.     if {live} is 1:
    163.         loop all players:
    164.             if loop-player's gamemode is survival:
    165.                 broadcast "{@prefix}Der Spieler %loop-player's name% hat das Spiel gewonnen!"
    166.                 set {game} to false
    167.                 execute console command "stop"
    168.  
    169. command /{@command}:
    170.     trigger:
    171.         if player's world is "{@world}":
    172.             wait 2 ticks
    173.             open chest with 1 rows named "&6Shop" to player
    174.             wait 2 ticks
    175.             format slot 0 of player with wooden sword named "&cSchwerter" with lore "" to close then run [execute player command "schwertershop"]
    176.             format slot 1 of player with chainmail chestplate named "&ePanzerung" with lore "" to close then run [execute player command "panzerungshop"]
    177.             format slot 2 of player with golden apple named "&bSonstiges" with lore "" to close then run [execute player command "sonstigesshop"]
    178.  
    179. command /sonstigesshop:
    180.     trigger:
    181.         if player's world is "{@world}":
    182.             wait 2 ticks
    183.             open chest with 1 rows named "&6Shop" to player
    184.             wait 2 ticks
    185.             format slot 3 of player with golden apple named "&aGold Apfel" with lore "80 Coins" to run [execute player command "goldapfel"]
    186.             format slot 4 of player with redstone dust named "&cExtra Herz" with lore "150 Coins" to run [execute player command "extrahealth"]
    187.  
    188. command /extrahealth:
    189.     trigger:
    190.         if {coins.%player%} is greater than 149:
    191.             set {coins.%player%} to {coins.%player%} - 150
    192.             set player's max health to player's max health + 2
    193.             stop
    194.         else:
    195.             message "{@prefix}Du hast nicht genug Coins!"
    196.             stop
    197.  
    198. command /goldapfel:
    199.     trigger:
    200.         if {coins.%player%} is greater than 79:
    201.             set {coins.%player%} to {coins.%player%} - 80
    202.             give 1 of golden apple to player
    203.             stop
    204.         else:
    205.             message "{@prefix}Du hast nicht genug Coins!"
    206.             stop
    207.  
    208.  
    209. on damage:
    210.     if victim's world is "{@gameworld}":
    211.         stop
    212.     cancel event
    213.     if damage cause is void:
    214.         teleport victim to {back.%victim%}
    215.  
    216. command /panzerungshop:
    217.     trigger:
    218.         if player's world is "{@world}":
    219.             wait 2 ticks
    220.             open virtual chest inventory with size 3 named "&6Shop" to player
    221.             wait 2 ticks
    222.             make gui slot 9 to 305 named "&7Ketten Schuhe" with lore "70 Coins":
    223.                 execute player command "chainboots"
    224.             make gui slot 12 to chainmail helmet named "&7Ketten Helm" with lore "70 Coins":
    225.                 execute player command "chainhelmet"
    226.             make gui slot 18 to 309 "&fEisen Schuhe" with lore "150 Coins":
    227.                 make player execute command "ironboots"
    228.             make gui slot 19 to iron leggings named "&fEisen Hose" with lore "400 Coins":
    229.                 execute player command "ironleggings"
    230.             make gui slot 20 to 307 "&fEisen Brustplatte" with lore "500 Coins":
    231.                 execute player command "ironchestplate"
    232.             make gui slot 21 to iron helmet named "&fEisen Helm" with lore "150 Coins":
    233.                 execute player command "ironhelmet"
    234.             make gui slot 26 to 166 named "&cBack" with lore "":
    235.                 close player's inventory
    236.                 execute player command "{@command}"
    237.             make gui slot 0 to leather boots named "&6Leder Schuhe" with lore "50 Coins":
    238.                 execute player command "leatherboots"
    239.             make gui slot 1 to leather leggings named "&6Leder Hose" with lore "80 Coins":
    240.                 execute player command "leatherleggings"
    241.             make gui slot 2 to leather chestplate named "&6Leder Brustplatte" with lore "100 Coins":
    242.                 execute player command "leatherchestplate"
    243.             make gui slot 3 to leather helmet named "&6Leder Helm" with lore "50 Coins":
    244.                 execute player command "leatherhelmet"
    245.             make gui slot 10 to chainmail leggings named "&7Ketten Hose" with lore "100 Coins":
    246.                 execute player command "chainleggings"
    247.             make gui slot 11 to chainmail chestplate named "&7Ketten Brustplatte" with lore "150 Coins":
    248.                 execute player command "chainchestplate"
    249.  
    250.  
    251. command /chainchestplate:
    252.     trigger:
    253.         if {coins.%player%} is greater than 149:
    254.             set {coins.%player%} to {coins.%player%} - 150
    255.             give 1 of chainmail chestplate to player
    256.             stop
    257.         else:
    258.             message "{@prefix}Du hast nicht genug Coins!"
    259.             stop
    260.  
    261.  
    262.  
    263. command /chainhelmet:
    264.     trigger:
    265.         if {coins.%player%} is greater than 69:
    266.             set {coins.%player%} to {coins.%player%} - 70
    267.             give 1 of chainmail helmet to player
    268.             stop
    269.         else:
    270.             message "{@prefix}Du hast nicht genug Coins!"
    271.             stop
    272.  
    273.  
    274. command /chainleggings:
    275.     trigger:
    276.         if {coins.%player%} is greater than 99:
    277.             set {coins.%player%} to {coins.%player%} - 100
    278.             give 1 of chainmail leggings to player
    279.             stop
    280.         else:
    281.             message "{@prefix}Du hast nicht genug Coins!"
    282.             stop
    283.  
    284.  
    285. command /chainboots:
    286.     trigger:
    287.         if {coins.%player%} is greater than 69:
    288.             set {coins.%player%} to {coins.%player%} - 70
    289.             give 1 of chainmail boots to player
    290.             stop
    291.         else:
    292.             message "{@prefix}Du hast nicht genug Coins!"
    293.             stop
    294.  
    295.  
    296. command /ironchestplate:
    297.     trigger:
    298.         if {coins.%player%} is greater than 499:
    299.             set {coins.%player%} to {coins.%player%} - 500
    300.             give 1 of iron chestplate to player
    301.             stop
    302.         else:
    303.             message "{@prefix}Du hast nicht genug Coins!"
    304.             stop
    305.  
    306.  
    307.  
    308. command /ironhelmet:
    309.     trigger:
    310.         if {coins.%player%} is greater than 149:
    311.             set {coins.%player%} to {coins.%player%} - 150
    312.             give 1 of iron helmet to player
    313.             stop
    314.         else:
    315.             message "{@prefix}Du hast nicht genug Coins!"
    316.             stop
    317.  
    318.  
    319. command /ironleggings:
    320.     trigger:
    321.         if {coins.%player%} is greater than 399:
    322.             set {coins.%player%} to {coins.%player%} - 400
    323.             give 1 of iron leggings to player
    324.             stop
    325.         else:
    326.             message "{@prefix}Du hast nicht genug Coins!"
    327.             stop
    328.  
    329.  
    330. command /ironboots:
    331.     trigger:
    332.         if {coins.%player%} is greater than 149:
    333.             set {coins.%player%} to {coins.%player%} - 150
    334.             give 1 of iron boots to player
    335.             stop
    336.         else:
    337.             message "{@prefix}Du hast nicht genug Coins!"
    338.             stop
    339.  
    340. command /leatherchestplate:
    341.     trigger:
    342.         if {coins.%player%} is greater than 99:
    343.             set {coins.%player%} to {coins.%player%} - 100
    344.             give 1 of leather chestplate to player
    345.             stop
    346.         else:
    347.             message "{@prefix}Du hast nicht genug Coins!"
    348.             stop
    349.  
    350. every 10 ticks:
    351.     loop all players:
    352.         if loop-player's world is "{@world}":
    353.             set name of sidebar of loop-player to "&e&lJumpLeague - &a&lPlayTopic.de"
    354.             set score "&c" in sidebar of loop-player to 12
    355.             set score "&aServer" in sidebar of loop-player to 11
    356.             set score "&e> &c{@server}" in sidebar of loop-player to 10
    357.             set score "&2" in sidebar of loop-player to 9
    358.             set score "&aCoins" in sidebar of loop-player to 8
    359.             set score "&e> &c%{coins.%loop-player%}%" in sidebar of loop-player to 7
    360.             set score "&r" in sidebar of loop-player to 6
    361.             set score "&aProfil" in sidebar of loop-player to 5
    362.             set score "&e> &c%loop-player's name%" in sidebar of loop-player to 4
    363.             set score "&d" in sidebar of loop-player to 3
    364.             set score "&aTeamSpeak" in sidebar of loop-player to 2
    365.             set score "&e> &cPlayTopic.de" in sidebar of loop-player to 1
    366.             set score "&f" in sidebar of loop-player to 0
    367.  
    368. command /leatherhelmet:
    369.     trigger:
    370.         if {coins.%player%} is greater than 49:
    371.             set {coins.%player%} to {coins.%player%} - 50
    372.             give 1 of leather helmet to player
    373.             stop
    374.         else:
    375.             message "{@prefix}Du hast nicht genug Coins!"
    376.             stop
    377.  
    378.  
    379. command /leatherleggings:
    380.     trigger:
    381.         if {coins.%player%} is greater than 79:
    382.             set {coins.%player%} to {coins.%player%} - 80
    383.             give 1 of leather leggings to player
    384.             stop
    385.         else:
    386.             message "{@prefix}Du hast nicht genug Coins!"
    387.             stop
    388.  
    389.  
    390. command /leatherboots:
    391.     trigger:
    392.         if {coins.%player%} is greater than 49:
    393.             set {coins.%player%} to {coins.%player%} - 50
    394.             give 1 of leather boots to player
    395.             stop
    396.         else:
    397.             message "{@prefix}Du hast nicht genug Coins!"
    398.             stop
    399.  
    400.  
    401. command /schwertershop:
    402.     trigger:
    403.         if player's world is "{@world}":
    404.             wait 2 ticks
    405.             open chest with 1 rows named "&6Shop" to player
    406.             wait 2 ticks
    407.             format slot 0 of player with wooden sword named "&6Holz Schwert" with lore "100 Coins" to run [execute player command "holzschwert"]
    408.             format slot 1 of player with stone sword named "&7Stein Schwert" with lore "300 Coins" to run [execute player command "stoneschwert"]
    409.             format slot 2 of player with iron sword named "&fEisen Schwert" with lore "600 Coins" to run [execute player command "ironschwert"]
    410.             format slot 8 of player with 166 named "&cBack" with lore "" to close then run [execute player command "{@command}"]
    411.             format slot 3 of player with fishing rod named "&7Angel" with lore "250 Coins" to run [execute player command "angel"]
    412.  
    413. command /angel:
    414.     trigger:
    415.         if {coins.%player%} is greater than 249:
    416.             set {coins.%player%} to {coins.%player%} - 250
    417.             give 1 of fishing rod to player
    418.             stop
    419.         else:
    420.             message "{@prefix}Du hast nicht genug Coins!"
    421.             stop
    422.  
    423.  
    424.  
    425. command /ironschwert:
    426.     trigger:
    427.         if {coins.%player%} is greater than 599:
    428.             set {coins.%player%} to {coins.%player%} - 600
    429.             give 1 of iron sword to player
    430.             stop
    431.         else:
    432.             message "{@prefix}Du hast nicht genug Coins!"
    433.             stop
    434.  
    435.  
    436. command /stoneschwert:
    437.     trigger:
    438.         if {coins.%player%} is greater than 299:
    439.             set {coins.%player%} to {coins.%player%} - 300
    440.             give 1 of stone sword to player
    441.             stop
    442.         else:
    443.             message "{@prefix}Du hast nicht genug Coins!"
    444.             stop
    445.  
    446.  
    447. command /holzschwert:
    448.     trigger:
    449.         if {coins.%player%} is greater than 99:
    450.             set {coins.%player%} to {coins.%player%} - 100
    451.             give 1 of wooden sword to player
    452.             stop
    453.         else:
    454.             message "{@prefix}Du hast nicht genug Coins!"
    455.             stop
    456.  
    457. on death:
    458.     set death message to ""
    459.     if {life.%victim%} isn't 0:
    460.         heal victim
    461.         stop
    462.     else:
    463.         execute console command "/gamemode 3 %victim's name%"
    464.         remove 1 from {live}
    465.         heal victim
    466.         clear victim's inventory
     
  5. PanHack

    PanHack Active Member

    Joined:
    Dec 18, 2019
    Messages:
    143
    Likes Received:
    8
    give errors then
     
  6. Philotastisch

    Philotastisch Member

    Joined:
    Sep 25, 2019
    Messages:
    45
    Likes Received:
    0
    the error:
    Code (Text):
    1. [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:')
    2. [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:')
    3. [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')
    4. [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":')
    5. [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":')
    6. [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":')
    7. [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":')
    8. [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":')
    9. [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":')
    10. [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 "":')
    11. [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":')
    12. [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":')
    13. [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. [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":')
    15. [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":')
    16. [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":')
    17. [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}"]')
    18. [
     
  7. PanHack

    PanHack Active Member

    Joined:
    Dec 18, 2019
    Messages:
    143
    Likes Received:
    8
    i fixed it almost. I have 5 errors
    --- Double Post Merged, Feb 27, 2020, Original Post Date: Feb 27, 2020 ---
    Code (Text):
    1. options:
    2.     prefix: test -
    3.     startmessage: start
    4.     world: world
    5.     command: test
    6.     gameworld: test2
    7.     server: JL
    8.  
    9. on load:
    10.     reset {game}
    11.  
    12. command /setlobby:
    13.     permission: jl.setup
    14.     permission message: &cKeine Rechte!
    15.     trigger:
    16.         set {hub} to player's location
    17.  
    18. on join:
    19.     set join message to "&a+ &7%player's name%"
    20.     teleport player to {hub}
    21.     reset {coins.%player%}
    22.     clear {plates.%player%::*}
    23.     set gamemode of player to Survival
    24.     if {game} is true:
    25.         execute console command "/gamemode 3 %player's name%"
    26.  
    27. on quit:
    28.     set quit message to "&c- &7%player's name%"
    29.  
    30. command /setziel:
    31.     permission: jl.setup
    32.     permission message: &cKeine Rechte!
    33.     trigger:
    34.         set {break.%player%} to true
    35.  
    36. on break:
    37.     if {break.%player%} is true:
    38.         set {break.%player%} to false
    39.         set {ziel} to event-block
    40.         stop
    41.     else:
    42.         cancel event
    43.  
    44. every 1 ticks:
    45.     if {game} is not set:
    46.         if number of all players is greater than 1:
    47.             loop all players:
    48.                 wait 30 seconds
    49.                 broadcast "{@prefix}Noch 30 Sekunden!"
    50.                 wait 10 seconds
    51.                 broadcast "{@prefix}Noch 20 Sekunden!"
    52.                 wait 10 seconds
    53.                 broadcast "{@prefix}Noch 10 Sekunden!"
    54.                 wait 5 seconds
    55.                 broadcast "{@prefix}Noch 5 Sekunden!"
    56.                 wait 1 seconds
    57.                 broadcast "{@prefix}Noch 4 Sekunden!"
    58.                 wait 1 seconds
    59.                 broadcast "{@prefix}Noch 3 Sekunden!"
    60.                 wait 1 seconds
    61.                 broadcast "{@prefix}Noch 2 Sekunden!"
    62.                 wait 1 seconds
    63.                 broadcast "{@prefix}Noch eine Sekunde!"
    64.                 wait 1 seconds
    65.                 broadcast "{@prefix}Teleportiere..."
    66.                 teleport loop-player to {game}
    67.                 broadcast "{@prefix}{@startmessage}"
    68.                 hide all players in loop-player's world from loop-player
    69.                 set {game} to true
    70.                 set {live} to number of all players
    71.                 set {start} to true
    72.                 stop
    73.     if {game} is true:
    74.         if number of all players is less than 2:
    75.             broadcast "{@prefix}Spiel beendet."
    76.  
    77. on place:
    78.         cancel event
    79.  
    80. command /start:
    81.     permission: jl.start
    82.     permission message: &cKeine Rechte!
    83.     trigger:
    84.         loop all players:
    85.             teleport loop-player to {game}
    86.             broadcast "{@prefix}{@startmessage}"
    87.             hide all players in loop-player's world from loop-player
    88.             set {game} to true
    89.             set {live} to number of all players
    90.             set {back.%player%} to player's location
    91.  
    92. on any movement:
    93.     if block under player is light weighted pressure plate:
    94.         if {plates.%player%::*} doesn't contain event-block's location:
    95.             add event-block's location to {plates.%player%::*}
    96.             message "&e+ 200 Coins"
    97.             set {coins.%player%} to {coins.%player%} + 200
    98.             play "LEVEL_UP" to player at volume 15
    99.             set {back.%player%} to player's location
    100.             stop
    101.     if block under player is {ziel}:
    102.         broadcast "&c%player% ist am Ziel!"
    103.         loop all players:
    104.             play "CHICKEN_EGG_POP" to player at volume 20
    105.             teleport loop-player to {hub}
    106.             give 1 of chest named "&6Shop" with lore "" to loop-player
    107.             reveal all players in player's world from loop-player
    108.             wait 30 seconds
    109.             broadcast "{@prefix}Noch 30 Sekunden!"
    110.             wait 10 seconds
    111.             broadcast "{@prefix}Noch 20 Sekunden!"
    112.             wait 10 seconds
    113.             broadcast "{@prefix}Noch 10 Sekunden!"
    114.             wait 5 seconds
    115.             broadcast "{@prefix}Noch 5 Sekunden!"
    116.             wait 1 seconds
    117.             broadcast "{@prefix}Noch 4 Sekunden!"
    118.             wait 1 seconds
    119.             broadcast "{@prefix}Noch 3 Sekunden!"
    120.             wait 1 seconds
    121.             broadcast "{@prefix}Noch 2 Sekunden!"
    122.             wait 1 seconds
    123.             broadcast "{@prefix}Noch eine Sekunde!"
    124.             wait 1 seconds
    125.             broadcast "{@prefix}Teleportiere..."
    126.             set {time} to number of all players
    127.             loop {time} times:
    128.                 set {tp} to a random element out of {points::*}
    129.                 add loop-player to {players::*}
    130.                 set {player} to a random element out of {players::*}
    131.                 teleport {player} to {tp}
    132.                 remove {player} from {players::*}
    133.                 remove 1 of chest named "&6Shop" with lore "" from {player}'s inventory
    134.                 set {life.%{player}%} to 3
    135.  
    136. command /setpoints:
    137.     permission: jl.setup
    138.     permission message: &cKeine Rechte!
    139.     trigger:
    140.         add player's location to {points::*}
    141.  
    142. on drop:
    143.     if player's world is "{@world}":
    144.         cancel event
    145.  
    146. on inventory click:
    147.     if player's tool is chest:
    148.         cancel event
    149.  
    150. on leftclick:
    151.     if player's tool is chest:
    152.         execute player command "{@command}"
    153.  
    154. on rightclick:
    155.     if player's tool is chest:
    156.         execute player command "{@command}"
    157.  
    158. on hunger meter change:
    159.     set player's food level to 10
    160.  
    161. every 1 ticks:
    162.     if {live} is 1:
    163.         loop all players:
    164.             if loop-player's gamemode is survival:
    165.                 broadcast "{@prefix}Der Spieler %loop-player's name% hat das Spiel gewonnen!"
    166.                 set {game} to false
    167.                 execute console command "stop"
    168.  
    169. command /{@command}:
    170.     trigger:
    171.         if player's world is "{@world}":
    172.             wait 2 ticks
    173.             open chest with 1 rows named "&6Shop" to player
    174.             wait 2 ticks
    175.             format slot 0 of player with wooden sword named "&cSchwerter" with lore "" to close then run [execute player command "schwertershop"]
    176.             format slot 1 of player with chainmail chestplate named "&ePanzerung" with lore "" to close then run [execute player command "panzerungshop"]
    177.             format slot 2 of player with golden apple named "&bSonstiges" with lore "" to close then run [execute player command "sonstigesshop"]
    178.  
    179. command /sonstigesshop:
    180.     trigger:
    181.         if player's world is "{@world}":
    182.             wait 2 ticks
    183.             open chest with 1 rows named "&6Shop" to player
    184.             wait 2 ticks
    185.             format slot 3 of player with golden apple named "&aGold Apfel" with lore "80 Coins" to run [execute player command "goldapfel"]
    186.             format slot 4 of player with redstone dust named "&cExtra Herz" with lore "150 Coins" to run [execute player command "extrahealth"]
    187.  
    188. command /extrahealth:
    189.     trigger:
    190.         if {coins.%player%} is greater than 149:
    191.             set {coins.%player%} to {coins.%player%} - 150
    192.             set player's max health to player's max health + 2
    193.             stop
    194.         else:
    195.             message "{@prefix}Du hast nicht genug Coins!"
    196.             stop
    197.  
    198. command /goldapfel:
    199.     trigger:
    200.         if {coins.%player%} is greater than 79:
    201.             set {coins.%player%} to {coins.%player%} - 80
    202.             give 1 of golden apple to player
    203.             stop
    204.         else:
    205.             message "{@prefix}Du hast nicht genug Coins!"
    206.             stop
    207.  
    208.  
    209. on damage:
    210.     if victim's world is "{@gameworld}":
    211.         stop
    212.     cancel event
    213. on damage:
    214.     damage was caused by void:
    215.         teleport victim to {back.%victim%}
    216.  
    217. command /panzerungshop:
    218.     trigger:
    219.         if player's world is "{@world}":
    220.             wait 2 ticks
    221.             open chest inventory with 3 rows named "&6Shop" to player
    222.             wait 2 ticks
    223.             format slot 9 of player with chainmail boots named "&7Ketten Schuhe" with lore "70 Coins" to run [execute player command "chainboots"]
    224.             format slot 12 of player with chainmail helmet named "&7Ketten Helm" with lore "70 Coins" to run [execute player command "chainhelmet"]
    225.             format slot 18 of player with iron boots named "&fEisen Schuhe" with lore "150 Coins" to run [execute player command "ironboots"]
    226.             format slot 19 of player with iron leggings named "&fEisen Hose" with lore "400 Coins" to run [execute player command "ironleggings"]
    227.             format slot 20 of player with iron chestplate named "&fEisen Brustplatte" with lore "500 Coins" to run [execute player command "ironchestplate"]
    228.             format slot 21 of player with iron helmet named "&fEisen Helm" with lore "150 Coins" to run [execute player command "ironhelmet"]
    229.             format slot 26 of player with barrier named "&cBack" with lore "" to run [execute player command "{@command}"]
    230.             format slot 0 of player with leather boots named "&6Leder Schuhe" with lore "50 Coins" to run [execute player command "leatherboots"]
    231.             format slot 1 of player with leather leggings named "&6Leder Hose" with lore "80 Coins" to run [execute player command "leatherleggings"]
    232.             format slot 2 of player with leather chestplate named "&6Leder Brustplatte" with lore "100 Coins" to run [execute player command "leatherchestplate"]
    233.             format slot 3 of player with leather helmet named "&6Leder Helm" with lore "50 Coins" to run [execute player command "leatherhelmet"]
    234.             format slot 10 of player with chainmail leggings named "&7Ketten Hose" with lore "100 Coins" to run [execute player command "chainleggings"]
    235.             format slot 11 of player with chainmail chestplate named "&7Ketten Brustplatte" with lore "150 Coins" to run [execute player command "chainchestplate"]
    236.  
    237.  
    238. command /chainchestplate:
    239.     trigger:
    240.         if {coins.%player%} is greater than 149:
    241.             set {coins.%player%} to {coins.%player%} - 150
    242.             give 1 of chainmail chestplate to player
    243.             stop
    244.         else:
    245.             message "{@prefix}Du hast nicht genug Coins!"
    246.             stop
    247.  
    248.  
    249.  
    250. command /chainhelmet:
    251.     trigger:
    252.         if {coins.%player%} is greater than 69:
    253.             set {coins.%player%} to {coins.%player%} - 70
    254.             give 1 of chainmail helmet to player
    255.             stop
    256.         else:
    257.             message "{@prefix}Du hast nicht genug Coins!"
    258.             stop
    259.  
    260.  
    261. command /chainleggings:
    262.     trigger:
    263.         if {coins.%player%} is greater than 99:
    264.             set {coins.%player%} to {coins.%player%} - 100
    265.             give 1 of chainmail leggings to player
    266.             stop
    267.         else:
    268.             message "{@prefix}Du hast nicht genug Coins!"
    269.             stop
    270.  
    271.  
    272. command /chainboots:
    273.     trigger:
    274.         if {coins.%player%} is greater than 69:
    275.             set {coins.%player%} to {coins.%player%} - 70
    276.             give 1 of chainmail boots to player
    277.             stop
    278.         else:
    279.             message "{@prefix}Du hast nicht genug Coins!"
    280.             stop
    281.  
    282.  
    283. command /ironchestplate:
    284.     trigger:
    285.         if {coins.%player%} is greater than 499:
    286.             set {coins.%player%} to {coins.%player%} - 500
    287.             give 1 of iron chestplate to player
    288.             stop
    289.         else:
    290.             message "{@prefix}Du hast nicht genug Coins!"
    291.             stop
    292.  
    293.  
    294.  
    295. command /ironhelmet:
    296.     trigger:
    297.         if {coins.%player%} is greater than 149:
    298.             set {coins.%player%} to {coins.%player%} - 150
    299.             give 1 of iron helmet to player
    300.             stop
    301.         else:
    302.             message "{@prefix}Du hast nicht genug Coins!"
    303.             stop
    304.  
    305.  
    306. command /ironleggings:
    307.     trigger:
    308.         if {coins.%player%} is greater than 399:
    309.             set {coins.%player%} to {coins.%player%} - 400
    310.             give 1 of iron leggings to player
    311.             stop
    312.         else:
    313.             message "{@prefix}Du hast nicht genug Coins!"
    314.             stop
    315.  
    316.  
    317. command /ironboots:
    318.     trigger:
    319.         if {coins.%player%} is greater than 149:
    320.             set {coins.%player%} to {coins.%player%} - 150
    321.             give 1 of iron boots to player
    322.             stop
    323.         else:
    324.             message "{@prefix}Du hast nicht genug Coins!"
    325.             stop
    326.  
    327. command /leatherchestplate:
    328.     trigger:
    329.         if {coins.%player%} is greater than 99:
    330.             set {coins.%player%} to {coins.%player%} - 100
    331.             give 1 of leather chestplate to player
    332.             stop
    333.         else:
    334.             message "{@prefix}Du hast nicht genug Coins!"
    335.             stop
    336.  
    337. every 10 ticks:
    338.     loop all players:
    339.         if loop-player's world is "{@world}":
    340.             set name of sidebar of loop-player to "&e&lJumpLeague - &a&lPlayTopic.de"
    341.             set score "&c" in sidebar of loop-player to 12
    342.             set score "&aServer" in sidebar of loop-player to 11
    343.             set score "&e> &c{@server}" in sidebar of loop-player to 10
    344.             set score "&2" in sidebar of loop-player to 9
    345.             set score "&aCoins" in sidebar of loop-player to 8
    346.             set score "&e> &c%{coins.%loop-player%}%" in sidebar of loop-player to 7
    347.             set score "&r" in sidebar of loop-player to 6
    348.             set score "&aProfil" in sidebar of loop-player to 5
    349.             set score "&e> &c%loop-player's name%" in sidebar of loop-player to 4
    350.             set score "&d" in sidebar of loop-player to 3
    351.             set score "&aTeamSpeak" in sidebar of loop-player to 2
    352.             set score "&e> &cPlayTopic.de" in sidebar of loop-player to 1
    353.             set score "&f" in sidebar of loop-player to 0
    354.  
    355. command /leatherhelmet:
    356.     trigger:
    357.         if {coins.%player%} is greater than 49:
    358.             set {coins.%player%} to {coins.%player%} - 50
    359.             give 1 of leather helmet to player
    360.             stop
    361.         else:
    362.             message "{@prefix}Du hast nicht genug Coins!"
    363.             stop
    364.  
    365.  
    366. command /leatherleggings:
    367.     trigger:
    368.         if {coins.%player%} is greater than 79:
    369.             set {coins.%player%} to {coins.%player%} - 80
    370.             give 1 of leather leggings to player
    371.             stop
    372.         else:
    373.             message "{@prefix}Du hast nicht genug Coins!"
    374.             stop
    375.  
    376.  
    377. command /leatherboots:
    378.     trigger:
    379.         if {coins.%player%} is greater than 49:
    380.             set {coins.%player%} to {coins.%player%} - 50
    381.             give 1 of leather boots to player
    382.             stop
    383.         else:
    384.             message "{@prefix}Du hast nicht genug Coins!"
    385.             stop
    386.  
    387.  
    388. command /schwertershop:
    389.     trigger:
    390.         if player's world is "{@world}":
    391.             wait 2 ticks
    392.             open chest with 1 rows named "&6Shop" to player
    393.             wait 2 ticks
    394.             format slot 0 of player with wooden sword named "&6Holz Schwert" with lore "100 Coins" to run [execute player command "holzschwert"]
    395.             format slot 1 of player with stone sword named "&7Stein Schwert" with lore "300 Coins" to run [execute player command "stoneschwert"]
    396.             format slot 2 of player with iron sword named "&fEisen Schwert" with lore "600 Coins" to run [execute player command "ironschwert"]
    397.             format slot 8 of player with barrier named "&cBack" with lore "" to close then run [execute player command "{@command}"]
    398.             format slot 3 of player with fishing rod named "&7Angel" with lore "250 Coins" to run [execute player command "angel"]
    399.  
    400. command /angel:
    401.     trigger:
    402.         if {coins.%player%} is greater than 249:
    403.             set {coins.%player%} to {coins.%player%} - 250
    404.             give 1 of fishing rod to player
    405.             stop
    406.         else:
    407.             message "{@prefix}Du hast nicht genug Coins!"
    408.             stop
    409.  
    410.  
    411.  
    412. command /ironschwert:
    413.     trigger:
    414.         if {coins.%player%} is greater than 599:
    415.             set {coins.%player%} to {coins.%player%} - 600
    416.             give 1 of iron sword to player
    417.             stop
    418.         else:
    419.             message "{@prefix}Du hast nicht genug Coins!"
    420.             stop
    421.  
    422.  
    423. command /stoneschwert:
    424.     trigger:
    425.         if {coins.%player%} is greater than 299:
    426.             set {coins.%player%} to {coins.%player%} - 300
    427.             give 1 of stone sword to player
    428.             stop
    429.         else:
    430.             message "{@prefix}Du hast nicht genug Coins!"
    431.             stop
    432.  
    433.  
    434. command /holzschwert:
    435.     trigger:
    436.         if {coins.%player%} is greater than 99:
    437.             set {coins.%player%} to {coins.%player%} - 100
    438.             give 1 of wooden sword to player
    439.             stop
    440.         else:
    441.             message "{@prefix}Du hast nicht genug Coins!"
    442.             stop
    443.  
    444. on death:
    445.     set death message to ""
    446.     if {life.%victim%} isn't 0:
    447.         heal victim
    448.         stop
    449.     else:
    450.         execute console command "/gamemode 3 %victim's name%"
    451.         remove 1 from {live}
    452.         heal victim
    453.         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)
     
    • Agree Agree x 2
  8. Philotastisch

    Philotastisch Member

    Joined:
    Sep 25, 2019
    Messages:
    45
    Likes Received:
    0
    • Agree Agree x 1
Thread Status:
Not open for further replies.

Share This Page

Loading...