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

Skript 83 errors, and i don't know why..

Discussion in 'Skript' started by Lil Mill, Feb 13, 2019.

  1. L

    Lil Mill Member

    Joined:
    Feb 13, 2019
    Messages:
    3
    Likes Received:
    0
    Code (Text):
    1. on sign change:
    2.     player has permission "*":
    3.         line 1 is "VM":
    4.             set line 1 to "====================="
    5.             set line 2 to "&4Vagt"
    6.             set line 3 to "&4Menu"
    7.             set line 4 to "====================="
    8.         else:
    9.             stop
    10.     else:
    11.         stop
    12.  
    13. on click on sign:
    14.     player has permission "vagt.*":
    15.         line 2 is "&4Vagt":
    16.             line 3 is "&4Menu":
    17.                 if player is holding a iron_sword of sharpness 1:
    18.                     open chest with 1 rows named "&cOpgrader dit jernsværd!" to player
    19.                     wait 3    ticks
    20.                     format slot 4 of player with glowing iron_sword named "&4Jernsværd" with lore "sharpness 2" to close then run [make player execute command "/up JS 2"]
    21.                     stop
    22.                 else if player is holding a iron_sword of sharpness 2:
    23.                     open chest with 1 rows named "&cOpgrader dit jernsværd!" to player
    24.                     wait 3    ticks
    25.                     format slot 4 of player with glowing iron_sword named "&4Jernsværd" with lore "sharpness 3" to close then run [make player execute command "/up JS 3"]
    26.                     stop
    27.                 else if player is holding a iron_sword of sharpness 3:
    28.                     open chest with 1 rows named "&cOpgrader dit jernsværd!" to player
    29.                     wait 3    ticks
    30.                     format slot 4 of player with glowing iron_sword named "&4Jernsværd" with lore "sharpness 4" to close then run [make player execute command "/up JS 4"]
    31.                     stop
    32.                 else if player is holding a iron_sword of sharpness 4:
    33.                     open chest with 1 rows named "&cOpgrader dit jernsværd!" to player
    34.                     wait 3    ticks
    35.                     format slot 4 of player with glowing iron_sword named "&4Jernsværd" with lore "Den kan ikke opgraderes mere!" to close              
    36.                     stop
    37.                 else if player is holding a iron_sword:
    38.                     open chest with 1 rows named "&cOpgrader dit jernsværd!" to player
    39.                     wait 3    ticks
    40.                     format slot 4 of player with glowing iron_sword named "&4Jernsværd" with lore "sharpness 1" to close then run [make player execute command "/up JS 1"]                  
    41.                     stop
    42.                    
    43.                    
    44.                    
    45.                    
    46.                 else if player is holding a iron_helmet of protection 1:
    47.                     open chest with 1 rows named "&cOpgrader dit jernhjelm!" to player
    48.                     wait 3    ticks
    49.                     format slot 4 of player with glowing iron_helmet named "&4Jernhjelm" with lore "protection 2" to close then run [make player execute command "/up Jh 2"]
    50.                     stop
    51.                 else if player is holding a iron_helmet of protection 2:
    52.                     open chest with 1 rows named "&cOpgrader dit jernhjelm!" to player
    53.                     wait 3    ticks
    54.                     format slot 4 of player with glowing iron_helmet named "&4Jernhjelm" with lore "protection 3" to close then run [make player execute command "/up Jh 3"]
    55.                     stop
    56.                 else if player is holding a iron_helmet of protection 3:
    57.                     open chest with 1 rows named "&cOpgrader dit jernhjelm!" to player
    58.                     wait 3    ticks
    59.                     format slot 4 of player with glowing iron_helmet named "&4Jernhjelm" with lore "protection 4" to close then run [make player execute command "/up Jh 4"]
    60.                     stop
    61.                 else if player is holding a iron_helmet of protection 4:
    62.                     open chest with 1 rows named "&cOpgrader dit jernhjelm!" to player
    63.                     wait 3    ticks
    64.                     format slot 4 of player with glowing iron_helmet named "&4Jernhjelm" with lore "Den kan ikke opgraderes mere!" to close              
    65.                     stop
    66.                 else if player is holding a iron_helmet:
    67.                     open chest with 1 rows named "&cOpgrader dit jernhjelm!" to player
    68.                     wait 3    ticks
    69.                     format slot 4 of player with glowing iron_helmet named "&4Jernhjelm" with lore "protection 1" to close then run [make player execute command "/up Jh 1"]                                      
    70.                     stop
    71.                    
    72.                    
    73.                    
    74.                    
    75.                 else if player is holding a iron_chestplate of protection 1:
    76.                     open chest with 1 rows named "&cOpgrader dit jernbrystplade!" to player
    77.                     wait 3    ticks
    78.                     format slot 4 of player with glowing iron_chestplate named "&4Jernbrystplade" with lore "protection 2" to close then run [make player execute command "/up Jp 2"]
    79.                     stop
    80.                 else if player is holding a iron_chestplate of protection 2:
    81.                     open chest with 1 rows named "&cOpgrader dit jernbrystplade!" to player
    82.                     wait 3    ticks
    83.                     format slot 4 of player with glowing iron_chestplate named "&4Jernbrystplade" with lore "protection 3" to close then run [make player execute command "/up Jp 3"]
    84.                     stop
    85.                 else if player is holding a iron_chestplate of protection 3:
    86.                     open chest with 1 rows named "&cOpgrader dit jernbrystplade!" to player
    87.                     wait 3    ticks
    88.                     format slot 4 of player with glowing iron_chestplate named "&4Jernbrystplade" with lore "protection 4" to close then run [make player execute command "/up Jp 4"]
    89.                     stop
    90.                 else if player is holding a iron_chestplate of protection 4:
    91.                     open chest with 1 rows named "&cOpgrader dit jernbrystplade!" to player
    92.                     wait 3    ticks
    93.                     format slot 4 of player with glowing iron_chestplate named "&4Jernbrystplade" with lore "Den kan ikke opgraderes mere!" to close              
    94.                     stop
    95.                 else if player is holding a iron_chestplate:
    96.                     open chest with 1 rows named "&cOpgrader dit jernbrystplade!" to player
    97.                     wait 3    ticks
    98.                     format slot 4 of player with glowing iron_chestplate named "&4Jernbrystplade" with lore "protection 1" to close then run [make player execute command "/up Jp 1"]                          
    99.                     stop
    100.                    
    101.                    
    102.                    
    103.                 else if player is holding a iron_leggings of protection 1:
    104.                     open chest with 1 rows named "&cOpgrader dit jernbukser!" to player
    105.                     wait 3    ticks
    106.                     format slot 4 of player with glowing iron_leggings named "&4Jernbukser" with lore "protection 2" to close then run [make player execute command "/up Jb 2"]
    107.                     stop
    108.                 else if player is holding a iron_leggings of protection 2:
    109.                     open chest with 1 rows named "&cOpgrader dit jernbukser!" to player
    110.                     wait 3    ticks
    111.                     format slot 4 of player with glowing iron_leggings named "&4Jernbukser" with lore "protection 3" to close then run [make player execute command "/up Jb 3"]
    112.                     stop
    113.                 else if player is holding a iron_leggings of protection 3:
    114.                     open chest with 1 rows named "&cOpgrader dit jernbukser!" to player
    115.                     wait 3    ticks
    116.                     format slot 4 of player with glowing iron_leggings named "&4Jernbukser" with lore "protection 4" to close then run [make player execute command "/up Jb 4"]
    117.                     stop
    118.                 else if player is holding a iron_leggings of protection 4:
    119.                     open chest with 1 rows named "&cOpgrader dit jernbukser!" to player
    120.                     wait 3    ticks
    121.                     format slot 4 of player with glowing iron_leggings named "&4Jernbukser" with lore "Den kan ikke opgraderes mere!" to close              
    122.                     stop
    123.                 else if player is holding a iron_leggings:
    124.                     open chest with 1 rows named "&cOpgrader dit jernbukser!" to player
    125.                     wait 3    ticks
    126.                     format slot 4 of player with glowing iron_leggings named "&4Jernbukser" with lore "protection 1" to close then run [make player execute command "/up Jb 1"]  
    127.                     stop
    128.                    
    129.                    
    130.                    
    131.                    
    132.                 else if player is holding a iron_boots of protection 1:
    133.                     open chest with 1 rows named "&cOpgrader dit jernsko!" to player
    134.                     wait 3    ticks
    135.                     format slot 4 of player with glowing iron_boots named "&4Jernsko" with lore "protection 2" to close then run [make player execute command "/up Jsk 2"]
    136.                     stop
    137.                 else if player is holding a iron_boots of protection 2:
    138.                     open chest with 1 rows named "&cOpgrader dit jernsko!" to player
    139.                     wait 3    ticks
    140.                     format slot 4 of player with glowing iron_boots named "&4Jernsko" with lore "protection 3" to close then run [make player execute command "/up Jsk 3"]
    141.                     stop
    142.                 else if player is holding a iron_boots of protection 3:
    143.                     open chest with 1 rows named "&cOpgrader dit jernsko!" to player
    144.                     wait 3    ticks
    145.                     format slot 4 of player with glowing iron_boots named "&4Jernsko" with lore "protection 4" to close then run [make player execute command "/up Jsk 4"]
    146.                     stop
    147.                 else if player is holding a iron_boots of protection 4:
    148.                     open chest with 1 rows named "&cOpgrader dit jernsko!" to player
    149.                     wait 3    ticks
    150.                     format slot 4 of player with glowing iron_boots named "&4Jernsko" with lore "Den kan ikke opgraderes mere!" to close              
    151.                     stop
    152.                 else if player is holding a iron_boots:
    153.                     open chest with 1 rows named "&cOpgrader dit jernsko!" to player
    154.                     wait 3    ticks
    155.                     format slot 4 of player with glowing iron_boots named "&4Jernsko" with lore "protection 1" to close then run [make player execute command "/up Jsk 1"]          
    156.                     stop
    157.                    
    158.                    
    159.                    
    160.                    
    161.                    
    162.                 else if player is holding a bow of Power 1:
    163.                     open chest with 1 rows named "&cOpgrader dit Bue!" to player
    164.                     wait 3    ticks
    165.                     format slot 4 of player with glowing bow named "&4Bue" with lore "Power 2" to close then run [make player execute command "/up bue 2"]
    166.                     stop
    167.                 else if player is holding a bow of Power 2:
    168.                     open chest with 1 rows named "&cOpgrader dit Bue!" to player
    169.                     wait 3    ticks
    170.                     format slot 4 of player with glowing bow named "&4Bue" with lore "Power 3" to close then run [make player execute command "/up bue 3"]
    171.                     stop
    172.                 else if player is holding a bow of Power 3:
    173.                     open chest with 1 rows named "&cOpgrader dit Bue!" to player
    174.                     wait 3    ticks
    175.                     format slot 4 of player with glowing bow named "&4Bue" with lore "Power 4" to close then run [make player execute command "/up bue 4"]
    176.                     stop
    177.                 else if player is holding a bow of Power 4:
    178.                     open chest with 1 rows named "&cOpgrader dit Bue!" to player
    179.                     wait 3    ticks
    180.                     format slot 4 of player with glowing bow named "&4Bue" with lore "Den kan ikke opgraderes mere!" to close              
    181.                     stop
    182.                 else if player is holding a bow:
    183.                     open chest with 1 rows named "&cOpgrader dit Bue!" to player
    184.                     wait 3    ticks
    185.                     format slot 4 of player with glowing bow named "&4Bue" with lore "Power 1" to close then run [make player execute command "/up bue 1"]          
    186.                     stop
    187.                    
    188.                    
    189.                    
    190.                    
    191.  
    192.                 else:
    193.                     open chest with 1 rows named "&cVagtmenu!" to player
    194.                     wait 3    ticks
    195.                     format slot 3 of player with glowing paper named "&4Shop" to close then run [make player execute command "/vagtshop"]          
    196.                     format slot 5 of player with anvil named "&4Fix" with lore "Hold den ting du vil reparere i hånden!" to close then run [make player execute command "/fixden"]                  
    197.                     stop
    198.                
    199. command /up [<text>] [<text>]:
    200.     permission: vagt.*
    201.     trigger:
    202.         if arg 1 is "js":
    203.             if arg 2 is "0":
    204.                 if player's money is between 0 and 99:
    205.                     message "&4VagtMenu &fDu har ikke råd til dette"
    206.                 else if player's money is between 100 and 10000000000000:
    207.                     give player iron_sword named "&4Jernsværd" with lore "&4 Dette tilhøre %player%"
    208.                     remove 100 from player's balance
    209.             else if arg 2 is "1":
    210.                 if player's money is between 0 and 99:
    211.                     message "&4VagtMenu &fDu har ikke råd til dette"
    212.                 else if player's money is between 100 and 10000000000000:
    213.                     remove an iron_sword from the player
    214.                     give player iron_sword of sharpness 1 named "&4Jernsværd" with lore "&4 Dette tilhøre %player%"
    215.                     remove 100 from player's balance
    216.             else if arg 2 is "2":
    217.                 if player's money is between 0 and 99:
    218.                     message "&4VagtMenu &fDu har ikke råd til dette"
    219.                 if player's money is between 100 and 10000000000000:
    220.                     remove an iron_sword from the player
    221.                     give player iron_sword of sharpness 2 named "&4Jernsværd" with lore "&4 Dette tilhøre %player%"
    222.                     remove 100 from player's balance
    223.             else if arg 2 is "3":
    224.                 if player's money is between 0 and 99:
    225.                     message "&4VagtMenu &fDu har ikke råd til dette"
    226.                 if player's money is between 100 and 10000000000000:
    227.                     remove an iron_sword from the player
    228.                     give player iron_sword of sharpness 3 named "&4Jernsværd" with lore "&4 Dette tilhøre %player%"
    229.                     remove 100 from player's balance
    230.             else if arg 2 is "4":
    231.                 if player's money is between 0 and 99:
    232.                     message "&4VagtMenu &fDu har ikke råd til dette"
    233.                 if player's money is between 100 and 10000000000000:
    234.                     remove an iron_sword from the player
    235.                     give player iron_sword of sharpness 4 named "&4Jernsværd" with lore "&4 Dette tilhøre %player%"
    236.                     remove 100 from player's balance
    237.  
    238.  
    239.  
    240.  
    241.         if arg 1 is "jh":
    242.             if arg 2 is "0":
    243.                 if player's money is between 0 and 99:
    244.                     message "&4VagtMenu &fDu har ikke råd til dette"
    245.                 else if player's money is between 100 and 10000000000000:
    246.                     give player iron_helmet named "&4Jernhjelm" with lore "&4 Dette tilhøre %player%"
    247.                     remove 100 from player's balance
    248.             else if arg 2 is "1":
    249.                 if player's money is between 0 and 99:
    250.                     message "&4VagtMenu &fDu har ikke råd til dette"
    251.                 else if player's money is between 100 and 10000000000000:
    252.                     remove an iron_helmet from the player
    253.                     give player iron_helmet of protection 1 named "&4Jernhjelm" with lore "&4 Dette tilhøre %player%"
    254.                     remove 100 from player's balance
    255.             else if arg 2 is "2":
    256.                 if player's money is between 0 and 99:
    257.                     message "&4VagtMenu &fDu har ikke råd til dette"
    258.                 if player's money is between 100 and 10000000000000:
    259.                     remove an iron_helmet from the player
    260.                     give player iron_helmet of protection 2 named "&4Jernhjelm" with lore "&4 Dette tilhøre %player%"
    261.                     remove 100 from player's balance
    262.             else if arg 2 is "3":
    263.                 if player's money is between 0 and 99:
    264.                     message "&4VagtMenu &fDu har ikke råd til dette"
    265.                 if player's money is between 100 and 10000000000000:
    266.                     remove an iron_helmet from the player
    267.                     give player iron_helmet of protection 3 named "&4Jernhjelm" with lore "&4 Dette tilhøre %player%"
    268.                     remove 100 from player's balance
    269.             else if arg 2 is "4":
    270.                 if player's money is between 0 and 99:
    271.                     message "&4VagtMenu &fDu har ikke råd til dette"
    272.                 if player's money is between 100 and 10000000000000:
    273.                     remove an iron_helmet from the player
    274.                     give player iron_helmet of protection 4 named "&4Jernhjelm" with lore "&4 Dette tilhøre %player%"
    275.                     remove 100 from player's balance
    276.                    
    277.  
    278.  
    279.  
    280.         if arg 1 is "jp":
    281.             if arg 2 is "0":
    282.                 if player's money is between 0 and 99:
    283.                     message "&4VagtMenu &fDu har ikke råd til dette"
    284.                 else if player's money is between 100 and 10000000000000:
    285.                     give player iron_chestplate named "&4Jernbrystplade" with lore "&4 Dette tilhøre %player%"
    286.                     remove 100 from player's balance
    287.             else if arg 2 is "1":
    288.                 if player's money is between 0 and 99:
    289.                     message "&4VagtMenu &fDu har ikke råd til dette"
    290.                 else if player's money is between 100 and 10000000000000:
    291.                     remove an iron_chestplate from the player
    292.                     give player iron_chestplate of protection 1 named "&4Jernbrystplade" with lore "&4 Dette tilhøre %player%"
    293.                     remove 100 from player's balance
    294.             else if arg 2 is "2":
    295.                 if player's money is between 0 and 99:
    296.                     message "&4VagtMenu &fDu har ikke råd til dette"
    297.                 if player's money is between 100 and 10000000000000:
    298.                     remove an iron_chestplate from the player
    299.                     give player iron_chestplate of protection 2 named "&4Jernbrystplade" with lore "&4 Dette tilhøre %player%"
    300.                     remove 100 from player's balance
    301.             else if arg 2 is "3":
    302.                 if player's money is between 0 and 99:
    303.                     message "&4VagtMenu &fDu har ikke råd til dette"
    304.                 if player's money is between 100 and 10000000000000:
    305.                     remove an iron_chestplate from the player
    306.                     give player iron_chestplate of protection 3 named "&4Jernbrystplade" with lore "&4 Dette tilhøre %player%"
    307.                     remove 100 from player's balance
    308.             else if arg 2 is "4":
    309.                 if player's money is between 0 and 99:
    310.                     message "&4VagtMenu &fDu har ikke råd til dette"
    311.                 if player's money is between 100 and 10000000000000:
    312.                     remove an iron_chestplate from the player
    313.                     give player iron_chestplate of protection 4 named "&4Jernbrystplade" with lore "&4 Dette tilhøre %player%"
    314.  
    315.  
    316.  
    317.  
    318.         if arg 1 is "jb":
    319.             if arg 2 is "0":
    320.                 if player's money is between 0 and 99:
    321.                     message "&4VagtMenu &fDu har ikke råd til dette"
    322.                 else if player's money is between 100 and 10000000000000:
    323.                     give player iron_leggings named "&4Jernbukser" with lore "&4 Dette tilhøre %player%"
    324.                     remove 100 from player's balance
    325.             else if arg 2 is "1":
    326.                 if player's money is between 0 and 99:
    327.                     message "&4VagtMenu &fDu har ikke råd til dette"
    328.                 else if player's money is between 100 and 10000000000000:
    329.                     remove an iron_leggings from the player
    330.                     give player iron_leggings of protection 1 named "&4Jernbukser" with lore "&4 Dette tilhøre %player%"
    331.                     remove 100 from player's balance
    332.             else if arg 2 is "2":
    333.                 if player's money is between 0 and 99:
    334.                     message "&4VagtMenu &fDu har ikke råd til dette"
    335.                 if player's money is between 100 and 10000000000000:
    336.                     remove an iron_leggings from the player
    337.                     give player iron_leggings of protection 2 named "&4Jernbukser" with lore "&4 Dette tilhøre %player%"
    338.                     remove 100 from player's balance
    339.             else if arg 2 is "3":
    340.                 if player's money is between 0 and 99:
    341.                     message "&4VagtMenu &fDu har ikke råd til dette"
    342.                 if player's money is between 100 and 10000000000000:
    343.                     remove an iron_leggings from the player
    344.                     give player iron_leggings of protection 3 named "&4Jernbukser" with lore "&4 Dette tilhøre %player%"
    345.                     remove 100 from player's balance
    346.             else if arg 2 is "4":
    347.                 if player's money is between 0 and 99:
    348.                     message "&4VagtMenu &fDu har ikke råd til dette"
    349.                 if player's money is between 100 and 10000000000000:
    350.                     remove an iron_leggings from the player
    351.                     give player iron_leggings of protection 4 named "&4Jernbukser" with lore "&4 Dette tilhøre %player%"
    352.                    
    353.                    
    354.                    
    355.                    
    356.                    
    357.         if arg 1 is "jsk":
    358.             if arg 2 is "0":
    359.                 if player's money is between 0 and 99:
    360.                     message "&4VagtMenu &fDu har ikke råd til dette"
    361.                 else if player's money is between 100 and 10000000000000:
    362.                     give player iron_boots named "&4Jernsko" with lore "&4 Dette tilhøre %player%"
    363.                     remove 100 from player's balance
    364.             else if arg 2 is "1":
    365.                 if player's money is between 0 and 99:
    366.                     message "&4VagtMenu &fDu har ikke råd til dette"
    367.                 else if player's money is between 100 and 10000000000000:
    368.                     remove an iron_boots from the player
    369.                     give player iron_boots of protection 1 named "&4Jernsko" with lore "&4 Dette tilhøre %player%"
    370.                     remove 100 from player's balance
    371.             else if arg 2 is "2":
    372.                 if player's money is between 0 and 99:
    373.                     message "&4VagtMenu &fDu har ikke råd til dette"
    374.                 if player's money is between 100 and 10000000000000:
    375.                     remove an iron_boots from the player
    376.                     give player iron_boots of protection 2 named "&4Jernsko" with lore "&4 Dette tilhøre %player%"
    377.                     remove 100 from player's balance
    378.             else if arg 2 is "3":
    379.                 if player's money is between 0 and 99:
    380.                     message "&4VagtMenu &fDu har ikke råd til dette"
    381.                 if player's money is between 100 and 10000000000000:
    382.                     remove an iron_boots from the player
    383.                     give player iron_boots of protection 3 named "&4Jernsko" with lore "&4 Dette tilhøre %player%"
    384.                     remove 100 from player's balance
    385.             else if arg 2 is "4":
    386.                 if player's money is between 0 and 99:
    387.                     message "&4VagtMenu &fDu har ikke råd til dette"
    388.                 if player's money is between 100 and 10000000000000:
    389.                     remove an iron_boots from the player
    390.                     give player iron_boots of protection 4 named "&4Jernsko" with lore "&4 Dette tilhøre %player%"
    391.                    
    392.                    
    393.                    
    394.         if arg 1 is "food":
    395.             if arg 2 is "0":
    396.                 if player's money is between 0 and 99:
    397.                     message "&4VagtMenu &fDu har ikke råd til dette"
    398.                 else if player's money is between 100 and 10000000000000:
    399.                     give player 16 cooked_pork named "&4Bacon" with lore "&4 Dette tilhøre %player%"
    400.                     remove 100 from player's balance
    401.                    
    402.                    
    403.                    
    404.         if arg 1 is "bue":
    405.             if arg 2 is "0":
    406.                 if player's money is between 0 and 99:
    407.                     message "&4VagtMenu &fDu har ikke råd til dette"
    408.                 else if player's money is between 100 and 10000000000000:
    409.                     give player bow named "&4bue" with lore "&4 Dette tilhøre %player%"
    410.                     remove 100 from player's balance
    411.             else if arg 2 is "1":
    412.                 if player's money is between 0 and 99:
    413.                     message "&4VagtMenu &fDu har ikke råd til dette"
    414.                 else if player's money is between 100 and 10000000000000:
    415.                     remove an bow from the player
    416.                     give player bow of power 1 named "&4bue" with lore "&4 Dette tilhøre %player%"
    417.                     remove 100 from player's balance
    418.             else if arg 2 is "2":
    419.                 if player's money is between 0 and 99:
    420.                     message "&4VagtMenu &fDu har ikke råd til dette"
    421.                 if player's money is between 100 and 10000000000000:
    422.                     remove an bow from the player
    423.                     give player bow of power 2 named "&4bue" with lore "&4 Dette tilhøre %player%"
    424.                     remove 100 from player's balance
    425.             else if arg 2 is "3":
    426.                 if player's money is between 0 and 99:
    427.                     message "&4VagtMenu &fDu har ikke råd til dette"
    428.                 if player's money is between 100 and 10000000000000:
    429.                     remove an bow from the player
    430.                     give player bow of power 3 named "&4bue" with lore "&4 Dette tilhøre %player%"
    431.                     remove 100 from player's balance
    432.             else if arg 2 is "4":
    433.                 if player's money is between 0 and 99:
    434.                     message "&4VagtMenu &fDu har ikke råd til dette"
    435.                 if player's money is between 100 and 10000000000000:
    436.                     remove an bow from the player
    437.                     give player bow of power 4 named "&4bue" with lore "&4 Dette tilhøre %player%"
    438.  
    439.  
    440.  
    441.  
    442.         if arg 1 is "pile":
    443.             if arg 2 is "0":
    444.                 if player's money is between 0 and 99:
    445.                     message "&4VagtMenu &fDu har ikke råd til dette"
    446.                 else if player's money is between 100 and 10000000000000:
    447.                     give player 64 arrow named "&4Pile" with lore "&4 Dette tilhøre %player%"
    448.                     remove 100 from player's balance                  
    449.                    
    450.                    
    451.                    
    452. command /vagtshop:
    453.     permission: vagt.*
    454.     trigger:
    455.         if player has permission "vagt.c":
    456.             wait 3 ticks
    457.             open chest with 1 rows named "&cVagt shop!" to player
    458.             wait 3    ticks
    459.             format slot 0 of player with iron_helmet named "&4Jernhjelm" with lore "&4Tryk for at købe!" to close then run [make player execute command "/up jh 0"]
    460.             format slot 1 of player with iron_chestplate named "&4Jernbrystplade" with lore "&4Tryk for at købe!" to close then run [make player execute command "/up jp 0"]
    461.             format slot 2 of player with iron_leggings named "&4Jernbukser" with lore "&4Tryk for at købe!" to close then run [make player execute command "/up jb 0"]
    462.             format slot 3 of player with iron_boots named "&4Jernsko" with lore "&4Tryk for at købe!" to close then run [make player execute command "/up jsk 0"]
    463.             format slot 5 of player with 16 cooked_pork named "&4Bacon" with lore "&4Tryk for at købe!" to close then run [make player execute command "/up food 0"]
    464.             format slot 6 of player with iron_sword named "&4Jernssværd" with lore "&4Tryk for at købe!" to close then run [make player execute command "/up js 0"]
    465.             format slot 7 of player with bow named "&4Bue" with lore "&4Tryk for at købe!" to close then run [make player execute command "/up bue 0"]
    466.             format slot 8 of player with 64 arrow named "&4pile" with lore "&4Tryk for at købe!" to close then run [make player execute command "/up pile 0"]          
    467.            
    468.             format a gui slot 1 of %players% with ironsword to close then run [make player execute command "/spawn"]
    469.            
    470.            
    471.            
    472.            
    473. command /fixden:
    474.     permission: vagt.*
    475.     trigger:
    476.         if player's money is between 0 and 1499:
    477.             message "&4VagtMenu &fDu har ikke råd til dette"
    478.         else if player's money is between 1500 and 10000000000000:
    479.             repair tool of player
    480.             remove 1500 from player's balance  
    481.            
     
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    1,614
    Likes Received:
    108
    Here's a weird thought, I know this may sound crazy, but give this a try.... send the errors.
    We aren't mind readers
     
  3. L

    Lil Mill Member

    Joined:
    Feb 13, 2019
    Messages:
    3
    Likes Received:
    0
    Well.. i don’t have my pc around here, but i Think it was something wrong with all the conditions
    Code (Text):
    1. Else if player is Holding a iron_sword sharpness 1:
     
  4. Vrganj

    Vrganj Active Member

    Joined:
    Dec 1, 2018
    Messages:
    32
    Likes Received:
    1
    @Lil Mill iron_sword isn't an item. Replace all 'iron_x' with 'iron x'
     
  5. L

    Lil Mill Member

    Joined:
    Feb 13, 2019
    Messages:
    3
    Likes Received:
    0
    @Vrganj omg that worked! thank you, but now i dosen't recognize the enchants..
    Code (Text):
    1. options:
    2.  
    3.     JS0: 100
    4.  
    5. on sign change:
    6.     player has permission "*":
    7.         line 1 is "VM":
    8.             set line 1 to "====================="
    9.             set line 2 to "&4Vagt"
    10.             set line 3 to "&4Menu"
    11.             set line 4 to "====================="
    12.         else:
    13.             stop
    14.     else:
    15.         stop
    16.  
    17. on click on sign:
    18.     player has permission "vagt.*":
    19.         line 2 is "&4Vagt":
    20.             line 3 is "&4Menu":
    21.                 if player is holding a iron sword of sharpness 1:
    22.                     open chest with 1 rows named "&cOpgrader dit jernsværd!" to player
    23.                     wait 3    ticks
    24.                     format slot 4 of player with glowing iron sword named "&4Jernsværd" with lore "sharpness 2" to close then run [make player execute command "/up JS 2"]
    25.                     stop
    26.                 else if player is holding a iron sword of sharpness 2:
    27.                     open chest with 1 rows named "&cOpgrader dit jernsværd!" to player
    28.                     wait 3    ticks
    29.                     format slot 4 of player with glowing iron sword named "&4Jernsværd" with lore "sharpness 3" to close then run [make player execute command "/up JS 3"]
    30.                     stop
    31.                 else if player is holding a iron sword of sharpness 3:
    32.                     open chest with 1 rows named "&cOpgrader dit jernsværd!" to player
    33.                     wait 3    ticks
    34.                     format slot 4 of player with glowing iron sword named "&4Jernsværd" with lore "sharpness 4" to close then run [make player execute command "/up JS 4"]
    35.                     stop
    36.                 else if player is holding a iron sword of sharpness 4:
    37.                     open chest with 1 rows named "&cOpgrader dit jernsværd!" to player
    38.                     wait 3    ticks
    39.                     format slot 4 of player with glowing iron sword named "&4Jernsværd" with lore "Den kan ikke opgraderes mere!" to close              
    40.                     stop
    41.                 else if player is holding a iron sword:
    42.                     open chest with 1 rows named "&cOpgrader dit jernsværd!" to player
    43.                     wait 3    ticks
    44.                     format slot 4 of player with glowing iron sword named "&4Jernsværd" with lore "sharpness 1" to close then run [make player execute command "/up JS 1"]                  
    45.                     stop
    46.                    
    47.        
    48.                 if player is holding a iron helmet of protection 1:
    49.                     open chest with 1 rows named "&cOpgrader dit jernhjelm!" to player
    50.                     wait 3    ticks
    51.                     format slot 4 of player with glowing iron helmet named "&4Jernhjelm" with lore "protection 2" to close then run [make player execute command "/up Jh 2"]
    52.                     stop
    53.                 if player is holding a iron helmet of protection 2:
    54.                     open chest with 1 rows named "&cOpgrader dit jernhjelm!" to player
    55.                     wait 3    ticks
    56.                     format slot 4 of player with glowing iron helmet named "&4Jernhjelm" with lore "protection 3" to close then run [make player execute command "/up Jh 3"]
    57.                     stop
    58.                 if player is holding a iron helmet of protection 3:
    59.                     open chest with 1 rows named "&cOpgrader dit jernhjelm!" to player
    60.                     wait 3    ticks
    61.                     format slot 4 of player with glowing iron helmet named "&4Jernhjelm" with lore "protection 4" to close then run [make player execute command "/up Jh 4"]
    62.                     stop
    63.                 if player is holding a iron helmet of protection 4:
    64.                     open chest with 1 rows named "&cOpgrader dit jernhjelm!" to player
    65.                     wait 3    ticks
    66.                     format slot 4 of player with glowing iron helmet named "&4Jernhjelm" with lore "Den kan ikke opgraderes mere!" to close              
    67.                     stop
    68.                 if player is holding a iron helmet:
    69.                     open chest with 1 rows named "&cOpgrader dit jernhjelm!" to player
    70.                     wait 3    ticks
    71.                     format slot 4 of player with glowing iron helmet named "&4Jernhjelm" with lore "protection 1" to close then run [make player execute command "/up Jh 1"]                                      
    72.                     stop
    73.                    
    74.                    
    75.                    
    76.                    
    77.                 if player is holding a iron chestplate of protection 1:
    78.                     open chest with 1 rows named "&cOpgrader dit jernbrystplade!" to player
    79.                     wait 3    ticks
    80.                     format slot 4 of player with glowing iron chestplate named "&4Jernbrystplade" with lore "protection 2" to close then run [make player execute command "/up Jp 2"]
    81.                     stop
    82.                 if player is holding a iron chestplate of protection 2:
    83.                     open chest with 1 rows named "&cOpgrader dit jernbrystplade!" to player
    84.                     wait 3    ticks
    85.                     format slot 4 of player with glowing iron chestplate named "&4Jernbrystplade" with lore "protection 3" to close then run [make player execute command "/up Jp 3"]
    86.                     stop
    87.                 if player is holding a iron chestplate of protection 3:
    88.                     open chest with 1 rows named "&cOpgrader dit jernbrystplade!" to player
    89.                     wait 3    ticks
    90.                     format slot 4 of player with glowing iron chestplate named "&4Jernbrystplade" with lore "protection 4" to close then run [make player execute command "/up Jp 4"]
    91.                     stop
    92.                 if player is holding a iron chestplate of protection 4:
    93.                     open chest with 1 rows named "&cOpgrader dit jernbrystplade!" to player
    94.                     wait 3    ticks
    95.                     format slot 4 of player with glowing iron chestplate named "&4Jernbrystplade" with lore "Den kan ikke opgraderes mere!" to close              
    96.                     stop
    97.                 if player is holding a iron chestplate:
    98.                     open chest with 1 rows named "&cOpgrader dit jernbrystplade!" to player
    99.                     wait 3    ticks
    100.                     format slot 4 of player with glowing iron chestplate named "&4Jernbrystplade" with lore "protection 1" to close then run [make player execute command "/up Jp 1"]                          
    101.                     stop
    102.                    
    103.                    
    104.                    
    105.                 if player is holding a iron leggings of protection 1:
    106.                     open chest with 1 rows named "&cOpgrader dit jernbukser!" to player
    107.                     wait 3    ticks
    108.                     format slot 4 of player with glowing iron leggings named "&4Jernbukser" with lore "protection 2" to close then run [make player execute command "/up Jb 2"]
    109.                     stop
    110.                 if player is holding a iron leggings of protection 2:
    111.                     open chest with 1 rows named "&cOpgrader dit jernbukser!" to player
    112.                     wait 3    ticks
    113.                     format slot 4 of player with glowing iron leggings named "&4Jernbukser" with lore "protection 3" to close then run [make player execute command "/up Jb 3"]
    114.                     stop
    115.                 if player is holding a iron leggings of protection 3:
    116.                     open chest with 1 rows named "&cOpgrader dit jernbukser!" to player
    117.                     wait 3    ticks
    118.                     format slot 4 of player with glowing iron leggings named "&4Jernbukser" with lore "protection 4" to close then run [make player execute command "/up Jb 4"]
    119.                     stop
    120.                 if player is holding a iron leggings of protection 4:
    121.                     open chest with 1 rows named "&cOpgrader dit jernbukser!" to player
    122.                     wait 3    ticks
    123.                     format slot 4 of player with glowing iron leggings named "&4Jernbukser" with lore "Den kan ikke opgraderes mere!" to close              
    124.                     stop
    125.                 if player is holding a iron leggings:
    126.                     open chest with 1 rows named "&cOpgrader dit jernbukser!" to player
    127.                     wait 3    ticks
    128.                     format slot 4 of player with glowing iron leggings named "&4Jernbukser" with lore "protection 1" to close then run [make player execute command "/up Jb 1"]  
    129.                     stop
    130.                    
    131.                    
    132.                    
    133.                    
    134.                 if player is holding a iron boots of protection 1:
    135.                     open chest with 1 rows named "&cOpgrader dit jernsko!" to player
    136.                     wait 3    ticks
    137.                     format slot 4 of player with glowing iron boots named "&4Jernsko" with lore "protection 2" to close then run [make player execute command "/up Jsk 2"]
    138.                     stop
    139.                 if player is holding a iron boots of protection 2:
    140.                     open chest with 1 rows named "&cOpgrader dit jernsko!" to player
    141.                     wait 3    ticks
    142.                     format slot 4 of player with glowing iron boots named "&4Jernsko" with lore "protection 3" to close then run [make player execute command "/up Jsk 3"]
    143.                     stop
    144.                 if player is holding a iron boots of protection 3:
    145.                     open chest with 1 rows named "&cOpgrader dit jernsko!" to player
    146.                     wait 3    ticks
    147.                     format slot 4 of player with glowing iron boots named "&4Jernsko" with lore "protection 4" to close then run [make player execute command "/up Jsk 4"]
    148.                     stop
    149.                 if player is holding a iron boots of protection 4:
    150.                     open chest with 1 rows named "&cOpgrader dit jernsko!" to player
    151.                     wait 3    ticks
    152.                     format slot 4 of player with glowing iron boots named "&4Jernsko" with lore "Den kan ikke opgraderes mere!" to close              
    153.                     stop
    154.                 if player is holding a iron boots:
    155.                     open chest with 1 rows named "&cOpgrader dit jernsko!" to player
    156.                     wait 3    ticks
    157.                     format slot 4 of player with glowing iron boots named "&4Jernsko" with lore "protection 1" to close then run [make player execute command "/up Jsk 1"]          
    158.                     stop
    159.                    
    160.                    
    161.                    
    162.                    
    163.                    
    164.                 if player is holding a bow of Power 1:
    165.                     open chest with 1 rows named "&cOpgrader dit Bue!" to player
    166.                     wait 3    ticks
    167.                     format slot 4 of player with glowing bow named "&4Bue" with lore "Power 2" to close then run [make player execute command "/up bue 2"]
    168.                     stop
    169.                 if player is holding a bow of Power 2:
    170.                     open chest with 1 rows named "&cOpgrader dit Bue!" to player
    171.                     wait 3    ticks
    172.                     format slot 4 of player with glowing bow named "&4Bue" with lore "Power 3" to close then run [make player execute command "/up bue 3"]
    173.                     stop
    174.                 if player is holding a bow of Power 3:
    175.                     open chest with 1 rows named "&cOpgrader dit Bue!" to player
    176.                     wait 3    ticks
    177.                     format slot 4 of player with glowing bow named "&4Bue" with lore "Power 4" to close then run [make player execute command "/up bue 4"]
    178.                     stop
    179.                 if player is holding a bow of Power 4:
    180.                     open chest with 1 rows named "&cOpgrader dit Bue!" to player
    181.                     wait 3    ticks
    182.                     format slot 4 of player with glowing bow named "&4Bue" with lore "Den kan ikke opgraderes mere!" to close              
    183.                     stop
    184.                 if player is holding a bow:
    185.                     open chest with 1 rows named "&cOpgrader dit Bue!" to player
    186.                     wait 3    ticks
    187.                     format slot 4 of player with glowing bow named "&4Bue" with lore "Power 1" to close then run [make player execute command "/up bue 1"]          
    188.                     stop
    189.                    
    190.                    
    191.                    
    192.                    
    193.  
    194.                 else:
    195.                     open chest with 1 rows named "&cVagtmenu!" to player
    196.                     wait 3    ticks
    197.                     format slot 3 of player with glowing paper named "&4Shop" to close then run [make player execute command "/vagtshop"]          
    198.                     format slot 5 of player with anvil named "&4Fix" with lore "Hold den ting du vil reparere i hånden!" to close then run [make player execute command "/fixden"]                  
    199.                     stop
    200.                
    201. command /up [<text>] [<text>]:
    202.     permission: vagt.*
    203.     trigger:
    204.         if arg 1 is "js":
    205.             if arg 2 is "0":
    206.                 if player's money is between 0 and 99:
    207.                     message "&4VagtMenu &fDu har ikke råd til dette"
    208.                 if player's money is between 100 and 10000000000000:
    209.                     give player iron sword named "&4Jernsværd" with lore "&4 Dette tilhøre %player%"
    210.                     remove 100 from player's balance
    211.             if arg 2 is "1":
    212.                 if player's money is between 0 and 99:
    213.                     message "&4VagtMenu &fDu har ikke råd til dette"
    214.                 if player's money is between 100 and 10000000000000:
    215.                     remove an iron sword from the player
    216.                     give player iron sword of sharpness 1 named "&4Jernsværd" with lore "&4 Dette tilhøre %player%"
    217.                     remove 100 from player's balance
    218.             if arg 2 is "2":
    219.                 if player's money is between 0 and 99:
    220.                     message "&4VagtMenu &fDu har ikke råd til dette"
    221.                 if player's money is between 100 and 10000000000000:
    222.                     remove an iron sword from the player
    223.                     give player iron sword of sharpness 2 named "&4Jernsværd" with lore "&4 Dette tilhøre %player%"
    224.                     remove 100 from player's balance
    225.             if arg 2 is "3":
    226.                 if player's money is between 0 and 99:
    227.                     message "&4VagtMenu &fDu har ikke råd til dette"
    228.                 if player's money is between 100 and 10000000000000:
    229.                     remove an iron sword from the player
    230.                     give player iron sword of sharpness 3 named "&4Jernsværd" with lore "&4 Dette tilhøre %player%"
    231.                     remove 100 from player's balance
    232.             if arg 2 is "4":
    233.                 if player's money is between 0 and 99:
    234.                     message "&4VagtMenu &fDu har ikke råd til dette"
    235.                 if player's money is between 100 and 10000000000000:
    236.                     remove an iron sword from the player
    237.                     give player iron sword of sharpness 4 named "&4Jernsværd" with lore "&4 Dette tilhøre %player%"
    238.                     remove 100 from player's balance
    239.  
    240.  
    241.  
    242.  
    243.         if arg 1 is "jh":
    244.             if arg 2 is "0":
    245.                 if player's money is between 0 and 99:
    246.                     message "&4VagtMenu &fDu har ikke råd til dette"
    247.                 if player's money is between 100 and 10000000000000:
    248.                     give player iron helmet named "&4Jernhjelm" with lore "&4 Dette tilhøre %player%"
    249.                     remove 100 from player's balance
    250.             if arg 2 is "1":
    251.                 if player's money is between 0 and 99:
    252.                     message "&4VagtMenu &fDu har ikke råd til dette"
    253.                 if player's money is between 100 and 10000000000000:
    254.                     remove an iron helmet from the player
    255.                     give player iron helmet of protection 1 named "&4Jernhjelm" with lore "&4 Dette tilhøre %player%"
    256.                     remove 100 from player's balance
    257.             if arg 2 is "2":
    258.                 if player's money is between 0 and 99:
    259.                     message "&4VagtMenu &fDu har ikke råd til dette"
    260.                 if player's money is between 100 and 10000000000000:
    261.                     remove an iron helmet from the player
    262.                     give player iron helmet of protection 2 named "&4Jernhjelm" with lore "&4 Dette tilhøre %player%"
    263.                     remove 100 from player's balance
    264.             if arg 2 is "3":
    265.                 if player's money is between 0 and 99:
    266.                     message "&4VagtMenu &fDu har ikke råd til dette"
    267.                 if player's money is between 100 and 10000000000000:
    268.                     remove an iron helmet from the player
    269.                     give player iron helmet of protection 3 named "&4Jernhjelm" with lore "&4 Dette tilhøre %player%"
    270.                     remove 100 from player's balance
    271.             if arg 2 is "4":
    272.                 if player's money is between 0 and 99:
    273.                     message "&4VagtMenu &fDu har ikke råd til dette"
    274.                 if player's money is between 100 and 10000000000000:
    275.                     remove an iron helmet from the player
    276.                     give player iron helmet of protection 4 named "&4Jernhjelm" with lore "&4 Dette tilhøre %player%"
    277.                     remove 100 from player's balance
    278.                    
    279.  
    280.  
    281.  
    282.         if arg 1 is "jp":
    283.             if arg 2 is "0":
    284.                 if player's money is between 0 and 99:
    285.                     message "&4VagtMenu &fDu har ikke råd til dette"
    286.                 if player's money is between 100 and 10000000000000:
    287.                     give player iron chestplate named "&4Jernbrystplade" with lore "&4 Dette tilhøre %player%"
    288.                     remove 100 from player's balance
    289.             if arg 2 is "1":
    290.                 if player's money is between 0 and 99:
    291.                     message "&4VagtMenu &fDu har ikke råd til dette"
    292.                 if player's money is between 100 and 10000000000000:
    293.                     remove an iron chestplate from the player
    294.                     give player iron chestplate of protection 1 named "&4Jernbrystplade" with lore "&4 Dette tilhøre %player%"
    295.                     remove 100 from player's balance
    296.             if arg 2 is "2":
    297.                 if player's money is between 0 and 99:
    298.                     message "&4VagtMenu &fDu har ikke råd til dette"
    299.                 if player's money is between 100 and 10000000000000:
    300.                     remove an iron chestplate from the player
    301.                     give player iron chestplate of protection 2 named "&4Jernbrystplade" with lore "&4 Dette tilhøre %player%"
    302.                     remove 100 from player's balance
    303.             if arg 2 is "3":
    304.                 if player's money is between 0 and 99:
    305.                     message "&4VagtMenu &fDu har ikke råd til dette"
    306.                 if player's money is between 100 and 10000000000000:
    307.                     remove an iron chestplate from the player
    308.                     give player iron chestplate of protection 3 named "&4Jernbrystplade" with lore "&4 Dette tilhøre %player%"
    309.                     remove 100 from player's balance
    310.             if arg 2 is "4":
    311.                 if player's money is between 0 and 99:
    312.                     message "&4VagtMenu &fDu har ikke råd til dette"
    313.                 if player's money is between 100 and 10000000000000:
    314.                     remove an iron chestplate from the player
    315.                     give player iron chestplate of protection 4 named "&4Jernbrystplade" with lore "&4 Dette tilhøre %player%"
    316.  
    317.  
    318.  
    319.  
    320.         if arg 1 is "jb":
    321.             if arg 2 is "0":
    322.                 if player's money is between 0 and 99:
    323.                     message "&4VagtMenu &fDu har ikke råd til dette"
    324.                 if player's money is between 100 and 10000000000000:
    325.                     give player iron leggings named "&4Jernbukser" with lore "&4 Dette tilhøre %player%"
    326.                     remove 100 from player's balance
    327.             if arg 2 is "1":
    328.                 if player's money is between 0 and 99:
    329.                     message "&4VagtMenu &fDu har ikke råd til dette"
    330.                 if player's money is between 100 and 10000000000000:
    331.                     remove an iron leggings from the player
    332.                     give player iron leggings of protection 1 named "&4Jernbukser" with lore "&4 Dette tilhøre %player%"
    333.                     remove 100 from player's balance
    334.             if arg 2 is "2":
    335.                 if player's money is between 0 and 99:
    336.                     message "&4VagtMenu &fDu har ikke råd til dette"
    337.                 if player's money is between 100 and 10000000000000:
    338.                     remove an iron leggings from the player
    339.                     give player iron leggings of protection 2 named "&4Jernbukser" with lore "&4 Dette tilhøre %player%"
    340.                     remove 100 from player's balance
    341.             if arg 2 is "3":
    342.                 if player's money is between 0 and 99:
    343.                     message "&4VagtMenu &fDu har ikke råd til dette"
    344.                 if player's money is between 100 and 10000000000000:
    345.                     remove an iron leggings from the player
    346.                     give player iron leggings of protection 3 named "&4Jernbukser" with lore "&4 Dette tilhøre %player%"
    347.                     remove 100 from player's balance
    348.             if arg 2 is "4":
    349.                 if player's money is between 0 and 99:
    350.                     message "&4VagtMenu &fDu har ikke råd til dette"
    351.                 if player's money is between 100 and 10000000000000:
    352.                     remove an iron leggings from the player
    353.                     give player iron leggings of protection 4 named "&4Jernbukser" with lore "&4 Dette tilhøre %player%"
    354.                    
    355.                    
    356.                    
    357.                    
    358.                    
    359.         if arg 1 is "jsk":
    360.             if arg 2 is "0":
    361.                 if player's money is between 0 and 99:
    362.                     message "&4VagtMenu &fDu har ikke råd til dette"
    363.                 if player's money is between 100 and 10000000000000:
    364.                     give player iron boots named "&4Jernsko" with lore "&4 Dette tilhøre %player%"
    365.                     remove 100 from player's balance
    366.             if arg 2 is "1":
    367.                 if player's money is between 0 and 99:
    368.                     message "&4VagtMenu &fDu har ikke råd til dette"
    369.                 if player's money is between 100 and 10000000000000:
    370.                     remove an iron boots from the player
    371.                     give player iron boots of protection 1 named "&4Jernsko" with lore "&4 Dette tilhøre %player%"
    372.                     remove 100 from player's balance
    373.             if arg 2 is "2":
    374.                 if player's money is between 0 and 99:
    375.                     message "&4VagtMenu &fDu har ikke råd til dette"
    376.                 if player's money is between 100 and 10000000000000:
    377.                     remove an iron boots from the player
    378.                     give player iron boots of protection 2 named "&4Jernsko" with lore "&4 Dette tilhøre %player%"
    379.                     remove 100 from player's balance
    380.             if arg 2 is "3":
    381.                 if player's money is between 0 and 99:
    382.                     message "&4VagtMenu &fDu har ikke råd til dette"
    383.                 if player's money is between 100 and 10000000000000:
    384.                     remove an iron boots from the player
    385.                     give player iron boots of protection 3 named "&4Jernsko" with lore "&4 Dette tilhøre %player%"
    386.                     remove 100 from player's balance
    387.             if arg 2 is "4":
    388.                 if player's money is between 0 and 99:
    389.                     message "&4VagtMenu &fDu har ikke råd til dette"
    390.                 if player's money is between 100 and 10000000000000:
    391.                     remove an iron boots from the player
    392.                     give player iron boots of protection 4 named "&4Jernsko" with lore "&4 Dette tilhøre %player%"
    393.                    
    394.                    
    395.                    
    396.         if arg 1 is "food":
    397.             if arg 2 is "0":
    398.                 if player's money is between 0 and 99:
    399.                     message "&4VagtMenu &fDu har ikke råd til dette"
    400.                 if player's money is between 100 and 10000000000000:
    401.                     give player 16 cooked pork named "&4Bacon" with lore "&4 Dette tilhøre %player%"
    402.                     remove 100 from player's balance
    403.                    
    404.                    
    405.                    
    406.         if arg 1 is "bue":
    407.             if arg 2 is "0":
    408.                 if player's money is between 0 and 99:
    409.                     message "&4VagtMenu &fDu har ikke råd til dette"
    410.                 if player's money is between 100 and 10000000000000:
    411.                     give player bow named "&4bue" with lore "&4 Dette tilhøre %player%"
    412.                     remove 100 from player's balance
    413.             if arg 2 is "1":
    414.                 if player's money is between 0 and 99:
    415.                     message "&4VagtMenu &fDu har ikke råd til dette"
    416.                 if player's money is between 100 and 10000000000000:
    417.                     remove an bow from the player
    418.                     give player bow of power 1 named "&4bue" with lore "&4 Dette tilhøre %player%"
    419.                     remove 100 from player's balance
    420.             if arg 2 is "2":
    421.                 if player's money is between 0 and 99:
    422.                     message "&4VagtMenu &fDu har ikke råd til dette"
    423.                 if player's money is between 100 and 10000000000000:
    424.                     remove an bow from the player
    425.                     give player bow of power 2 named "&4bue" with lore "&4 Dette tilhøre %player%"
    426.                     remove 100 from player's balance
    427.             if arg 2 is "3":
    428.                 if player's money is between 0 and 99:
    429.                     message "&4VagtMenu &fDu har ikke råd til dette"
    430.                 if player's money is between 100 and 10000000000000:
    431.                     remove an bow from the player
    432.                     give player bow of power 3 named "&4bue" with lore "&4 Dette tilhøre %player%"
    433.                     remove 100 from player's balance
    434.             if arg 2 is "4":
    435.                 if player's money is between 0 and 99:
    436.                     message "&4VagtMenu &fDu har ikke råd til dette"
    437.                 if player's money is between 100 and 10000000000000:
    438.                     remove an bow from the player
    439.                     give player bow of power 4 named "&4bue" with lore "&4 Dette tilhøre %player%"
    440.  
    441.  
    442.  
    443.  
    444.         if arg 1 is "pile":
    445.             if arg 2 is "0":
    446.                 if player's money is between 0 and 99:
    447.                     message "&4VagtMenu &fDu har ikke råd til dette"
    448.                 if player's money is between 100 and 10000000000000:
    449.                     give player 64 arrow named "&4Pile" with lore "&4 Dette tilhøre %player%"
    450.                     remove 100 from player's balance                  
    451.                    
    452.                    
    453.                    
    454. command /vagtshop:
    455.     permission: vagt.*
    456.     trigger:
    457.         if player has permission "vagt.c":
    458.             wait 3 ticks
    459.             open chest with 1 rows named "&cVagt shop!" to player
    460.             wait 3    ticks
    461.             format slot 0 of player with iron helmet named "&4Jernhjelm" with lore "&4Tryk for at købe!" to close then run [make player execute command "/up jh 0"]
    462.             format slot 1 of player with iron chestplate named "&4Jernbrystplade" with lore "&4Tryk for at købe!" to close then run [make player execute command "/up jp 0"]
    463.             format slot 2 of player with iron leggings named "&4Jernbukser" with lore "&4Tryk for at købe!" to close then run [make player execute command "/up jb 0"]
    464.             format slot 3 of player with iron boots named "&4Jernsko" with lore "&4Tryk for at købe!" to close then run [make player execute command "/up jsk 0"]
    465.             format slot 5 of player with 16 cooked pork named "&4Bacon" with lore "&4Tryk for at købe!" to close then run [make player execute command "/up food 0"]
    466.             format slot 6 of player with iron sword named "&4Jernssværd" with lore "&4Tryk for at købe!" to close then run [make player execute command "/up js 0"]
    467.             format slot 7 of player with bow named "&4Bue" with lore "&4Tryk for at købe!" to close then run [make player execute command "/up bue 0"]
    468.             format slot 8 of player with 64 arrow named "&4pile" with lore "&4Tryk for at købe!" to close then run [make player execute command "/up pile 0"]          
    469.            
    470.            
    471.            
    472.            
    473.            
    474. command /fixden:
    475.     permission: vagt.*
    476.     trigger:
    477.         if player's money is between 0 and 1499:
    478.             message "&4VagtMenu &fDu har ikke råd til dette"
    479.         if player's money is between 1500 and 10000000000000:
    480.             repair tool of player
    481.             remove 1500 from player's balance  
    482.            
    same code, but with your sugested fixeses
     
Loading...