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 276 errors with format slot

Discussion in 'Skript' started by Philotastisch, Aug 31, 2020.

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

    Philotastisch Member

    Joined:
    Sep 25, 2019
    Messages:
    45
    Likes Received:
    0
    Hello,
    i have upgraded my server to a different version (1.12.2) and get an error like this:

    Code (Text):
    1. Cant understand this condition/effect: format slot 26 of player with gray stained glass pane named "&f" to be unstealable
    Installed Skript Version: 2.2-dev25
    Installed Addons and Versions: skRayFall (1.9.21), Skellett (1.9.9), SkQuery (4.0)

    Skript:
    Code (Text):
    1. options:
    2.     prefix: &6System &8»
    3.  
    4. command /spawn:
    5.     trigger:
    6.         teleport player to {spawn}
    7.  
    8. command /setspawn:
    9.     permission: citybuild.setup
    10.     trigger:
    11.         set {spawn} to player's location
    12.  
    13. on hunger meter change:
    14.     if {nohunger.%player%} is true:
    15.         cancel event
    16.         set player's food level to 10
    17.  
    18. command /warp [<text>]:
    19.     trigger:
    20.         if arg 1 is not set:
    21.             message "{@prefix} &7Benutzung: &e/warp <Farmwelt, Spawn, Nether>"
    22.             stop
    23.         if arg 1 is "farmwelt":
    24.             execute player command "rwg randomtp fw"
    25.             message "{@prefix} &7Du wurdest zur &eFarmwelt &7teleportiert."
    26.             stop
    27.         if arg 1 is "spawn":
    28.             message "{@prefix} &7Du wurdest zum &bSpawn &7teleportiert."
    29.             stop
    30.         if arg 1 is "nether":
    31.             execute player command "rtp nether"
    32.             message "{@prefix} &7Du wurdest zum &cNether &7teleportiert."
    33.             stop
    34.         message "{@prefix} &7Benutzung: &e/warp <Farmwelt, Spawn, Nether>"
    35.         stop
    36.  
    37. on break:
    38.     if event-block is spawner:
    39.         drop 1 of spawner at event-block's location
    40.  
    41. on join:
    42.     set player's flight mode to false
    43.     set {nofall.%player%} to false
    44.     set {nofire.%player%} to false
    45.     set {nowaterdamage.%player%} to false
    46.     set {nohunger.%player%} to false
    47.     if {haste.%player%} is true:
    48.         set {haste.%player%} to false
    49.         remove haste from the player
    50.     if {speed.%player%} is true:
    51.         set {speed.%player%} to false
    52.         remove speed from the player
    53.     set {fly.%player%} to false
    54.  
    55. on quit:
    56.     set player's flight mode to false
    57.     set {nofall.%player%} to false
    58.     set {nowaterdamage.%player%} to false
    59.     set {nofire.%player%} to false
    60.     set {nohunger.%player%} to false
    61.     if {haste.%player%} is true:
    62.         set {haste.%player%} to false
    63.         remove haste from the player
    64.     if {speed.%player%} is true:
    65.         set {speed.%player%} to false
    66.         remove speed from the player
    67.     set {fly.%player%} to false
    68.  
    69. on join:
    70.     set join message to ""
    71.  
    72. on quit:
    73.     set quit message to ""
    74.  
    75. every 1 ticks:
    76.     loop all players:
    77.         if {haste.%loop-player%} is true:
    78.             apply haste to loop-player for 3 ticks
    79.         if {speed.%loop-player%} is true:
    80.             apply speed to loop-player for 3 ticks
    81.  
    82. on damage:
    83.     if damage cause is drowning:
    84.         if {nowaterdamage.%victim%} is true:
    85.             cancel event
    86.     if damage cause is burning:
    87.         if {nofire.%victim%} is true:
    88.             cancel event
    89.     if damage cause is fall:
    90.         if {nofall.%victim%} is true:
    91.             cancel event
    92.  
    93. on join:
    94.     wait 5 ticks
    95.     teleport player to {spawn}
    96.  
    97. command /perks [<text>] [<text>] [<text>]:
    98.     trigger:
    99.         if arg 1 is not set:
    100.             wait 2 ticks
    101.             open chest with 4 rows named "&bPerks" to player
    102.             wait 1 ticks
    103.             format slot 0 of player with barrier named "&cKein Fallschaden - Nicht in Besitz" to be unstealable then run [execute player command "perks buy nofall"]
    104.             format slot 1 of player with light blue stained glass pane named "&f" to be unstealable
    105.             format slot 2 of player with light blue stained glass pane named "&f" to be unstealable
    106.             format slot 3 of player with light blue stained glass pane named "&f" to be unstealable
    107.             format slot 4 of player with barrier named "&cKein Feuerschaden - Nicht in Besitz" to be unstealable then run [execute player command "perks buy nofire"]
    108.             format slot 5 of player with light blue stained glass pane named "&f" to be unstealable
    109.             format slot 6 of player with light blue stained glass pane named "&f" to be unstealable
    110.             format slot 7 of player with light blue stained glass pane named "&f" to be unstealable
    111.             format slot 8 of player with barrier named "&cAbbau Geschwindigkeit - Nicht in Besitz" with lore "" to be unstealable then run [execute player command "perks buy haste"]
    112.             format slot 9 of player with light blue stained glass pane named "&f" to be unstealable
    113.             format slot 10 of player with light blue stained glass pane named "&f" to be unstealable
    114.             format slot 11 of player with red stained glass pane named "&f" to be unstealable
    115.             format slot 12 of player with light blue stained glass pane named "&f" to be unstealable
    116.             format slot 13 of player with light blue stained glass pane named "&f" to be unstealable
    117.             format slot 14 of player with light blue stained glass pane named "&f" to be unstealable
    118.             format slot 15 of player with barrier named "&cKein Ertrinken - Nicht in Besitz" to be unstealable then run [execute player command "perks buy nowaterdamage"]
    119.             format slot 16 of player with light blue stained glass pane named "&f" to be unstealable
    120.             format slot 17 of player with light blue stained glass pane named "&f" to be unstealable
    121.             format slot 18 of player with light blue stained glass pane named "&f" to be unstealable
    122.             format slot 19 of player with light blue stained glass pane named "&f" to be unstealable
    123.             format slot 20 of player with red stained glass pane named "&f" to be unstealable
    124.             format slot 21 of player with light blue stained glass pane named "&f" to be unstealable
    125.             format slot 22 of player with light blue stained glass pane named "&f" to be unstealable
    126.             format slot 23 of player with light blue stained glass pane named "&f" to be unstealable
    127.             format slot 24 of player with red stained glass pane named "&f" to be unstealable
    128.             format slot 25 of player with light blue stained glass pane named "&f" to be unstealable
    129.             format slot 26 of player with light blue stained glass pane named "&f" to be unstealable
    130.             format slot 27 of player with barrier named "&cGeschwindigkeit - Nicht in Besitz" to be unstealable then run [execute player command "perks buy speed"]
    131.             format slot 28 of player with light blue stained glass pane named "&f" to be unstealable
    132.             format slot 29 of player with light blue stained glass pane named "&f" to be unstealable
    133.             format slot 30 of player with light blue stained glass pane named "&f" to be unstealable
    134.             format slot 31 of player with barrier named "&cFly - Nicht in Besitz" to be unstealable then run [execute player command "perks buy fly"]
    135.             format slot 32 of player with light blue stained glass pane named "&f" to be unstealable
    136.             format slot 33 of player with light blue stained glass pane named "&f" to be unstealable
    137.             format slot 34 of player with light blue stained glass pane named "&f" to be unstealable
    138.             format slot 35 of player with barrier named "&cKein Hunger - Nicht in Besitz" to be unstealable then run [execute player command "perks buy nohunger"]
    139.             if player has permission "citybuild.perk.nofalldamage":
    140.                 format slot 0 of player with rabbit foot named "&eKein Fallschaden" to be unstealable then run [execute player command "perks toggle nofall"]
    141.                 if {nofall.%player%} is true:
    142.                     format slot 0 of player with glowing rabbit foot named "&eKein Fallschaden" to be unstealable then run [execute player command "perks toggle nofall"]
    143.             if player has permission "citybuild.perk.nofiredamage":
    144.                 format slot 4 of player with flint and steel named "&eKein Feuerschaden" to be unstealable then run [execute player command "perks toggle nofire"]
    145.                 if {nofire.%player%} is true:
    146.                     format slot 4 of player with glowing flint and steel named "&eKein Feuerschaden" to be unstealable then run [execute player command "perks toggle nofire"]
    147.             if player has permission "citybuild.perk.haste":
    148.                 format slot 8 of player with emerald named "&eAbbau Geschwindigkeit" to be unstealable then run [execute player command "perks toggle haste"]
    149.                 if {haste.%player%} is true:
    150.                     format slot 8 of player with glowing emerald named "&eAbbau Geschwindigkeit" to close then run [execute player command "perks toggle haste"]
    151.             if player has permission "citybuild.perk.nowaterdamage":
    152.                 format slot 15 of player with sponge named "&eKein Ertrinken" to be unstealable then run [execute player command "perks toggle nowaterdamage"]
    153.                 if {nowaterdamage.%player%} is true:
    154.                     format slot 15 of player with glowing wet sponge named "&eKein Ertrinken" to be unstealable then run [execute player command "perks toggle nowaterdamage"]
    155.             if player has permission "citybuild.perk.speed":
    156.                 format slot 27 of player with nether star named "&eGeschwindigkeit" to be unstealable then run [execute player command "perks toggle speed"]
    157.                 if {speed.%player%} is true:
    158.                     format slot 27 of player with glowing nether star named "&eGeschwindigkeit" to be unstealable then run [execute player command "perks toggle speed"]
    159.             if player has permission "citybuild.perk.fly":
    160.                 format slot 31 of player with feather named "&eFly" to be unstealable then run [execute player command "perks toggle fly"]
    161.                 if {fly.%player%} is true:
    162.                     format slot 31 of player with glowing feather named "&eFly" to be unstealable then run [execute player command "perks toggle fly"]
    163.             if player has permission "citybuild.perk.nohunger":
    164.                 format slot 35 of player with wheat named "&eKein Hunger" to be unstealable then run [execute player command "perks toggle nohunger"]
    165.                 if {nohunger.%player%} is true:
    166.                     format slot 35 of player with glowing wheat named "&eKein Hunger" to be unstealable then run [execute player command "perks toggle nohunger"]
    167.             stop
    168.         if arg 1 is "toggle":
    169.             if arg 2 is "nohunger":
    170.                 if player doesn't have permission "citybuild.perk.nohunger":
    171.                     stop
    172.                 if {nohunger.%player%} is true:
    173.                     set {nohunger.%player%} to false
    174.                     message "{@prefix} &7Fly &cdeaktiviert&7."
    175.                     execute player command "perks"
    176.                     stop
    177.                 set {nohunger.%player%} to true
    178.                 message "{@prefix} &7Fly &aaktiviert&7."
    179.                 execute player command "perks"
    180.                 stop
    181.             if arg 2 is "fly":
    182.                 if player doesn't have permission "citybuild.perk.fly":
    183.                     stop
    184.                 if {fly.%player%} is true:
    185.                     set {fly.%player%} to false
    186.                     message "{@prefix} &7Fly &cdeaktiviert&7."
    187.                     execute player command "perks"
    188.                     set player's flight mode to false
    189.                     stop
    190.                 set {fly.%player%} to true
    191.                 message "{@prefix} &7Fly &aaktiviert&7."
    192.                 execute player command "perks"
    193.                 set player's flight mode to true
    194.                 stop
    195.             if arg 2 is "speed":
    196.                 if player doesn't have permission "citybuild.perk.speed":
    197.                     stop
    198.                 if {speed.%player%} is true:
    199.                     set {speed.%player%} to false
    200.                     message "{@prefix} &7Geschwindigkeit &cdeaktiviert&7."
    201.                     execute player command "perks"
    202.                     remove speed from the player
    203.                     stop
    204.                 set {speed.%player%} to true
    205.                 message "{@prefix} &7Geschwindigkeit &aaktiviert&7."
    206.                 execute player command "perks"
    207.                 stop
    208.             if arg 2 is "nowaterdamage":
    209.                 if player doesn't have permission "citybuild.perk.nowaterdamage":
    210.                     stop
    211.                 if {nowaterdamage.%player%} is true:
    212.                     set {nowaterdamage.%player%} to false
    213.                     message "{@prefix} &7Kein Wasserschaden &cdeaktiviert&7."
    214.                     execute player command "perks"
    215.                     stop
    216.                 set {nowaterdamage.%player%} to true
    217.                 message "{@prefix} &7Kein Wasserschaden &aaktiviert&7."
    218.                 execute player command "perks"
    219.                 stop
    220.             if arg 2 is "haste":
    221.                 if player doesn't have permission "citybuild.perk.haste":
    222.                     stop
    223.                 if {haste.%player%} is true:
    224.                     set {haste.%player%} to false
    225.                     message "{@prefix} &7Abbau Geschwindigkeit &cdeaktiviert&7."
    226.                     execute player command "perks"
    227.                     remove haste from the player
    228.                     stop
    229.                 set {haste.%player%} to true
    230.                 message "{@prefix} &7Abbau Geschwindidkeit &aaktiviert&7."
    231.                 execute player command "perks"
    232.                 stop
    233.             if arg 2 is "nofire":
    234.                 if player doesn't have permission "citybuild.perk.nofiredamage":
    235.                     stop
    236.                 if {nofire.%player%} is true:
    237.                     set {nofire.%player%} to false
    238.                     message "{@prefix} &7Kein Feuerschaden &cdeaktiviert&7."
    239.                     execute player command "perks"
    240.                     stop
    241.                 set {nofire.%player%} to true
    242.                 message "{@prefix} &7Kein Feuerschaden &aaktiviert&7."
    243.                 execute player command "perks"
    244.                 stop
    245.             if arg 2 is "nofall":
    246.                 if player doesn't have permission "citybuild.perk.nofalldamage":
    247.                     stop
    248.                 if {nofall.%player%} is true:
    249.                     set {nofall.%player%} to false
    250.                     message "{@prefix} &7Kein Fallschaden &cdeaktiviert&7."
    251.                     execute player command "perks"
    252.                     stop
    253.                 set {nofall.%player%} to true
    254.                 message "{@prefix} &7Kein Fallschaden &aaktiviert&7."
    255.                 execute player command "perks"
    256.                 stop
    257.         if arg 1 is "buy":
    258.             if arg 2 is "nohunger":
    259.                 if arg 3 is "confirm":
    260.                     if player's money is greater than 119999:
    261.                         remove 120000 from player's money
    262.                         execute console command "lp user %player% permission set citybuild.perk.nohunger true"
    263.                         message "{@prefix} &7Du hast erfolgreich das Perk gekauft!"
    264.                         stop
    265.                     message "{@prefix} &7Du hast nicht genügend Geld."
    266.                     stop
    267.                 if arg 3 is "cancel":
    268.                     message "{@prefix} &7Der Kauf wurde abgebrochen."
    269.                     stop
    270.                 if arg 3 is not set:
    271.                     wait 2 ticks
    272.                     open chest with 3 rows named "&bPerks" to player
    273.                     wait 1 ticks
    274.                     format slot 0 of player with black stained glass pane named "&f" to be unstealable
    275.                     format slot 1 of player with black stained glass pane named "&f" to be unstealable
    276.                     format slot 2 of player with black stained glass pane named "&f" to be unstealable
    277.                     format slot 3 of player with black stained glass pane named "&f" to be unstealable
    278.                     format slot 4 of player with paper named "&eBestätige den Kauf in höhe von 120.000$" to be unstealable
    279.                     format slot 5 of player with black stained glass pane named "&f" to be unstealable
    280.                     format slot 6 of player with black stained glass pane named "&f" to be unstealable
    281.                     format slot 7 of player with black stained glass pane named "&f" to be unstealable
    282.                     format slot 8 of player with black stained glass pane named "&f" to be unstealable
    283.                     format slot 9 of player with black stained glass pane named "&f" to be unstealable
    284.                     format slot 10 of player with lime stained glass pane named "&aBestätigen" to be unstealable then run [execute player command "perks buy nohunger confirm"]
    285.                     format slot 11 of player with lime stained glass pane named "&aBestätigen" to be unstealable then run [execute player command "perks buy nohunger confirm"]
    286.                     format slot 12 of player with lime stained glass pane named "&aBestätigen" to be unstealable then run [execute player command "perks buy nohunger confirm"]
    287.                     format slot 13 of player with black stained glass pane named "&f" to be unstealable
    288.                     format slot 14 of player with red stained glass pane named "&cAbbrechen" to be unstealable then run [execute player command "perks buy nohunger cancel"]
    289.                     format slot 15 of player with red stained glass pane named "&cAbbrechen" to be unstealable then run [execute player command "perks buy nohunger cancel"]
    290.                     format slot 16 of player with red stained glass pane named "&cAbbrechen" to be unstealable then run [execute player command "perks buy nohunger cancel"]
    291.                     format slot 17 of player with black stained glass pane named "&f" to be unstealable
    292.                     format slot 18 of player with black stained glass pane named "&f" to be unstealable
    293.                     format slot 19 of player with black stained glass pane named "&f" to be unstealable
    294.                     format slot 20 of player with black stained glass pane named "&f" to be unstealable
    295.                     format slot 21 of player with black stained glass pane named "&f" to be unstealable
    296.                     format slot 22 of player with black stained glass pane named "&f" to be unstealable
    297.                     format slot 23 of player with black stained glass pane named "&f" to be unstealable
    298.                     format slot 24 of player with black stained glass pane named "&f" to be unstealable
    299.                     format slot 25 of player with black stained glass pane named "&f" to be unstealable
    300.                     format slot 26 of player with black stained glass pane named "&f" to be unstealable
    301.                     stop
    302.             if arg 2 is "fly":
    303.                 if arg 3 is "confirm":
    304.                     if player's money is greater than 374999:
    305.                         remove 375000 from player's money
    306.                         execute console command "lp user %player% permission set citybuild.perk.fly true"
    307.                         message "{@prefix} &7Du hast erfolgreich das Perk gekauft!"
    308.                         stop
    309.                     message "{@prefix} &7Du hast nicht genügend Geld."
    310.                     stop
    311.                 if arg 3 is "cancel":
    312.                     message "{@prefix} &7Der Kauf wurde abgebrochen."
    313.                     stop
    314.                 if arg 3 is not set:
    315.                     wait 2 ticks
    316.                     open chest with 3 rows named "&bPerks" to player
    317.                     wait 1 ticks
    318.                     format slot 0 of player with black stained glass pane named "&f" to be unstealable
    319.                     format slot 1 of player with black stained glass pane named "&f" to be unstealable
    320.                     format slot 2 of player with black stained glass pane named "&f" to be unstealable
    321.                     format slot 3 of player with black stained glass pane named "&f" to be unstealable
    322.                     format slot 4 of player with paper named "&eBestätige den Kauf in höhe von 375.000$" to be unstealable
    323.                     format slot 5 of player with black stained glass pane named "&f" to be unstealable
    324.                     format slot 6 of player with black stained glass pane named "&f" to be unstealable
    325.                     format slot 7 of player with black stained glass pane named "&f" to be unstealable
    326.                     format slot 8 of player with black stained glass pane named "&f" to be unstealable
    327.                     format slot 9 of player with black stained glass pane named "&f" to be unstealable
    328.                     format slot 10 of player with lime stained glass pane named "&aBestätigen" to be unstealable then run [execute player command "perks buy fly confirm"]
    329.                     format slot 11 of player with lime stained glass pane named "&aBestätigen" to be unstealable then run [execute player command "perks buy fly confirm"]
    330.                     format slot 12 of player with lime stained glass pane named "&aBestätigen" to be unstealable then run [execute player command "perks buy fly confirm"]
    331.                     format slot 13 of player with black stained glass pane named "&f" to be unstealable
    332.                     format slot 14 of player with red stained glass pane named "&cAbbrechen" to be unstealable then run [execute player command "perks buy fly cancel"]
    333.                     format slot 15 of player with red stained glass pane named "&cAbbrechen" to be unstealable then run [execute player command "perks buy fly cancel"]
    334.                     format slot 16 of player with red stained glass pane named "&cAbbrechen" to be unstealable then run [execute player command "perks buy fly cancel"]
    335.                     format slot 17 of player with black stained glass pane named "&f" to be unstealable
    336.                     format slot 18 of player with black stained glass pane named "&f" to be unstealable
    337.                     format slot 19 of player with black stained glass pane named "&f" to be unstealable
    338.                     format slot 20 of player with black stained glass pane named "&f" to be unstealable
    339.                     format slot 21 of player with black stained glass pane named "&f" to be unstealable
    340.                     format slot 22 of player with black stained glass pane named "&f" to be unstealable
    341.                     format slot 23 of player with black stained glass pane named "&f" to be unstealable
    342.                     format slot 24 of player with black stained glass pane named "&f" to be unstealable
    343.                     format slot 25 of player with black stained glass pane named "&f" to be unstealable
    344.                     format slot 26 of player with black stained glass pane named "&f" to be unstealable
    345.                     stop
    346.             if arg 2 is "speed":
    347.                 if arg 3 is "confirm":
    348.                     if player's money is greater than 149999:
    349.                         remove 150000 from player's money
    350.                         execute console command "lp user %player% permission set citybuild.perk.speed true"
    351.                         message "{@prefix} &7Du hast erfolgreich das Perk gekauft!"
    352.                         stop
    353.                     message "{@prefix} &7Du hast nicht genügend Geld."
    354.                     stop
    355.                 if arg 3 is "cancel":
    356.                     message "{@prefix} &7Der Kauf wurde abgebrochen."
    357.                     stop
    358.                 if arg 3 is not set:
    359.                     wait 2 ticks
    360.                     open chest with 3 rows named "&bPerks" to player
    361.                     wait 1 ticks
    362.                     format slot 0 of player with black stained glass pane named "&f" to be unstealable
    363.                     format slot 1 of player with black stained glass pane named "&f" to be unstealable
    364.                     format slot 2 of player with black stained glass pane named "&f" to be unstealable
    365.                     format slot 3 of player with black stained glass pane named "&f" to be unstealable
    366.                     format slot 4 of player with paper named "&eBestätige den Kauf in höhe von 150.000$" to be unstealable
    367.                     format slot 5 of player with black stained glass pane named "&f" to be unstealable
    368.                     format slot 6 of player with black stained glass pane named "&f" to be unstealable
    369.                     format slot 7 of player with black stained glass pane named "&f" to be unstealable
    370.                     format slot 8 of player with black stained glass pane named "&f" to be unstealable
    371.                     format slot 9 of player with black stained glass pane named "&f" to be unstealable
    372.                     format slot 10 of player with lime stained glass pane named "&aBestätigen" to be unstealable then run [execute player command "perks buy speed confirm"]
    373.                     format slot 11 of player with lime stained glass pane named "&aBestätigen" to be unstealable then run [execute player command "perks buy speed confirm"]
    374.                     format slot 12 of player with lime stained glass pane named "&aBestätigen" to be unstealable then run [execute player command "perks buy speed confirm"]
    375.                     format slot 13 of player with black stained glass pane named "&f" to be unstealable
    376.                     format slot 14 of player with red stained glass pane named "&cAbbrechen" to be unstealable then run [execute player command "perks buy speed cancel"]
    377.                     format slot 15 of player with red stained glass pane named "&cAbbrechen" to be unstealable then run [execute player command "perks buy speed cancel"]
    378.                     format slot 16 of player with red stained glass pane named "&cAbbrechen" to be unstealable then run [execute player command "perks buy speed cancel"]
    379.                     format slot 17 of player with black stained glass pane named "&f" to be unstealable
    380.                     format slot 18 of player with black stained glass pane named "&f" to be unstealable
    381.                     format slot 19 of player with black stained glass pane named "&f" to be unstealable
    382.                     format slot 20 of player with black stained glass pane named "&f" to be unstealable
    383.                     format slot 21 of player with black stained glass pane named "&f" to be unstealable
    384.                     format slot 22 of player with black stained glass pane named "&f" to be unstealable
    385.                     format slot 23 of player with black stained glass pane named "&f" to be unstealable
    386.                     format slot 24 of player with black stained glass pane named "&f" to be unstealable
    387.                     format slot 25 of player with black stained glass pane named "&f" to be unstealable
    388.                     format slot 26 of player with black stained glass pane named "&f" to be unstealable
    389.                     stop
    390.             if arg 2 is "nowaterdamage":
    391.                 if arg 3 is "confirm":
    392.                     if player's money is greater than 79999:
    393.                         remove 80000 from player's money
    394.                         execute console command "lp user %player% permission set citybuild.perk.nowaterdamage true"
    395.                         message "{@prefix} &7Du hast erfolgreich das Perk gekauft!"
    396.                         stop
    397.                     message "{@prefix} &7Du hast nicht genügend Geld."
    398.                     stop
    399.                 if arg 3 is "cancel":
    400.                     message "{@prefix} &7Der Kauf wurde abgebrochen."
    401.                     stop
    402.                 if arg 3 is not set:
    403.                     wait 2 ticks
    404.                     open chest with 3 rows named "&bPerks" to player
    405.                     wait 1 ticks
    406.                     format slot 0 of player with black stained glass pane named "&f" to be unstealable
    407.                     format slot 1 of player with black stained glass pane named "&f" to be unstealable
    408.                     format slot 2 of player with black stained glass pane named "&f" to be unstealable
    409.                     format slot 3 of player with black stained glass pane named "&f" to be unstealable
    410.                     format slot 4 of player with paper named "&eBestätige den Kauf in höhe von 80.000$" to be unstealable
    411.                     format slot 5 of player with black stained glass pane named "&f" to be unstealable
    412.                     format slot 6 of player with black stained glass pane named "&f" to be unstealable
    413.                     format slot 7 of player with black stained glass pane named "&f" to be unstealable
    414.                     format slot 8 of player with black stained glass pane named "&f" to be unstealable
    415.                     format slot 9 of player with black stained glass pane named "&f" to be unstealable
    416.                     format slot 10 of player with lime stained glass pane named "&aBestätigen" to be unstealable then run [execute player command "perks buy nowaterdamage confirm"]
    417.                     format slot 11 of player with lime stained glass pane named "&aBestätigen" to be unstealable then run [execute player command "perks buy nowaterdamage confirm"]
    418.                     format slot 12 of player with lime stained glass pane named "&aBestätigen" to be unstealable then run [execute player command "perks buy nowaterdamage confirm"]
    419.                     format slot 13 of player with black stained glass pane named "&f" to be unstealable
    420.                     format slot 14 of player with red stained glass pane named "&cAbbrechen" to be unstealable then run [execute player command "perks buy nowaterdamage cancel"]
    421.                     format slot 15 of player with red stained glass pane named "&cAbbrechen" to be unstealable then run [execute player command "perks buy nowaterdamage cancel"]
    422.                     format slot 16 of player with red stained glass pane named "&cAbbrechen" to be unstealable then run [execute player command "perks buy nowaterdamage cancel"]
    423.                     format slot 17 of player with black stained glass pane named "&f" to be unstealable
    424.                     format slot 18 of player with black stained glass pane named "&f" to be unstealable
    425.                     format slot 19 of player with black stained glass pane named "&f" to be unstealable
    426.                     format slot 20 of player with black stained glass pane named "&f" to be unstealable
    427.                     format slot 21 of player with black stained glass pane named "&f" to be unstealable
    428.                     format slot 22 of player with black stained glass pane named "&f" to be unstealable
    429.                     format slot 23 of player with black stained glass pane named "&f" to be unstealable
    430.                     format slot 24 of player with black stained glass pane named "&f" to be unstealable
    431.                     format slot 25 of player with black stained glass pane named "&f" to be unstealable
    432.                     format slot 26 of player with black stained glass pane named "&f" to be unstealable
    433.                     stop
    434.             if arg 2 is "haste":
    435.                 if arg 3 is "confirm":
    436.                     if player's money is greater than 64999:
    437.                         remove 65000 from player's money
    438.                         execute console command "lp user %player% permission set citybuild.perk.haste true"
    439.                         message "{@prefix} &7Du hast erfolgreich das Perk gekauft!"
    440.                         stop
    441.                     message "{@prefix} &7Du hast nicht genügend Geld."
    442.                     stop
    443.                 if arg 3 is "cancel":
    444.                     message "{@prefix} &7Der Kauf wurde abgebrochen."
    445.                     stop
    446.                 if arg 3 is not set:
    447.                     wait 2 ticks
    448.                     open chest with 3 rows named "&bPerks" to player
    449.                     wait 1 ticks
    450.                     format slot 0 of player with black stained glass pane named "&f" to be unstealable
    451.                     format slot 1 of player with black stained glass pane named "&f" to be unstealable
    452.                     format slot 2 of player with black stained glass pane named "&f" to be unstealable
    453.                     format slot 3 of player with black stained glass pane named "&f" to be unstealable
    454.                     format slot 4 of player with paper named "&eBestätige den Kauf in höhe von 65.000$" to be unstealable
    455.                     format slot 5 of player with black stained glass pane named "&f" to be unstealable
    456.                     format slot 6 of player with black stained glass pane named "&f" to be unstealable
    457.                     format slot 7 of player with black stained glass pane named "&f" to be unstealable
    458.                     format slot 8 of player with black stained glass pane named "&f" to be unstealable
    459.                     format slot 9 of player with black stained glass pane named "&f" to be unstealable
    460.                     format slot 10 of player with lime stained glass pane named "&aBestätigen" to be unstealable then run [execute player command "perks buy haste confirm"]
    461.                     format slot 11 of player with lime stained glass pane named "&aBestätigen" to be unstealable then run [execute player command "perks buy haste confirm"]
    462.                     format slot 12 of player with lime stained glass pane named "&aBestätigen" to be unstealable then run [execute player command "perks buy haste confirm"]
    463.                     format slot 13 of player with black stained glass pane named "&f" to be unstealable
    464.                     format slot 14 of player with red stained glass pane named "&cAbbrechen" to be unstealable then run [execute player command "perks buy haste cancel"]
    465.                     format slot 15 of player with red stained glass pane named "&cAbbrechen" to be unstealable then run [execute player command "perks buy haste cancel"]
    466.                     format slot 16 of player with red stained glass pane named "&cAbbrechen" to be unstealable then run [execute player command "perks buy haste cancel"]
    467.                     format slot 17 of player with black stained glass pane named "&f" to be unstealable
    468.                     format slot 18 of player with black stained glass pane named "&f" to be unstealable
    469.                     format slot 19 of player with black stained glass pane named "&f" to be unstealable
    470.                     format slot 20 of player with black stained glass pane named "&f" to be unstealable
    471.                     format slot 21 of player with black stained glass pane named "&f" to be unstealable
    472.                     format slot 22 of player with black stained glass pane named "&f" to be unstealable
    473.                     format slot 23 of player with black stained glass pane named "&f" to be unstealable
    474.                     format slot 24 of player with black stained glass pane named "&f" to be unstealable
    475.                     format slot 25 of player with black stained glass pane named "&f" to be unstealable
    476.                     format slot 26 of player with black stained glass pane named "&f" to be unstealable
    477.                     stop
    478.             if arg 2 is "nofall":
    479.                 if arg 3 is "confirm":
    480.                     if player's money is greater than 119999:
    481.                         remove 120000 from player's money
    482.                         execute console command "lp user %player% permission set citybuild.perk.nofalldamage true"
    483.                         message "{@prefix} &7Du hast erfolgreich das Perk gekauft!"
    484.                         stop
    485.                     message "{@prefix} &7Du hast nicht genügend Geld."
    486.                     stop
    487.                 if arg 3 is "cancel":
    488.                     message "{@prefix} &7Der Kauf wurde abgebrochen."
    489.                     stop
    490.                 if arg 3 is not set:
    491.                     wait 2 ticks
    492.                     open chest with 3 rows named "&bPerks" to player
    493.                     wait 1 ticks
    494.                     format slot 0 of player with black stained glass pane named "&f" to be unstealable
    495.                     format slot 1 of player with black stained glass pane named "&f" to be unstealable
    496.                     format slot 2 of player with black stained glass pane named "&f" to be unstealable
    497.                     format slot 3 of player with black stained glass pane named "&f" to be unstealable
    498.                     format slot 4 of player with paper named "&eBestätige den Kauf in höhe von 120.000$" to be unstealable
    499.                     format slot 5 of player with black stained glass pane named "&f" to be unstealable
    500.                     format slot 6 of player with black stained glass pane named "&f" to be unstealable
    501.                     format slot 7 of player with black stained glass pane named "&f" to be unstealable
    502.                     format slot 8 of player with black stained glass pane named "&f" to be unstealable
    503.                     format slot 9 of player with black stained glass pane named "&f" to be unstealable
    504.                     format slot 10 of player with lime stained glass pane named "&aBestätigen" to be unstealable then run [execute player command "perks buy nofall confirm"]
    505.                     format slot 11 of player with lime stained glass pane named "&aBestätigen" to be unstealable then run [execute player command "perks buy nofall confirm"]
    506.                     format slot 12 of player with lime stained glass pane named "&aBestätigen" to be unstealable then run [execute player command "perks buy nofall confirm"]
    507.                     format slot 13 of player with black stained glass pane named "&f" to be unstealable
    508.                     format slot 14 of player with red stained glass pane named "&cAbbrechen" to be unstealable then run [execute player command "perks buy nofall cancel"]
    509.                     format slot 15 of player with red stained glass pane named "&cAbbrechen" to be unstealable then run [execute player command "perks buy nofall cancel"]
    510.                     format slot 16 of player with red stained glass pane named "&cAbbrechen" to be unstealable then run [execute player command "perks buy nofall cancel"]
    511.                     format slot 17 of player with black stained glass pane named "&f" to be unstealable
    512.                     format slot 18 of player with black stained glass pane named "&f" to be unstealable
    513.                     format slot 19 of player with black stained glass pane named "&f" to be unstealable
    514.                     format slot 20 of player with black stained glass pane named "&f" to be unstealable
    515.                     format slot 21 of player with black stained glass pane named "&f" to be unstealable
    516.                     format slot 22 of player with black stained glass pane named "&f" to be unstealable
    517.                     format slot 23 of player with black stained glass pane named "&f" to be unstealable
    518.                     format slot 24 of player with black stained glass pane named "&f" to be unstealable
    519.                     format slot 25 of player with black stained glass pane named "&f" to be unstealable
    520.                     format slot 26 of player with black stained glass pane named "&f" to be unstealable
    521.                     stop
    522.             if arg 2 is "nofire":
    523.                 if arg 3 is "confirm":
    524.                     if player's money is greater than 79999:
    525.                         remove 80000 from player's money
    526.                         execute console command "lp user %player% permission set citybuild.perk.nofiredamage true"
    527.                         message "{@prefix} &7Du hast erfolgreich das Perk gekauft!"
    528.                         stop
    529.                     message "{@prefix} &7Du hast nicht genügend Geld."
    530.                     stop
    531.                 if arg 3 is "cancel":
    532.                     message "{@prefix} &7Der Kauf wurde abgebrochen."
    533.                     stop
    534.                 if arg 3 is not set:
    535.                     wait 2 ticks
    536.                     open chest with 3 rows named "&bPerks" to player
    537.                     wait 1 ticks
    538.                     format slot 0 of player with black stained glass pane named "&f" to be unstealable
    539.                     format slot 1 of player with black stained glass pane named "&f" to be unstealable
    540.                     format slot 2 of player with black stained glass pane named "&f" to be unstealable
    541.                     format slot 3 of player with black stained glass pane named "&f" to be unstealable
    542.                     format slot 4 of player with paper named "&eBestätige den Kauf in höhe von 80.000$" to be unstealable
    543.                     format slot 5 of player with black stained glass pane named "&f" to be unstealable
    544.                     format slot 6 of player with black stained glass pane named "&f" to be unstealable
    545.                     format slot 7 of player with black stained glass pane named "&f" to be unstealable
    546.                     format slot 8 of player with black stained glass pane named "&f" to be unstealable
    547.                     format slot 9 of player with black stained glass pane named "&f" to be unstealable
    548.                     format slot 10 of player with lime stained glass pane named "&aBestätigen" to be unstealable then run [execute player command "perks buy nofire confirm"]
    549.                     format slot 11 of player with lime stained glass pane named "&aBestätigen" to be unstealable then run [execute player command "perks buy nofire confirm"]
    550.                     format slot 12 of player with lime stained glass pane named "&aBestätigen" to be unstealable then run [execute player command "perks buy nofire confirm"]
    551.                     format slot 13 of player with black stained glass pane named "&f" to be unstealable
    552.                     format slot 14 of player with red stained glass pane named "&cAbbrechen" to be unstealable then run [execute player command "perks buy nofire cancel"]
    553.                     format slot 15 of player with red stained glass pane named "&cAbbrechen" to be unstealable then run [execute player command "perks buy nofire cancel"]
    554.                     format slot 16 of player with red stained glass pane named "&cAbbrechen" to be unstealable then run [execute player command "perks buy nofire cancel"]
    555.                     format slot 17 of player with black stained glass pane named "&f" to be unstealable
    556.                     format slot 18 of player with black stained glass pane named "&f" to be unstealable
    557.                     format slot 19 of player with black stained glass pane named "&f" to be unstealable
    558.                     format slot 20 of player with black stained glass pane named "&f" to be unstealable
    559.                     format slot 21 of player with black stained glass pane named "&f" to be unstealable
    560.                     format slot 22 of player with black stained glass pane named "&f" to be unstealable
    561.                     format slot 23 of player with black stained glass pane named "&f" to be unstealable
    562.                     format slot 24 of player with black stained glass pane named "&f" to be unstealable
    563.                     format slot 25 of player with black stained glass pane named "&f" to be unstealable
    564.                     format slot 26 of player with black stained glass pane named "&f" to be unstealable
    565.                     stop
    566. function buyRankStern(p: player):
    567.     if {_p}'s money is greater than 49999:
    568.         send "&aDu hast dir erfolgreich den Stern Rang gekauft!" to {_p}
    569.         execute console command "lp user %{_p}% parent add stern"
    570.         remove 50000 from {_p}'s money
    571.         stop
    572.     send "&cDu hast nicht genügeng Geld." to {_p}
    573.     stop
    574.  
    575. function buyRankEisen(p: player):
    576.     if {_p}'s money is greater than 99999:
    577.         send "&aDu hast dir erfolgreich den Eisen Rang gekauft!" to {_p}
    578.         execute console command "lp user %{_p}% parent add iron"
    579.         remove 100000 from {_p}'s money
    580.         stop
    581.     send "&cDu hast nicht genügeng Geld." to {_p}
    582.     stop
    583.  
    584. function buyRankPremium(p: player):
    585.     if {_p}'s money is greater than 249999:
    586.         send "&aDu hast dir erfolgreich den Premium Rang gekauft!" to {_p}
    587.         execute console command "lp user %{_p}% parent add premium"
    588.         remove 250000 from {_p}'s money
    589.         stop
    590.     send "&cDu hast nicht genügeng Geld." to {_p}
    591.     stop
    592.  
    593. function buyRankSmaragt(p: player):
    594.     if {_p}'s money is greater than 499999:
    595.         send "&aDu hast dir erfolgreich den Eisen Rang gekauft!" to {_p}
    596.         execute console command "lp user %{_p}% parent add smaragt"
    597.         remove 500000 from {_p}'s money
    598.         stop
    599.     send "&cDu hast nicht genügeng Geld." to {_p}
    600.     stop
    601.  
    602. command /buy:
    603.     trigger:
    604.         open chest with 3 rows named "Rangshop" to player
    605.         wait 2 ticks
    606.         format slot 0 of player with gray stained glass pane named "&f" to be unstealable
    607.         format slot 1 of player with gray stained glass pane named "" with lore "" with lore "" to be unstealable
    608.         format slot 2 of player with gray stained glass pane named "&f" to be unstealable
    609.         format slot 3 of player with gray stained glass pane named "&f" to be unstealable
    610.         format slot 4 of player with gray stained glass pane named "&f" to be unstealable
    611.         format slot 5 of player with gray stained glass pane named "&f" to be unstealable
    612.         format slot 6 of player with gray stained glass pane named "&f" to be unstealable
    613.         format slot 7 of player with gray stained glass pane named "&f" to be unstealable
    614.         format slot 8 of player with gray stained glass pane named "&f" to be unstealable
    615.         format slot 9 of player with gray stained glass pane named "&f" to be unstealable
    616.         format slot 10 of player with nether star named "&fStern Rang" to be unstealable then run [buyRankStern(player)]
    617.         format slot 11 of player with gray stained glass pane named "&f" to be unstealable
    618.         format slot 12 of player with iron ingot named "&eEisen Rang" to be unstealable then run [buyRankEisen(player)]
    619.         format slot 13 of player with gray stained glass pane named "&f" to be unstealable
    620.         format slot 14 of player with glowing gold ingot named "&6Premium Rang" to be unstealable then run [buyRankPremium(player)]
    621.         format slot 15 of player with gray stained glass pane named "&f" to be unstealable
    622.         format slot 16 of player with glowing emerald named "&aSmaragt Rang" to be unstealable then run [buyRankSmaragt(player)]
    623.         format slot 17 of player with gray stained glass pane named "&f" to be unstealable
    624.         format slot 18 of player with gray stained glass pane named "&f" to be unstealable
    625.         format slot 19 of player with gray stained glass pane named "&f" to be unstealable
    626.         format slot 20 of player with gray stained glass pane named "&f" to be unstealable
    627.         format slot 21 of player with gray stained glass pane named "&f" to be unstealable
    628.         format slot 22 of player with gray stained glass pane named "&f" to be unstealable
    629.         format slot 23 of player with gray stained glass pane named "&f" to be unstealable
    630.         format slot 24 of player with gray stained glass pane named "&f" to be unstealable
    631.         format slot 25 of player with gray stained glass pane named "&f" to be unstealable
    632.         format slot 26 of player with gray stained glass pane named "&f" to be unstealable
     
  2. Mich

    Mich Active Member

    Joined:
    Jul 15, 2020
    Messages:
    145
    Likes Received:
    5
    This happened to me one time I fix everything using TuSKe but you have to use tuske guis
     
  3. Philotastisch

    Philotastisch Member

    Joined:
    Sep 25, 2019
    Messages:
    45
    Likes Received:
    0
    I don't want to use TUSKE because there are no updates for 1.16 and the like. I only had this mess with my 1.16 SkyBlock server
     
  4. Mich

    Mich Active Member

    Joined:
    Jul 15, 2020
    Messages:
    145
    Likes Received:
    5
    did you try skript 2.5 beta 3?
     
  5. Philotastisch

    Philotastisch Member

    Joined:
    Sep 25, 2019
    Messages:
    45
    Likes Received:
    0
    oh, thanks xd
     
Thread Status:
Not open for further replies.

Share This Page

Loading...