Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin Wont work #91

Open
193KS opened this issue May 7, 2022 · 15 comments
Open

Plugin Wont work #91

193KS opened this issue May 7, 2022 · 15 comments
Assignees
Labels

Comments

@193KS
Copy link

193KS commented May 7, 2022

Describe the bug

[09:22:28 ERROR]: null org.bukkit.command.CommandException: Cannot execute command 'skrayfall' in plugin skRayFall v1.9.26 - plugin is disabled. at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37) ~[patched_1.17.1.jar:git-Paper-408] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:159) ~[patched_1.17.1.jar:git-Paper-408] at org.bukkit.craftbukkit.v1_17_R1.CraftServer.dispatchCommand(CraftServer.java:869) ~[patched_1.17.1.jar:git-Paper-408] at net.minecraft.server.network.ServerGamePacketListenerImpl.handleCommand(ServerGamePacketListenerImpl.java:2262) ~[app:?] at net.minecraft.server.network.ServerGamePacketListenerImpl.handleChat(ServerGamePacketListenerImpl.java:2073) ~[app:?] at net.minecraft.server.network.ServerGamePacketListenerImpl.handleChat(ServerGamePacketListenerImpl.java:2054) ~[app:?] at net.minecraft.network.protocol.game.ServerboundChatPacket.handle(ServerboundChatPacket.java:46) ~[app:?] at net.minecraft.network.protocol.gam

Steps to Reproduce

Just whenever i start up that error comes up in console and my skript that uses that plugin wont work

Expected Behavior

i espected me to join and be able to use my skript but its red in /plugins aswell not even green

Your Script


on load:
    if ("ul_VoidWorld2" parsed as world) is set:
        #nothing
    else:
        broadcast "&bCreating new skyblock world..."
        execute console command "/mv create ul_VoidWorld2 normal -g VoidGen -t FLAT"
        broadcast "&aSuccessfully created new world."
        wait 5 ticks
        execute console command "/sk reload SkyblockPlus"

on join:
    if {joins::*} does not contain player's uuid:
        add player's uuid to {joins::*}
        set {islandlevel.%player's uuid%} to 0
        set {money.%player's uuid%} to 0
        broadcast "&8‣ &f%player% &bjoined for the first time! &f##%size of {joins::*}%"
        make player execute command "/is"
    set join message to "&8[&a+&8] &7%player%"

every 1 seconds:
    loop all players:
        wipe loop-player's sidebar
        set name of sidebar of loop-player to "&8&l» &b&lSkyblock Plus! &8&l«"
        set score "&4" in sidebar of loop-player to 9
        set score "&8• &bBalance:" in sidebar of loop-player to 8
        set score "&8• &f$%{money.%loop-player's uuid%}%" in sidebar of loop-player to 7
        set score "&3" in sidebar of loop-player to 6
        set score "&8• &bIsland Level:" in sidebar of loop-player to 5
        set score "&8• &f%{islandlevel.%loop-player's uuid%}%" in sidebar of loop-player to 4
        set score "&2" in sidebar of loop-player to 3
        set score "&8• &bObjective:" in sidebar of loop-player to 2
        set score "&8• &f%{objectivemessage.%loop-player's uuid%}%" in sidebar of loop-player to 1
        set score "&1" in sidebar of loop-player to 0

on quit:
    set quit message to ""

on inventory click:
    if event-item's lore is "&7Click to teleport.":
        close player's inventory
        loop all players:
            if loop-player is equal to event-item's name:
                set {islandteleportingtouuid} to loop-player's uuid
        send "&8• &eTeleporting to %event-item's name%&e's island..."
        wait 1 tick
        teleport player to {plotcenter.%{islandteleportingtouuid}%}
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
        send "&8• &aSuccessfully teleported to island."



command /island:
  aliases: /is
  trigger:
    if {islandgenerated.%player's uuid%} is set:
      open virtual chest inventory with size 3 named "Island Menu" to player
      format gui slot integers between 0 and 100 of player with black stained glass pane named " "
      format gui slot 10 of player with dark oak sapling named "&aTeleport to Island" with lore "&7Click to use." to close:
        send "&8• &eTeleporting to island..."
        teleport player to {plotcenter.%player's uuid%}
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
        send "&8• &aSuccessfully teleported to island."
      format gui slot 16 of player with dark oak door named "&aVisit other Islands" with lore "&7Click to open." to close:
        open virtual chest inventory with size 6 named "Island Menu" to player
        format gui slot integers between 0 and 100 of player with black stained glass pane named " "
        set {playerlistslot.%player's uuid%} to 0
        loop all players:
          format gui slot {playerlistslot.%player's uuid%} of player with loop-player's skull named "%loop-player%" with lore "&7Click to teleport."
          add 1 to {playerlistslot.%player's uuid%}
      format gui slot 14 of player with gold ingot named "&aIsland Level" with lore "&7Click to open." to close:
        open virtual chest inventory with size 3 named "Island Menu" to player
        format gui slot integers between 0 and 100 of player with black stained glass pane named " "
        format gui slot 10 of player with diamond named "&aIsland Level: &f%{islandlevel.%player's uuid%}%"
        format gui slot 16 of player with coal block named "&eCoal Block" with lore "&a+1 Island Level"
        format gui slot 15 of player with iron block named "&eIron Block" with lore "&a+2 Island Levels"
        format gui slot 14 of player with gold block named "&eGold Block" with lore "&a+5 Island Levels"
        format gui slot 13 of player with diamond block named "&eDiamond Block" with lore "&a+10 Island Levels"
        format gui slot 12 of player with emerald block named "&eEmerald Block" with lore "&a+25 Island Levels"
      format gui slot 12 of player with emerald named "&aIsland Top" with lore "&7Click to open." to close:
        open virtual chest inventory with size 5 named "Island Menu" to player
        format gui slot integers between 0 and 100 of player with black stained glass pane named " "
        format gui slot 13 of player with emerald named "&a1 &8- &a%{baltop1player}% &8- &a%{baltopshow1}%"
        format gui slot 22 of player with emerald named "&a2 &8- &a%{baltop2player}% &8- &a%{baltopshow2}%"
        format gui slot 31 of player with emerald named "&a3 &8- &a%{baltop3player}% &8- &a%{baltopshow3}%"
    else:
      send "&8• &eGenerating new island..."
      set {globalplotcenter} to location ({globalplotcenter}'s x-coordinate+500), 70, 0 in world "ul_VoidWorld2"
      set {plotcenter.%player's uuid%} to block at {globalplotcenter}
      set {plotcorner1.%player's uuid%} to location ({plotcenter.%player's uuid%}'s x-coordinate-3), ({plotcenter.%player's uuid%}'s y-coordinate-1), ({plotcenter.%player's uuid%}'s z-coordinate-3) in world "ul_VoidWorld2"
      set {plotcorner2.%player's uuid%} to location ({plotcenter.%player's uuid%}'s x-coordinate+3), ({plotcenter.%player's uuid%}'s y-coordinate-1), ({plotcenter.%player's uuid%}'s z-coordinate+3) in world "ul_VoidWorld2"
      loop blocks within {plotcorner1.%player's uuid%} to {plotcorner2.%player's uuid%}:
        set block at loop-block to grass block
      set {plotcorner1.%player's uuid%} to location ({plotcenter.%player's uuid%}'s x-coordinate-3), ({plotcenter.%player's uuid%}'s y-coordinate-2), ({plotcenter.%player's uuid%}'s z-coordinate-3) in world "ul_VoidWorld2"
      set {plotcorner2.%player's uuid%} to location ({plotcenter.%player's uuid%}'s x-coordinate+3), ({plotcenter.%player's uuid%}'s y-coordinate-4), ({plotcenter.%player's uuid%}'s z-coordinate+3) in world "ul_VoidWorld2"
      loop blocks within {plotcorner1.%player's uuid%} to {plotcorner2.%player's uuid%}:
        set block at loop-block to stone
      set block at location ({plotcenter.%player's uuid%}'s x-coordinate-0), ({plotcenter.%player's uuid%}'s y-coordinate-1), ({plotcenter.%player's uuid%}'s z-coordinate-0) in world "ul_VoidWorld2" to bedrock
      set block at location ({plotcenter.%player's uuid%}'s x-coordinate-2), ({plotcenter.%player's uuid%}'s y-coordinate+0), ({plotcenter.%player's uuid%}'s z-coordinate-0) in world "ul_VoidWorld2" to oak log
      set block at location ({plotcenter.%player's uuid%}'s x-coordinate-2), ({plotcenter.%player's uuid%}'s y-coordinate+1), ({plotcenter.%player's uuid%}'s z-coordinate-0) in world "ul_VoidWorld2" to oak log
      set block at location ({plotcenter.%player's uuid%}'s x-coordinate-2), ({plotcenter.%player's uuid%}'s y-coordinate+2), ({plotcenter.%player's uuid%}'s z-coordinate-0) in world "ul_VoidWorld2" to oak log
      set block at location ({plotcenter.%player's uuid%}'s x-coordinate-2), ({plotcenter.%player's uuid%}'s y-coordinate+3), ({plotcenter.%player's uuid%}'s z-coordinate-0) in world "ul_VoidWorld2" to oak log
      set block at location ({plotcenter.%player's uuid%}'s x-coordinate-2), ({plotcenter.%player's uuid%}'s y-coordinate+4), ({plotcenter.%player's uuid%}'s z-coordinate-0) in world "ul_VoidWorld2" to oak leaves
      set block at location ({plotcenter.%player's uuid%}'s x-coordinate-1), ({plotcenter.%player's uuid%}'s y-coordinate+3), ({plotcenter.%player's uuid%}'s z-coordinate-0) in world "ul_VoidWorld2" to oak leaves
      set block at location ({plotcenter.%player's uuid%}'s x-coordinate-3), ({plotcenter.%player's uuid%}'s y-coordinate+3), ({plotcenter.%player's uuid%}'s z-coordinate-0) in world "ul_VoidWorld2" to oak leaves
      set block at location ({plotcenter.%player's uuid%}'s x-coordinate-2), ({plotcenter.%player's uuid%}'s y-coordinate+3), ({plotcenter.%player's uuid%}'s z-coordinate-1) in world "ul_VoidWorld2" to oak leaves
      set block at location ({plotcenter.%player's uuid%}'s x-coordinate-3), ({plotcenter.%player's uuid%}'s y-coordinate+3), ({plotcenter.%player's uuid%}'s z-coordinate-1) in world "ul_VoidWorld2" to oak leaves
      set block at location ({plotcenter.%player's uuid%}'s x-coordinate-1), ({plotcenter.%player's uuid%}'s y-coordinate+3), ({plotcenter.%player's uuid%}'s z-coordinate-1) in world "ul_VoidWorld2" to oak leaves
      set block at location ({plotcenter.%player's uuid%}'s x-coordinate-2), ({plotcenter.%player's uuid%}'s y-coordinate+3), ({plotcenter.%player's uuid%}'s z-coordinate+1) in world "ul_VoidWorld2" to oak leaves
      set block at location ({plotcenter.%player's uuid%}'s x-coordinate-3), ({plotcenter.%player's uuid%}'s y-coordinate+3), ({plotcenter.%player's uuid%}'s z-coordinate+1) in world "ul_VoidWorld2" to oak leaves
      set block at location ({plotcenter.%player's uuid%}'s x-coordinate-1), ({plotcenter.%player's uuid%}'s y-coordinate+3), ({plotcenter.%player's uuid%}'s z-coordinate+1) in world "ul_VoidWorld2" to oak leaves
      set block at location ({plotcenter.%player's uuid%}'s x-coordinate-3), ({plotcenter.%player's uuid%}'s y-coordinate+4), ({plotcenter.%player's uuid%}'s z-coordinate-0) in world "ul_VoidWorld2" to oak leaves
      set block at location ({plotcenter.%player's uuid%}'s x-coordinate-1), ({plotcenter.%player's uuid%}'s y-coordinate+4), ({plotcenter.%player's uuid%}'s z-coordinate-0) in world "ul_VoidWorld2" to oak leaves
      set block at location ({plotcenter.%player's uuid%}'s x-coordinate-2), ({plotcenter.%player's uuid%}'s y-coordinate+4), ({plotcenter.%player's uuid%}'s z-coordinate-1) in world "ul_VoidWorld2" to oak leaves
      set block at location ({plotcenter.%player's uuid%}'s x-coordinate-2), ({plotcenter.%player's uuid%}'s y-coordinate+4), ({plotcenter.%player's uuid%}'s z-coordinate+1) in world "ul_VoidWorld2" to oak leaves
      set block at location ({plotcenter.%player's uuid%}'s x-coordinate-2), ({plotcenter.%player's uuid%}'s y-coordinate+5), ({plotcenter.%player's uuid%}'s z-coordinate-0) in world "ul_VoidWorld2" to oak leaves
      set {lootchest.%player's uuid%} to block at location ({plotcenter.%player's uuid%}'s x-coordinate+2), ({plotcenter.%player's uuid%}'s y-coordinate+0), ({plotcenter.%player's uuid%}'s z-coordinate-0) in world "ul_VoidWorld2"
      set block at location ({plotcenter.%player's uuid%}'s x-coordinate+2), ({plotcenter.%player's uuid%}'s y-coordinate+0), ({plotcenter.%player's uuid%}'s z-coordinate-0) in world "ul_VoidWorld2" to west facing chest
      add 1 leather helmet to {lootchest.%player's uuid%}'s inventory
      add 1 leather chestplate to {lootchest.%player's uuid%}'s inventory
      add 1 leather leggings to {lootchest.%player's uuid%}'s inventory
      add 1 leather boots to {lootchest.%player's uuid%}'s inventory
      add 1 stone sword to {lootchest.%player's uuid%}'s inventory
      add 1 stone pickaxe to {lootchest.%player's uuid%}'s inventory
      add 1 stone axe to {lootchest.%player's uuid%}'s inventory
      add 1 stone shovel to {lootchest.%player's uuid%}'s inventory
      add 1 stone hoe to {lootchest.%player's uuid%}'s inventory
      add 32 cobblestone to {lootchest.%player's uuid%}'s inventory
      add 1 water bucket to {lootchest.%player's uuid%}'s inventory
      add 1 lava bucket to {lootchest.%player's uuid%}'s inventory
      add 5 sugar cane to {lootchest.%player's uuid%}'s inventory
      add 5 wheat seeds to {lootchest.%player's uuid%}'s inventory
      add 5 melon seeds to {lootchest.%player's uuid%}'s inventory
      add 5 pumpkin seeds to {lootchest.%player's uuid%}'s inventory
      add 1 ice to {lootchest.%player's uuid%}'s inventory
      add 16 torch to {lootchest.%player's uuid%}'s inventory
      teleport player to {plotcenter.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSuccessfully generated new island."
      set {islandgenerated.%player's uuid%} to 1

on left click:
    if distance between player and {plotcenter.%player's uuid%} is greater than 200:
        cancel event
on right click:
    if distance between player and {plotcenter.%player's uuid%} is greater than 200:
        cancel event
on block place:
    if distance between player and {plotcenter.%player's uuid%} is greater than 200:
        cancel event
    else:
        if event-block is spawner:
            add "%event-player's tool's nbt%" to event-block's nbt
        if event-block is coal block:
            add 1 to {islandlevel.%player's uuid%}
        if event-block is iron block:
            add 2 to {islandlevel.%player's uuid%}
        if event-block is gold block:
            add 5 to {islandlevel.%player's uuid%}
        if event-block is diamond block:
            add 10 to {islandlevel.%player's uuid%}
        if event-block is emerald block:
            add 25 to {islandlevel.%player's uuid%}
on block break:
    if distance between player and {plotcenter.%player's uuid%} is greater than 200:
        cancel event
    else:
        if event-block is spawner:
            cancel event
            drop mob spawner with nbt "%nbt of event-block%"
            set event-block to air
        if event-block is oak leaves:
            chance of 50%:
                drop 1 oak sapling at event-block
        if event-block is coal block:
            subtract 1 from {islandlevel.%player's uuid%}
        if event-block is iron block:
            subtract 2 from {islandlevel.%player's uuid%}
        if event-block is gold block:
            subtract 5 from {islandlevel.%player's uuid%}
        if event-block is diamond block:
            subtract 10 from {islandlevel.%player's uuid%}
        if event-block is emerald block:
            subtract 25 from {islandlevel.%player's uuid%}
on damage:
    if distance between victim and {plotcenter.%attacker's uuid%} is greater than 200:
        cancel event
on walk on farmland:
    if distance between player and {plotcenter.%player's uuid%} is greater than 200:
        teleport player to location (player's x-coordinate+1), player's y-coordinate, player's z-coordinate
on block form of cobblestone:
    set event-block to stone
    chance of 10%:
        set event-block to coal ore
    chance of 3.5%:
        set event-block to iron ore
    chance of 2%:
        set event-block to lapis ore
    chance of 0.9%:
        set event-block to gold ore
    chance of 0.3%:
        set event-block to diamond ore
    chance of 0.1%:
        set event-block to emerald ore

command /resetbaltop:
  permission: op
  trigger:
    delete {baltop1player}
    delete {baltop2player}
    delete {baltop3player}
    delete {baltopshow1}
    delete {baltopshow2}
    delete {baltopshow3}
    set {baltop1} to -5
    set {baltop2} to -5
    set {baltop3} to -5
    loop all offline players:
      if {islandlevel.%loop-offlineplayer's uuid%} is greater than ({baltop1}-1):
        set {baltop1player} to loop-offlineplayer
        set {baltopshow1} to {islandlevel.%loop-offlineplayer's uuid%}
        set {baltop1} to {islandlevel.%loop-offlineplayer's uuid%}
      else:
        if {islandlevel.%loop-offlineplayer's uuid%} is greater than ({baltop2}-1):
          set {baltop2player} to loop-offlineplayer
          set {baltopshow2} to {islandlevel.%loop-offlineplayer's uuid%}
          set {baltop2} to {islandlevel.%loop-offlineplayer's uuid%}
        else:
          if {islandlevel.%loop-offlineplayer's uuid%} is greater than ({baltop3}-1):
            set {baltop3player} to loop-offlineplayer
            set {baltopshow3} to {islandlevel.%loop-offlineplayer's uuid%}
            set {baltop3} to {islandlevel.%loop-offlineplayer's uuid%}



every 5 minutes:
    broadcast "&8• &aRefreshing Leaderboards, you might experience lag!"
    execute console command "/resetbaltop"

command /islandtop:
  trigger:
    send "&8&l----- &a&lIsland Top &8&l-----"
    send "&a1 &8- &a%{baltop1player}% &8- &a%{baltopshow1}%"
    send "&a2 &8- &a%{baltop2player}% &8- &a%{baltopshow2}%"
    send "&a3 &8- &a%{baltop3player}% &8- &a%{baltopshow3}%"

command /balance:
  aliases: /bal
  trigger:
    send "&8• &bYour Balance: &a$%{money.%player's uuid%}%"

command /sell:
  trigger:
    delete {sellamount.%player's uuid%}
    if player's held item is dirt:
      set {sellamount.%player's uuid%} to amount of dirt in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*1)
      remove all dirt from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is cobblestone:
      set {sellamount.%player's uuid%} to amount of cobblestone in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*1)
      remove all cobblestone from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is stone:
      set {sellamount.%player's uuid%} to amount of stone in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*2)
      remove all stone from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is oak log:
      set {sellamount.%player's uuid%} to amount of oak log in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*2)
      remove all oak log from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is oak planks:
      set {sellamount.%player's uuid%} to amount of oak planks in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*1)
      remove all oak planks from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is sugar cane:
      set {sellamount.%player's uuid%} to amount of sugar cane in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*3)
      remove all sugar cane from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is wheat:
      set {sellamount.%player's uuid%} to amount of wheat in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*3)
      remove all wheat from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is melon slice:
      set {sellamount.%player's uuid%} to amount of melon slice in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*1)
      remove all melon slice from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is pumpkin:
      set {sellamount.%player's uuid%} to amount of pumpkin in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*5)
      remove all pumpkin from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is bread:
      set {sellamount.%player's uuid%} to amount of bread in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*10)
      remove all bread from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is carrot:
      set {sellamount.%player's uuid%} to amount of carrot in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*2)
      remove all carrot from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is coal:
      set {sellamount.%player's uuid%} to amount of coal in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*3)
      remove all coal from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is iron ore:
      set {sellamount.%player's uuid%} to amount of iron ore in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*3)
      remove all iron ore from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is iron ingot:
      set {sellamount.%player's uuid%} to amount of iron ingot in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*5)
      remove all iron ingot from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is gold ore:
      set {sellamount.%player's uuid%} to amount of gold ore in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*5)
      remove all gold ore from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is gold ingot:
      set {sellamount.%player's uuid%} to amount of gold ingot in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*10)
      remove all gold ingot from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is lapis lazuli:
      set {sellamount.%player's uuid%} to amount of lapis lazuli in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*2)
      remove all lapis lazuli from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is diamond:
      set {sellamount.%player's uuid%} to amount of diamond in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*15)
      remove all diamond from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is emerald:
      set {sellamount.%player's uuid%} to amount of emerald in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*25)
      remove all emerald from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is apple:
      set {sellamount.%player's uuid%} to amount of apple in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*1)
      remove all apple from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is porkchop:
      set {sellamount.%player's uuid%} to amount of porkchop in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*2)
      remove all porkchop from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is cooked porkchop:
      set {sellamount.%player's uuid%} to amount of cooked porkchop in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*4)
      remove all cooked porkchop from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is beef:
      set {sellamount.%player's uuid%} to amount of beef in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*2)
      remove all beef from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is cooked beef:
      set {sellamount.%player's uuid%} to amount of cooked beef in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*4)
      remove all cooked beef from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is chicken:
      set {sellamount.%player's uuid%} to amount of chicken in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*2)
      remove all chicken from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is cooked chicken:
      set {sellamount.%player's uuid%} to amount of cooked chicken in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*4)
      remove all cooked chicken from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is rotten flesh:
      set {sellamount.%player's uuid%} to amount of rotten flesh in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*3)
      remove all rotten flesh from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is bone:
      set {sellamount.%player's uuid%} to amount of bone in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*3)
      remove all bone from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is mutton:
      set {sellamount.%player's uuid%} to amount of mutton in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*2)
      remove all mutton from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is cooked mutton:
      set {sellamount.%player's uuid%} to amount of cooked mutton in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*4)
      remove all cooked mutton from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is bedrock:
      set {sellamount.%player's uuid%} to amount of bedrock in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*100000000)
      remove all bedrock from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is cactus:
      set {sellamount.%player's uuid%} to amount of cactus in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*2)
      remove all cactus from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is nether wart:
      set {sellamount.%player's uuid%} to amount of nether wart in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*1)
      remove all nether wart from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if {sellamount.%player's uuid%} is not set:
      send "&8• &cYou cannot sell this item!"

command /shop:
  trigger:
    open virtual chest inventory with size 5 named "Shop" to player
    format gui slot integers between 0 and 100 of player with black stained glass pane named " "
    format gui slot 22 of player with grass block named "&aBlocks" with lore "&7Click to open." to close:
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      make player execute command "shop:blocks"
    format gui slot 24 of player with cactus named "&aFarming" with lore "&7Click to open." to close:
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      make player execute command "shop:farming"
    format gui slot 20 of player with spawner named "&aSpawners" with lore "&7Click to open." to close:
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      make player execute command "shop:spawners"

command /shop:spawners:
  trigger:
    open virtual chest inventory with size 5 named "Shop" to player
    format gui slot integers between 0 and 100 of player with black stained glass pane named " "
    format gui slot 40 of player with experience bottle named "&aBack to Menu" with lore "&7Click to open." to close:
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      make player execute command "shop"
    format gui slot 0 of player with mob spawner named "&ePig Spawner" with lore "&a‣ Price: $50,000" to run:
      if {money.%player's uuid%} is greater than 49999:
        subtract 50000 from {money.%player's uuid%}
        set {_spawner} to spawner with nbt "{SpawnData:{id:""minecraft:pig""},SpawnPotentials:[{Entity:{id:""minecraft:pig""},Weight:1}]}"
        set {_spawner}'s name to "Spawner"
        add 1 of {_spawner} to player's inventory
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
    format gui slot 1 of player with mob spawner named "&eChicken Spawner" with lore "&a‣ Price: $75,000" to run:
      if {money.%player's uuid%} is greater than 74999:
        subtract 75000 from {money.%player's uuid%}
        set {_spawner} to spawner with nbt "{SpawnData:{id:""minecraft:chicken""},SpawnPotentials:[{Entity:{id:""minecraft:chicken""},Weight:1}]}"
        set {_spawner}'s name to "Spawner"
        add 1 of {_spawner} to player's inventory
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
    format gui slot 2 of player with mob spawner named "&eSheep Spawner" with lore "&a‣ Price: $100,000" to run:
      if {money.%player's uuid%} is greater than 99999:
        subtract 100000 from {money.%player's uuid%}
        set {_spawner} to spawner with nbt "{SpawnData:{id:""minecraft:sheep""},SpawnPotentials:[{Entity:{id:""minecraft:sheep""},Weight:1}]}"
        set {_spawner}'s name to "Spawner"
        add 1 of {_spawner} to player's inventory
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
    format gui slot 3 of player with mob spawner named "&eCow Spawner" with lore "&a‣ Price: $150,000" to run:
      if {money.%player's uuid%} is greater than 149999:
        subtract 150000 from {money.%player's uuid%}
        set {_spawner} to spawner with nbt "{SpawnData:{id:""minecraft:cow""},SpawnPotentials:[{Entity:{id:""minecraft:cow""},Weight:1}]}"
        set {_spawner}'s name to "Spawner"
        add 1 of {_spawner} to player's inventory
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
    format gui slot 4 of player with mob spawner named "&eZombie Spawner" with lore "&a‣ Price: $200,000" to run:
      if {money.%player's uuid%} is greater than 199999:
        subtract 200000 from {money.%player's uuid%}
        set {_spawner} to spawner with nbt "{SpawnData:{id:""minecraft:zombie""},SpawnPotentials:[{Entity:{id:""minecraft:zombie""},Weight:1}]}"
        set {_spawner}'s name to "Spawner"
        add 1 of {_spawner} to player's inventory
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
    format gui slot 5 of player with mob spawner named "&eSkeleton Spawner" with lore "&a‣ Price: $300,000" to run:
      if {money.%player's uuid%} is greater than 299999:
        subtract 300000 from {money.%player's uuid%}
        set {_spawner} to spawner with nbt "{SpawnData:{id:""minecraft:skeleton""},SpawnPotentials:[{Entity:{id:""minecraft:skeleton""},Weight:1}]}"
        set {_spawner}'s name to "Spawner"
        add 1 of {_spawner} to player's inventory
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
    format gui slot 6 of player with mob spawner named "&eVillager Spawner" with lore "&a‣ Price: $500,000" to run:
      if {money.%player's uuid%} is greater than 499999:
        subtract 500000 from {money.%player's uuid%}
        set {_spawner} to spawner with nbt "{SpawnData:{id:""minecraft:villager""},SpawnPotentials:[{Entity:{id:""minecraft:villager""},Weight:1}]}"
        set {_spawner}'s name to "Spawner"
        add 1 of {_spawner} to player's inventory
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player

command /shop:farming:
  trigger:
    open virtual chest inventory with size 5 named "Shop" to player
    format gui slot integers between 0 and 100 of player with black stained glass pane named " "
    format gui slot 40 of player with experience bottle named "&aBack to Menu" with lore "&7Click to open." to close:
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      make player execute command "shop"
    format gui slot 0 of player with sugar cane with lore "&a‣ Price: $12" to run:
      if {money.%player's uuid%} is greater than 11:
        subtract 12 from {money.%player's uuid%}
        give 1 of sugar cane to player
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
    format gui slot 1 of player with wheat seeds with lore "&a‣ Price: $2" to run:
      if {money.%player's uuid%} is greater than 1:
        subtract 2 from {money.%player's uuid%}
        give 1 of wheat seeds to player
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
    format gui slot 2 of player with melon seeds with lore "&a‣ Price: $3" to run:
      if {money.%player's uuid%} is greater than 2:
        subtract 3 from {money.%player's uuid%}
        give 1 of melon seeds to player
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
    format gui slot 3 of player with pumpkin seeds with lore "&a‣ Price: $5" to run:
      if {money.%player's uuid%} is greater than 4:
        subtract 5 from {money.%player's uuid%}
        give 1 of pumpkin seeds to player
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
    format gui slot 4 of player with carrot with lore "&a‣ Price: $10" to run:
      if {money.%player's uuid%} is greater than 9:
        subtract 10 from {money.%player's uuid%}
        give 1 of carrot to player
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
    format gui slot 5 of player with cactus with lore "&a‣ Price: $25" to run:
      if {money.%player's uuid%} is greater than 24:
        subtract 25 from {money.%player's uuid%}
        give 1 of cactus to player
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
    format gui slot 6 of player with nether wart with lore "&a‣ Price: $15" to run:
      if {money.%player's uuid%} is greater than 14:
        subtract 15 from {money.%player's uuid%}
        give 1 of nether wart to player
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
    format gui slot 7 of player with water bucket with lore "&a‣ Price: $10" to run:
      if {money.%player's uuid%} is greater than 9:
        subtract 10 from {money.%player's uuid%}
        give 1 of water bucket to player
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
    format gui slot 8 of player with lava bucket with lore "&a‣ Price: $10" to run:
      if {money.%player's uuid%} is greater than 9:
        subtract 10 from {money.%player's uuid%}
        give 1 of lava bucket to player
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
    format gui slot 9 of player with nether star with lore "&a‣ Price: $10,000" to run:
      if {money.%player's uuid%} is greater than 9999:
        subtract 10000 from {money.%player's uuid%}
        give 1 of nether star to player
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
    format gui slot 10 of player with oak sapling with lore "&a‣ Price: $5" to run:
      if {money.%player's uuid%} is greater than 4:
        subtract 5 from {money.%player's uuid%}
        give 1 of oak sapling to player
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player

command /shop:blocks:
  trigger:
    open virtual chest inventory with size 5 named "Shop" to player
    format gui slot integers between 0 and 100 of player with black stained glass pane named " "
    format gui slot 40 of player with experience bottle named "&aBack to Menu" with lore "&7Click to open." to close:
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      make player execute command "shop"
    format gui slot 0 of player with grass block with lore "&a‣ Price: $4" to run:
      if {money.%player's uuid%} is greater than 3:
        subtract 4 from {money.%player's uuid%}
        give 1 of grass block to player
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
    format gui slot 1 of player with dirt with lore "&a‣ Price: $4" to run:
      if {money.%player's uuid%} is greater than 3:
        subtract 4 from {money.%player's uuid%}
        give 1 of dirt to player
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
    format gui slot 2 of player with cobblestone with lore "&a‣ Price: $4" to run:
      if {money.%player's uuid%} is greater than 3:
        subtract 4 from {money.%player's uuid%}
        give 1 of cobblestone to player
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
    format gui slot 3 of player with stone with lore "&a‣ Price: $8" to run:
      if {money.%player's uuid%} is greater than 7:
        subtract 8 from {money.%player's uuid%}
        give 1 of stone to player
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
    format gui slot 4 of player with oak log with lore "&a‣ Price: $8" to run:
      if {money.%player's uuid%} is greater than 7:
        subtract 8 from {money.%player's uuid%}
        give 1 of oak log to player
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
    format gui slot 5 of player with oak planks with lore "&a‣ Price: $4" to run:
      if {money.%player's uuid%} is greater than 3:
        subtract 4 from {money.%player's uuid%}
        give 1 of oak planks to player
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
    format gui slot 6 of player with oak leaves with lore "&a‣ Price: $4" to run:
      if {money.%player's uuid%} is greater than 3:
        subtract 4 from {money.%player's uuid%}
        give 1 of oak leaves to player
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
    format gui slot 7 of player with stone bricks with lore "&a‣ Price: $12" to run:
      if {money.%player's uuid%} is greater than 11:
        subtract 12 from {money.%player's uuid%}
        give 1 of stone bricks to player
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
    format gui slot 8 of player with sand with lore "&a‣ Price: $4" to run:
      if {money.%player's uuid%} is greater than 3:
        subtract 4 from {money.%player's uuid%}
        give 1 of sand to player
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
    format gui slot 9 of player with glass with lore "&a‣ Price: $12" to run:
      if {money.%player's uuid%} is greater than 11:
        subtract 12 from {money.%player's uuid%}
        give 1 of glass to player
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
    format gui slot 10 of player with sea lantern with lore "&a‣ Price: $24" to run:
      if {money.%player's uuid%} is greater than 23:
        subtract 24 from {money.%player's uuid%}
        give 1 of sea lantern to player
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
    format gui slot 11 of player with glowstone with lore "&a‣ Price: $24" to run:
      if {money.%player's uuid%} is greater than 23:
        subtract 24 from {money.%player's uuid%}
        give 1 of glowstone to player
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
    format gui slot 12 of player with soul sand with lore "&a‣ Price: $100" to run:
      if {money.%player's uuid%} is greater than 99:
        subtract 100 from {money.%player's uuid%}
        give 1 of soul sand to player
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player

on join:
    wait 3 seconds
    send " "
    send "&8• &bCurrent Objective:"
    send "&8• &f%colored {objectivemessage.%player's uuid%}%"
    send " "
    play sound "block.note_block.pling" with volume 1 and pitch 1 at player for player

every 1 seconds:
    loop all players:
        if {objective.%loop-player's uuid%} is not set:
            set {objective.%loop-player's uuid%} to 0
        if {objective.%loop-player's uuid%} is equal to 0:
            set {objectivemessage.%loop-player's uuid%} to "&fCollect x12 Oak Planks"
            if loop-player has 12 of oak planks:
                add 1 to {objective.%loop-player's uuid%}
                play sound "entity.ender_dragon.growl" with volume 1 and pitch 1 at loop-player for loop-player
                send " " to loop-player
                send "&8• &bObjective Complete:" to loop-player
                send "&8• &f%colored {objectivemessage.%loop-player's uuid%}%" to loop-player
                send " " to loop-player

        if {objective.%loop-player's uuid%} is equal to 1:
            set {objectivemessage.%loop-player's uuid%} to "&fCollect x32 Cobblestone"
            if loop-player has 32 of cobblestone:
                add 1 to {objective.%loop-player's uuid%}
                play sound "entity.ender_dragon.growl" with volume 1 and pitch 1 at loop-player for loop-player
                send " " to loop-player
                send "&8• &bObjective Complete:" to loop-player
                send "&8• &f%colored {objectivemessage.%loop-player's uuid%}%" to loop-player
                send " " to loop-player

        if {objective.%loop-player's uuid%} is equal to 2:
            set {objectivemessage.%loop-player's uuid%} to "&fCollect x48 Coal"
            if loop-player has 48 of coal:
                add 1 to {objective.%loop-player's uuid%}
                play sound "entity.ender_dragon.growl" with volume 1 and pitch 1 at loop-player for loop-player
                send " " to loop-player
                send "&8• &bObjective Complete:" to loop-player
                send "&8• &f%colored {objectivemessage.%loop-player's uuid%}%" to loop-player
                send " " to loop-player

        if {objective.%loop-player's uuid%} is equal to 3:
            set {objectivemessage.%loop-player's uuid%} to "&fCollect x32 Iron Ingot"
            if loop-player has 32 of iron ingot:
                add 1 to {objective.%loop-player's uuid%}
                play sound "entity.ender_dragon.growl" with volume 1 and pitch 1 at loop-player for loop-player
                send " " to loop-player
                send "&8• &bObjective Complete:" to loop-player
                send "&8• &f%colored {objectivemessage.%loop-player's uuid%}%" to loop-player
                send " " to loop-player

        if {objective.%loop-player's uuid%} is equal to 4:
            set {objectivemessage.%loop-player's uuid%} to "&fCollect x24 Lapis Lazuli"
            if loop-player has 24 of lapis lazuli:
                add 1 to {objective.%loop-player's uuid%}
                play sound "entity.ender_dragon.growl" with volume 1 and pitch 1 at loop-player for loop-player
                send " " to loop-player
                send "&8• &bObjective Complete:" to loop-player
                send "&8• &f%colored {objectivemessage.%loop-player's uuid%}%" to loop-player
                send " " to loop-player

        if {objective.%loop-player's uuid%} is equal to 5:
            set {objectivemessage.%loop-player's uuid%} to "&fCollect x16 Gold Ingot"
            if loop-player has 16 of gold ingot:
                add 1 to {objective.%loop-player's uuid%}
                play sound "entity.ender_dragon.growl" with volume 1 and pitch 1 at loop-player for loop-player
                send " " to loop-player
                send "&8• &bObjective Complete:" to loop-player
                send "&8• &f%colored {objectivemessage.%loop-player's uuid%}%" to loop-player
                send " " to loop-player

        if {objective.%loop-player's uuid%} is equal to 6:
            set {objectivemessage.%loop-player's uuid%} to "&fCollect x8 Diamond"
            if loop-player has 8 of diamond:
                add 1 to {objective.%loop-player's uuid%}
                play sound "entity.ender_dragon.growl" with volume 1 and pitch 1 at loop-player for loop-player
                send " " to loop-player
                send "&8• &bObjective Complete:" to loop-player
                send "&8• &f%colored {objectivemessage.%loop-player's uuid%}%" to loop-player
                send " " to loop-player

        if {objective.%loop-player's uuid%} is equal to 7:
            set {objectivemessage.%loop-player's uuid%} to "&fCollect x8 Emerald"
            if loop-player has 8 of emerald:
                add 1 to {objective.%loop-player's uuid%}
                play sound "entity.ender_dragon.growl" with volume 1 and pitch 1 at loop-player for loop-player
                send " " to loop-player
                send "&8• &bObjective Complete:" to loop-player
                send "&8• &f%colored {objectivemessage.%loop-player's uuid%}%" to loop-player
                send " " to loop-player

        if {objective.%loop-player's uuid%} is equal to 8:
            set {objectivemessage.%loop-player's uuid%} to "&fCollect x4 Obsidian"
            if loop-player has 4 of obsidian:
                add 1 to {objective.%loop-player's uuid%}
                play sound "entity.ender_dragon.growl" with volume 1 and pitch 1 at loop-player for loop-player
                send " " to loop-player
                send "&8• &bObjective Complete:" to loop-player
                send "&8• &f%colored {objectivemessage.%loop-player's uuid%}%" to loop-player
                send " " to loop-player

        if {objective.%loop-player's uuid%} is equal to 9:
            set {objectivemessage.%loop-player's uuid%} to "&aFinished All"```
### Screenshots / Errors 
<!--- Please add console error or screenshots here --->
[09:22:28 ERROR]: null org.bukkit.command.CommandException: Cannot execute command 'skrayfall' in plugin skRayFall v1.9.26 - plugin is disabled.     at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37) ~[patched_1.17.1.jar:git-Paper-408]     at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:159) ~[patched_1.17.1.jar:git-Paper-408]     at org.bukkit.craftbukkit.v1_17_R1.CraftServer.dispatchCommand(CraftServer.java:869) ~[patched_1.17.1.jar:git-Paper-408]     at net.minecraft.server.network.ServerGamePacketListenerImpl.handleCommand(ServerGamePacketListenerImpl.java:2262) ~[app:?]     at net.minecraft.server.network.ServerGamePacketListenerImpl.handleChat(ServerGamePacketListenerImpl.java:2073) ~[app:?]     at net.minecraft.server.network.ServerGamePacketListenerImpl.handleChat(ServerGamePacketListenerImpl.java:2054) ~[app:?]     at net.minecraft.network.protocol.game.ServerboundChatPacket.handle(ServerboundChatPacket.java:46) ~[app:?]     at net.minecraft.network.protocol.gam
### Server Information
 - Server Version and Type: <!--- e.g. Spigot 1.14.3 --->
 - Skript Version: <!--- e.g. 2.2-dev36 --->
 - skRayFall Version: <!--- e.g. 1.9.17 --->
 - Additional Plugins: <!--- Please list addition plugins and their version that might be the cause of the error --->
![image](https://user-images.githubusercontent.com/105105429/167248543-f3907712-6e35-4c83-bacd-5b484ba98baa.png)

### Additional Information
<!--- Add any other context about the problem here. --->
@eyesniper2
Copy link
Owner

Looks like something might be going wrong when your server starts up. Can you please send me the startup logs for your sever or the logs around where skRayFall gets disabled?

The latest version of skRayFall is v1.9.27 which might also help depending on the issue.

@193KS
Copy link
Author

193KS commented May 7, 2022

sure i can send u it but let me restart it up

@193KS
Copy link
Author

193KS commented May 7, 2022

09:48:22 ERROR: #!#! [Skript] Severe Error:
09:48:22 ERROR: #!#! Could not load SkyblockPlus.sk
09:48:22 ERROR: #!#!
09:48:22 ERROR: #!#! Something went horribly wrong with Skript.
09:48:22 ERROR: #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
09:48:22 ERROR: #!#! It looks like you are using some plugin(s) that alter how Skript works (addons).
09:48:22 ERROR: #!#! Here is full list of them:
09:48:22 ERROR: #!#! skRayFall v1.9.26 (https://sk.rayfall.net/) TuSKe v1.8.2-Pikachu-Patch-3-MH-1 (github.com/Tuke-Nuke/TuSKe) SkBee v1.15.2 (https://github.com/ShaneBeee/SkBee) SkQuery v4.1.6 Skellett v2.0.3 (https://forums.skunity.com/resources/skellett.24/)
09:48:22 ERROR: #!#! We could not identify which of those are specially related, so this might also be Skript issue.
09:48:22 ERROR: #!#! You should try disabling those plugins one by one, trying to find which one causes it.
09:48:22 ERROR: #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue.
09:48:22 ERROR: #!#! In that case, you will be given instruction on how should you report it.
09:48:22 ERROR: #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin.
09:48:22 ERROR: #!#! Only if the author tells you to do so, report it to Skript's issue tracker.
09:48:22 ERROR: #!#!
09:48:22 ERROR: #!#! Stack trace:
09:48:22 ERROR: #!#! java.lang.RuntimeException: pattern compiling exception, element class: com.github.tukenuke.tuske.expressions.ExprEvaluateFunction
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:228)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:179)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.lang.SkriptParser.parseSingleExpr(SkriptParser.java:523)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.lang.SkriptParser.parseExpression(SkriptParser.java:800)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.patterns.TypePatternElement.match(TypePatternElement.java:126)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.patterns.PatternElement.matchNext(PatternElement.java:54)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.patterns.LiteralPatternElement.match(LiteralPatternElement.java:57)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.patterns.PatternElement.matchNext(PatternElement.java:54)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.patterns.OptionalPatternElement.match(OptionalPatternElement.java:46)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.patterns.PatternElement.matchNext(PatternElement.java:54)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.patterns.LiteralPatternElement.match(LiteralPatternElement.java:57)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.patterns.PatternElement.matchNext(PatternElement.java:54)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.patterns.LiteralPatternElement.match(LiteralPatternElement.java:57)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.patterns.ChoicePatternElement.match(ChoicePatternElement.java:63)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.patterns.GroupPatternElement.match(GroupPatternElement.java:47)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.patterns.PatternElement.matchNext(PatternElement.java:54)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.patterns.LiteralPatternElement.match(LiteralPatternElement.java:57)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.patterns.PatternElement.matchNext(PatternElement.java:54)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.patterns.TypePatternElement.match(TypePatternElement.java:121)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.patterns.PatternElement.matchNext(PatternElement.java:54)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.patterns.LiteralPatternElement.match(LiteralPatternElement.java:57)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.patterns.PatternElement.matchNext(PatternElement.java:54)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.patterns.LiteralPatternElement.match(LiteralPatternElement.java:57)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.patterns.ChoicePatternElement.match(ChoicePatternElement.java:63)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.patterns.GroupPatternElement.match(GroupPatternElement.java:47)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.patterns.SkriptPattern.match(SkriptPattern.java:57)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1302)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:226)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:179)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.lang.Condition.parse(Condition.java:77)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.sections.SecConditional.init(SecConditional.java:83)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.lang.Section.init(Section.java:69)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:257)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:179)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.lang.Section.lambda$parse$0(Section.java:157)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.lang.Section$SectionContext.modify(Section.java:190)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.lang.Section.parse(Section.java:156)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:1127)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.ScriptLoader.loadScript(ScriptLoader.java:752)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.ScriptLoader.lambda$loadScripts$4(ScriptLoader.java:525)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.ScriptLoader.lambda$makeFuture$2(ScriptLoader.java:417)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.ScriptLoader.makeFuture(ScriptLoader.java:433)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:524)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:468)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.Skript$1.run(Skript.java:778)
09:48:22 ERROR: #!#! at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftTask.run(CraftTask.java:101)
09:48:22 ERROR: #!#! at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483)
09:48:22 ERROR: #!#! at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1229)
09:48:22 ERROR: #!#! at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:319)
09:48:22 ERROR: #!#! at java.base/java.lang.Thread.run(Thread.java:833)
09:48:22 ERROR: #!#! Caused by: ch.njol.skript.patterns.MalformedPatternException: single percentage sign at 19 [pattern: result of function %string(<.+?>)]
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.patterns.PatternCompiler.compile(PatternCompiler.java:130)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.patterns.PatternCompiler.compile(PatternCompiler.java:48)
09:48:22 ERROR: #!#! at java.base/java.util.HashMap.computeIfAbsent(HashMap.java:1220)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1301)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:226)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:179)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.lang.SkriptParser.parseSingleExpr(SkriptParser.java:523)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.lang.SkriptParser.parseExpression(SkriptParser.java:800)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.patterns.TypePatternElement.match(TypePatternElement.java:126)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.patterns.PatternElement.matchNext(PatternElement.java:54)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.patterns.LiteralPatternElement.match(LiteralPatternElement.java:57)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.patterns.PatternElement.matchNext(PatternElement.java:54)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.patterns.OptionalPatternElement.match(OptionalPatternElement.java:46)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.patterns.PatternElement.matchNext(PatternElement.java:54)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.patterns.LiteralPatternElement.match(LiteralPatternElement.java:57)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.patterns.PatternElement.matchNext(PatternElement.java:54)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.patterns.LiteralPatternElement.match(LiteralPatternElement.java:57)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.patterns.ChoicePatternElement.match(ChoicePatternElement.java:63)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.patterns.GroupPatternElement.match(GroupPatternElement.java:47)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.patterns.PatternElement.matchNext(PatternElement.java:54)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.patterns.LiteralPatternElement.match(LiteralPatternElement.java:57)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.patterns.PatternElement.matchNext(PatternElement.java:54)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.patterns.TypePatternElement.match(TypePatternElement.java:121)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.patterns.PatternElement.matchNext(PatternElement.java:54)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.patterns.LiteralPatternElement.match(LiteralPatternElement.java:57)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.patterns.PatternElement.matchNext(PatternElement.java:54)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.patterns.LiteralPatternElement.match(LiteralPatternElement.java:57)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.patterns.ChoicePatternElement.match(ChoicePatternElement.java:63)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.patterns.GroupPatternElement.match(GroupPatternElement.java:47)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.patterns.SkriptPattern.match(SkriptPattern.java:57)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1302)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:226)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:179)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.lang.Condition.parse(Condition.java:77)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.sections.SecConditional.init(SecConditional.java:83)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.lang.Section.init(Section.java:69)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:257)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:179)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.lang.Section.lambda$parse$0(Section.java:157)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.lang.Section$SectionContext.modify(Section.java:190)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.lang.Section.parse(Section.java:156)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:1127)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.ScriptLoader.loadScript(ScriptLoader.java:752)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.ScriptLoader.lambda$loadScripts$4(ScriptLoader.java:525)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.ScriptLoader.lambda$makeFuture$2(ScriptLoader.java:417)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.ScriptLoader.makeFuture(ScriptLoader.java:433)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:524)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:468)
09:48:22 ERROR: #!#! at Skript.jar//ch.njol.skript.Skript$1.run(Skript.java:778)
09:48:22 ERROR: #!#! at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftTask.run(CraftTask.java:101)
09:48:22 ERROR: #!#! at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483)
09:48:22 ERROR: #!#! at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1229)
09:48:22 ERROR: #!#! at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:319)
09:48:22 ERROR: #!#! at java.base/java.lang.Thread.run(Thread.java:833)
09:48:22 ERROR: #!#!
09:48:22 ERROR: #!#! Version Information:
09:48:22 ERROR: #!#! Skript: 2.6.1 (latest)
09:48:22 ERROR: #!#! Flavor: skriptlang-github
09:48:22 ERROR: #!#! Date: 22:18:42.554713200
09:48:22 ERROR: #!#! Bukkit: 1.17.1-R0.1-SNAPSHOT
09:48:22 ERROR: #!#! Minecraft: 1.17.1
09:48:22 ERROR: #!#! Java: 17.0.1 (OpenJDK 64-Bit Server VM 17.0.1+12)
09:48:22 ERROR: #!#! OS: Linux amd64 5.13.0-27-generic
09:48:22 ERROR: #!#!
09:48:22 ERROR: #!#! Server platform: Paper
09:48:22 ERROR: #!#!
09:48:22 ERROR: #!#! Current node: if ("ul_VoidWorld2" parsed as world) is set: (SkyblockPlus.sk, line 4)
09:48:22 ERROR: #!#! Current item: null
09:48:22 ERROR: #!#!
09:48:22 ERROR: #!#! Thread: Server thread
09:48:22 ERROR: #!#!
09:48:22 ERROR: #!#! Language: english
09:48:22 ERROR: #!#! Link parse mode: DISABLED
09:48:22 ERROR: #!#!
09:48:22 ERROR: #!#! End of Error.
09:48:22 ERROR: #!#!

@eyesniper2
Copy link
Owner

From the error above it looks like something might be going wrong in tuske (specifically com.github.tukenuke.tuske.expressions.ExprEvaluateFunction) and that could be preventing plugins from being loaded in. If you remove tuske does that let skRayFall enable its self?

@193KS
Copy link
Author

193KS commented May 7, 2022

but my skript needs both it says


on load:
    if ("ul_VoidWorld2" parsed as world) is set:
        #nothing
    else:
        broadcast "&bCreating new skyblock world..."
        execute console command "/mv create ul_VoidWorld2 normal -g VoidGen -t FLAT"
        broadcast "&aSuccessfully created new world."
        wait 5 ticks
        execute console command "/sk reload SkyblockPlus"

on join:
    if {joins::*} does not contain player's uuid:
        add player's uuid to {joins::*}
        set {islandlevel.%player's uuid%} to 0
        set {money.%player's uuid%} to 0
        broadcast "&8‣ &f%player% &bjoined for the first time! &f##%size of {joins::*}%"
        make player execute command "/is"
    set join message to "&8[&a+&8] &7%player%"

every 1 seconds:
    loop all players:
        wipe loop-player's sidebar
        set name of sidebar of loop-player to "&8&l» &b&lSkyblock Plus! &8&l«"
        set score "&4" in sidebar of loop-player to 9
        set score "&8• &bBalance:" in sidebar of loop-player to 8
        set score "&8• &f$%{money.%loop-player's uuid%}%" in sidebar of loop-player to 7
        set score "&3" in sidebar of loop-player to 6
        set score "&8• &bIsland Level:" in sidebar of loop-player to 5
        set score "&8• &f%{islandlevel.%loop-player's uuid%}%" in sidebar of loop-player to 4
        set score "&2" in sidebar of loop-player to 3
        set score "&8• &bObjective:" in sidebar of loop-player to 2
        set score "&8• &f%{objectivemessage.%loop-player's uuid%}%" in sidebar of loop-player to 1
        set score "&1" in sidebar of loop-player to 0

on quit:
    set quit message to ""

on inventory click:
    if event-item's lore is "&7Click to teleport.":
        close player's inventory
        loop all players:
            if loop-player is equal to event-item's name:
                set {islandteleportingtouuid} to loop-player's uuid
        send "&8• &eTeleporting to %event-item's name%&e's island..."
        wait 1 tick
        teleport player to {plotcenter.%{islandteleportingtouuid}%}
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
        send "&8• &aSuccessfully teleported to island."



command /island:
  aliases: /is
  trigger:
    if {islandgenerated.%player's uuid%} is set:
      open virtual chest inventory with size 3 named "Island Menu" to player
      format gui slot integers between 0 and 100 of player with black stained glass pane named " "
      format gui slot 10 of player with dark oak sapling named "&aTeleport to Island" with lore "&7Click to use." to close:
        send "&8• &eTeleporting to island..."
        teleport player to {plotcenter.%player's uuid%}
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
        send "&8• &aSuccessfully teleported to island."
      format gui slot 16 of player with dark oak door named "&aVisit other Islands" with lore "&7Click to open." to close:
        open virtual chest inventory with size 6 named "Island Menu" to player
        format gui slot integers between 0 and 100 of player with black stained glass pane named " "
        set {playerlistslot.%player's uuid%} to 0
        loop all players:
          format gui slot {playerlistslot.%player's uuid%} of player with loop-player's skull named "%loop-player%" with lore "&7Click to teleport."
          add 1 to {playerlistslot.%player's uuid%}
      format gui slot 14 of player with gold ingot named "&aIsland Level" with lore "&7Click to open." to close:
        open virtual chest inventory with size 3 named "Island Menu" to player
        format gui slot integers between 0 and 100 of player with black stained glass pane named " "
        format gui slot 10 of player with diamond named "&aIsland Level: &f%{islandlevel.%player's uuid%}%"
        format gui slot 16 of player with coal block named "&eCoal Block" with lore "&a+1 Island Level"
        format gui slot 15 of player with iron block named "&eIron Block" with lore "&a+2 Island Levels"
        format gui slot 14 of player with gold block named "&eGold Block" with lore "&a+5 Island Levels"
        format gui slot 13 of player with diamond block named "&eDiamond Block" with lore "&a+10 Island Levels"
        format gui slot 12 of player with emerald block named "&eEmerald Block" with lore "&a+25 Island Levels"
      format gui slot 12 of player with emerald named "&aIsland Top" with lore "&7Click to open." to close:
        open virtual chest inventory with size 5 named "Island Menu" to player
        format gui slot integers between 0 and 100 of player with black stained glass pane named " "
        format gui slot 13 of player with emerald named "&a1 &8- &a%{baltop1player}% &8- &a%{baltopshow1}%"
        format gui slot 22 of player with emerald named "&a2 &8- &a%{baltop2player}% &8- &a%{baltopshow2}%"
        format gui slot 31 of player with emerald named "&a3 &8- &a%{baltop3player}% &8- &a%{baltopshow3}%"
    else:
      send "&8• &eGenerating new island..."
      set {globalplotcenter} to location ({globalplotcenter}'s x-coordinate+500), 70, 0 in world "ul_VoidWorld2"
      set {plotcenter.%player's uuid%} to block at {globalplotcenter}
      set {plotcorner1.%player's uuid%} to location ({plotcenter.%player's uuid%}'s x-coordinate-3), ({plotcenter.%player's uuid%}'s y-coordinate-1), ({plotcenter.%player's uuid%}'s z-coordinate-3) in world "ul_VoidWorld2"
      set {plotcorner2.%player's uuid%} to location ({plotcenter.%player's uuid%}'s x-coordinate+3), ({plotcenter.%player's uuid%}'s y-coordinate-1), ({plotcenter.%player's uuid%}'s z-coordinate+3) in world "ul_VoidWorld2"
      loop blocks within {plotcorner1.%player's uuid%} to {plotcorner2.%player's uuid%}:
        set block at loop-block to grass block
      set {plotcorner1.%player's uuid%} to location ({plotcenter.%player's uuid%}'s x-coordinate-3), ({plotcenter.%player's uuid%}'s y-coordinate-2), ({plotcenter.%player's uuid%}'s z-coordinate-3) in world "ul_VoidWorld2"
      set {plotcorner2.%player's uuid%} to location ({plotcenter.%player's uuid%}'s x-coordinate+3), ({plotcenter.%player's uuid%}'s y-coordinate-4), ({plotcenter.%player's uuid%}'s z-coordinate+3) in world "ul_VoidWorld2"
      loop blocks within {plotcorner1.%player's uuid%} to {plotcorner2.%player's uuid%}:
        set block at loop-block to stone
      set block at location ({plotcenter.%player's uuid%}'s x-coordinate-0), ({plotcenter.%player's uuid%}'s y-coordinate-1), ({plotcenter.%player's uuid%}'s z-coordinate-0) in world "ul_VoidWorld2" to bedrock
      set block at location ({plotcenter.%player's uuid%}'s x-coordinate-2), ({plotcenter.%player's uuid%}'s y-coordinate+0), ({plotcenter.%player's uuid%}'s z-coordinate-0) in world "ul_VoidWorld2" to oak log
      set block at location ({plotcenter.%player's uuid%}'s x-coordinate-2), ({plotcenter.%player's uuid%}'s y-coordinate+1), ({plotcenter.%player's uuid%}'s z-coordinate-0) in world "ul_VoidWorld2" to oak log
      set block at location ({plotcenter.%player's uuid%}'s x-coordinate-2), ({plotcenter.%player's uuid%}'s y-coordinate+2), ({plotcenter.%player's uuid%}'s z-coordinate-0) in world "ul_VoidWorld2" to oak log
      set block at location ({plotcenter.%player's uuid%}'s x-coordinate-2), ({plotcenter.%player's uuid%}'s y-coordinate+3), ({plotcenter.%player's uuid%}'s z-coordinate-0) in world "ul_VoidWorld2" to oak log
      set block at location ({plotcenter.%player's uuid%}'s x-coordinate-2), ({plotcenter.%player's uuid%}'s y-coordinate+4), ({plotcenter.%player's uuid%}'s z-coordinate-0) in world "ul_VoidWorld2" to oak leaves
      set block at location ({plotcenter.%player's uuid%}'s x-coordinate-1), ({plotcenter.%player's uuid%}'s y-coordinate+3), ({plotcenter.%player's uuid%}'s z-coordinate-0) in world "ul_VoidWorld2" to oak leaves
      set block at location ({plotcenter.%player's uuid%}'s x-coordinate-3), ({plotcenter.%player's uuid%}'s y-coordinate+3), ({plotcenter.%player's uuid%}'s z-coordinate-0) in world "ul_VoidWorld2" to oak leaves
      set block at location ({plotcenter.%player's uuid%}'s x-coordinate-2), ({plotcenter.%player's uuid%}'s y-coordinate+3), ({plotcenter.%player's uuid%}'s z-coordinate-1) in world "ul_VoidWorld2" to oak leaves
      set block at location ({plotcenter.%player's uuid%}'s x-coordinate-3), ({plotcenter.%player's uuid%}'s y-coordinate+3), ({plotcenter.%player's uuid%}'s z-coordinate-1) in world "ul_VoidWorld2" to oak leaves
      set block at location ({plotcenter.%player's uuid%}'s x-coordinate-1), ({plotcenter.%player's uuid%}'s y-coordinate+3), ({plotcenter.%player's uuid%}'s z-coordinate-1) in world "ul_VoidWorld2" to oak leaves
      set block at location ({plotcenter.%player's uuid%}'s x-coordinate-2), ({plotcenter.%player's uuid%}'s y-coordinate+3), ({plotcenter.%player's uuid%}'s z-coordinate+1) in world "ul_VoidWorld2" to oak leaves
      set block at location ({plotcenter.%player's uuid%}'s x-coordinate-3), ({plotcenter.%player's uuid%}'s y-coordinate+3), ({plotcenter.%player's uuid%}'s z-coordinate+1) in world "ul_VoidWorld2" to oak leaves
      set block at location ({plotcenter.%player's uuid%}'s x-coordinate-1), ({plotcenter.%player's uuid%}'s y-coordinate+3), ({plotcenter.%player's uuid%}'s z-coordinate+1) in world "ul_VoidWorld2" to oak leaves
      set block at location ({plotcenter.%player's uuid%}'s x-coordinate-3), ({plotcenter.%player's uuid%}'s y-coordinate+4), ({plotcenter.%player's uuid%}'s z-coordinate-0) in world "ul_VoidWorld2" to oak leaves
      set block at location ({plotcenter.%player's uuid%}'s x-coordinate-1), ({plotcenter.%player's uuid%}'s y-coordinate+4), ({plotcenter.%player's uuid%}'s z-coordinate-0) in world "ul_VoidWorld2" to oak leaves
      set block at location ({plotcenter.%player's uuid%}'s x-coordinate-2), ({plotcenter.%player's uuid%}'s y-coordinate+4), ({plotcenter.%player's uuid%}'s z-coordinate-1) in world "ul_VoidWorld2" to oak leaves
      set block at location ({plotcenter.%player's uuid%}'s x-coordinate-2), ({plotcenter.%player's uuid%}'s y-coordinate+4), ({plotcenter.%player's uuid%}'s z-coordinate+1) in world "ul_VoidWorld2" to oak leaves
      set block at location ({plotcenter.%player's uuid%}'s x-coordinate-2), ({plotcenter.%player's uuid%}'s y-coordinate+5), ({plotcenter.%player's uuid%}'s z-coordinate-0) in world "ul_VoidWorld2" to oak leaves
      set {lootchest.%player's uuid%} to block at location ({plotcenter.%player's uuid%}'s x-coordinate+2), ({plotcenter.%player's uuid%}'s y-coordinate+0), ({plotcenter.%player's uuid%}'s z-coordinate-0) in world "ul_VoidWorld2"
      set block at location ({plotcenter.%player's uuid%}'s x-coordinate+2), ({plotcenter.%player's uuid%}'s y-coordinate+0), ({plotcenter.%player's uuid%}'s z-coordinate-0) in world "ul_VoidWorld2" to west facing chest
      add 1 leather helmet to {lootchest.%player's uuid%}'s inventory
      add 1 leather chestplate to {lootchest.%player's uuid%}'s inventory
      add 1 leather leggings to {lootchest.%player's uuid%}'s inventory
      add 1 leather boots to {lootchest.%player's uuid%}'s inventory
      add 1 stone sword to {lootchest.%player's uuid%}'s inventory
      add 1 stone pickaxe to {lootchest.%player's uuid%}'s inventory
      add 1 stone axe to {lootchest.%player's uuid%}'s inventory
      add 1 stone shovel to {lootchest.%player's uuid%}'s inventory
      add 1 stone hoe to {lootchest.%player's uuid%}'s inventory
      add 32 cobblestone to {lootchest.%player's uuid%}'s inventory
      add 1 water bucket to {lootchest.%player's uuid%}'s inventory
      add 1 lava bucket to {lootchest.%player's uuid%}'s inventory
      add 5 sugar cane to {lootchest.%player's uuid%}'s inventory
      add 5 wheat seeds to {lootchest.%player's uuid%}'s inventory
      add 5 melon seeds to {lootchest.%player's uuid%}'s inventory
      add 5 pumpkin seeds to {lootchest.%player's uuid%}'s inventory
      add 1 ice to {lootchest.%player's uuid%}'s inventory
      add 16 torch to {lootchest.%player's uuid%}'s inventory
      teleport player to {plotcenter.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSuccessfully generated new island."
      set {islandgenerated.%player's uuid%} to 1

on left click:
    if distance between player and {plotcenter.%player's uuid%} is greater than 200:
        cancel event
on right click:
    if distance between player and {plotcenter.%player's uuid%} is greater than 200:
        cancel event
on block place:
    if distance between player and {plotcenter.%player's uuid%} is greater than 200:
        cancel event
    else:
        if event-block is spawner:
            add "%event-player's tool's nbt%" to event-block's nbt
        if event-block is coal block:
            add 1 to {islandlevel.%player's uuid%}
        if event-block is iron block:
            add 2 to {islandlevel.%player's uuid%}
        if event-block is gold block:
            add 5 to {islandlevel.%player's uuid%}
        if event-block is diamond block:
            add 10 to {islandlevel.%player's uuid%}
        if event-block is emerald block:
            add 25 to {islandlevel.%player's uuid%}
on block break:
    if distance between player and {plotcenter.%player's uuid%} is greater than 200:
        cancel event
    else:
        if event-block is spawner:
            cancel event
            drop mob spawner with nbt "%nbt of event-block%"
            set event-block to air
        if event-block is oak leaves:
            chance of 50%:
                drop 1 oak sapling at event-block
        if event-block is coal block:
            subtract 1 from {islandlevel.%player's uuid%}
        if event-block is iron block:
            subtract 2 from {islandlevel.%player's uuid%}
        if event-block is gold block:
            subtract 5 from {islandlevel.%player's uuid%}
        if event-block is diamond block:
            subtract 10 from {islandlevel.%player's uuid%}
        if event-block is emerald block:
            subtract 25 from {islandlevel.%player's uuid%}
on damage:
    if distance between victim and {plotcenter.%attacker's uuid%} is greater than 200:
        cancel event
on walk on farmland:
    if distance between player and {plotcenter.%player's uuid%} is greater than 200:
        teleport player to location (player's x-coordinate+1), player's y-coordinate, player's z-coordinate
on block form of cobblestone:
    set event-block to stone
    chance of 10%:
        set event-block to coal ore
    chance of 3.5%:
        set event-block to iron ore
    chance of 2%:
        set event-block to lapis ore
    chance of 0.9%:
        set event-block to gold ore
    chance of 0.3%:
        set event-block to diamond ore
    chance of 0.1%:
        set event-block to emerald ore

command /resetbaltop:
  permission: op
  trigger:
    delete {baltop1player}
    delete {baltop2player}
    delete {baltop3player}
    delete {baltopshow1}
    delete {baltopshow2}
    delete {baltopshow3}
    set {baltop1} to -5
    set {baltop2} to -5
    set {baltop3} to -5
    loop all offline players:
      if {islandlevel.%loop-offlineplayer's uuid%} is greater than ({baltop1}-1):
        set {baltop1player} to loop-offlineplayer
        set {baltopshow1} to {islandlevel.%loop-offlineplayer's uuid%}
        set {baltop1} to {islandlevel.%loop-offlineplayer's uuid%}
      else:
        if {islandlevel.%loop-offlineplayer's uuid%} is greater than ({baltop2}-1):
          set {baltop2player} to loop-offlineplayer
          set {baltopshow2} to {islandlevel.%loop-offlineplayer's uuid%}
          set {baltop2} to {islandlevel.%loop-offlineplayer's uuid%}
        else:
          if {islandlevel.%loop-offlineplayer's uuid%} is greater than ({baltop3}-1):
            set {baltop3player} to loop-offlineplayer
            set {baltopshow3} to {islandlevel.%loop-offlineplayer's uuid%}
            set {baltop3} to {islandlevel.%loop-offlineplayer's uuid%}



every 5 minutes:
    broadcast "&8• &aRefreshing Leaderboards, you might experience lag!"
    execute console command "/resetbaltop"

command /islandtop:
  trigger:
    send "&8&l----- &a&lIsland Top &8&l-----"
    send "&a1 &8- &a%{baltop1player}% &8- &a%{baltopshow1}%"
    send "&a2 &8- &a%{baltop2player}% &8- &a%{baltopshow2}%"
    send "&a3 &8- &a%{baltop3player}% &8- &a%{baltopshow3}%"

command /balance:
  aliases: /bal
  trigger:
    send "&8• &bYour Balance: &a$%{money.%player's uuid%}%"

command /sell:
  trigger:
    delete {sellamount.%player's uuid%}
    if player's held item is dirt:
      set {sellamount.%player's uuid%} to amount of dirt in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*1)
      remove all dirt from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is cobblestone:
      set {sellamount.%player's uuid%} to amount of cobblestone in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*1)
      remove all cobblestone from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is stone:
      set {sellamount.%player's uuid%} to amount of stone in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*2)
      remove all stone from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is oak log:
      set {sellamount.%player's uuid%} to amount of oak log in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*2)
      remove all oak log from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is oak planks:
      set {sellamount.%player's uuid%} to amount of oak planks in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*1)
      remove all oak planks from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is sugar cane:
      set {sellamount.%player's uuid%} to amount of sugar cane in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*3)
      remove all sugar cane from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is wheat:
      set {sellamount.%player's uuid%} to amount of wheat in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*3)
      remove all wheat from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is melon slice:
      set {sellamount.%player's uuid%} to amount of melon slice in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*1)
      remove all melon slice from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is pumpkin:
      set {sellamount.%player's uuid%} to amount of pumpkin in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*5)
      remove all pumpkin from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is bread:
      set {sellamount.%player's uuid%} to amount of bread in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*10)
      remove all bread from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is carrot:
      set {sellamount.%player's uuid%} to amount of carrot in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*2)
      remove all carrot from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is coal:
      set {sellamount.%player's uuid%} to amount of coal in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*3)
      remove all coal from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is iron ore:
      set {sellamount.%player's uuid%} to amount of iron ore in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*3)
      remove all iron ore from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is iron ingot:
      set {sellamount.%player's uuid%} to amount of iron ingot in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*5)
      remove all iron ingot from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is gold ore:
      set {sellamount.%player's uuid%} to amount of gold ore in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*5)
      remove all gold ore from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is gold ingot:
      set {sellamount.%player's uuid%} to amount of gold ingot in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*10)
      remove all gold ingot from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is lapis lazuli:
      set {sellamount.%player's uuid%} to amount of lapis lazuli in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*2)
      remove all lapis lazuli from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is diamond:
      set {sellamount.%player's uuid%} to amount of diamond in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*15)
      remove all diamond from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is emerald:
      set {sellamount.%player's uuid%} to amount of emerald in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*25)
      remove all emerald from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is apple:
      set {sellamount.%player's uuid%} to amount of apple in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*1)
      remove all apple from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is porkchop:
      set {sellamount.%player's uuid%} to amount of porkchop in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*2)
      remove all porkchop from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is cooked porkchop:
      set {sellamount.%player's uuid%} to amount of cooked porkchop in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*4)
      remove all cooked porkchop from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is beef:
      set {sellamount.%player's uuid%} to amount of beef in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*2)
      remove all beef from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is cooked beef:
      set {sellamount.%player's uuid%} to amount of cooked beef in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*4)
      remove all cooked beef from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is chicken:
      set {sellamount.%player's uuid%} to amount of chicken in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*2)
      remove all chicken from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is cooked chicken:
      set {sellamount.%player's uuid%} to amount of cooked chicken in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*4)
      remove all cooked chicken from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is rotten flesh:
      set {sellamount.%player's uuid%} to amount of rotten flesh in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*3)
      remove all rotten flesh from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is bone:
      set {sellamount.%player's uuid%} to amount of bone in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*3)
      remove all bone from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is mutton:
      set {sellamount.%player's uuid%} to amount of mutton in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*2)
      remove all mutton from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is cooked mutton:
      set {sellamount.%player's uuid%} to amount of cooked mutton in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*4)
      remove all cooked mutton from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is bedrock:
      set {sellamount.%player's uuid%} to amount of bedrock in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*100000000)
      remove all bedrock from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is cactus:
      set {sellamount.%player's uuid%} to amount of cactus in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*2)
      remove all cactus from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if player's held item is nether wart:
      set {sellamount.%player's uuid%} to amount of nether wart in player's inventory
      set {sellmoney.%player's uuid%} to ({sellamount.%player's uuid%}*1)
      remove all nether wart from player's inventory
      add {sellmoney.%player's uuid%} to {money.%player's uuid%}
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      send "&8• &aSold &f%{sellamount.%player's uuid%}% &aitem(s) for &f$%{sellmoney.%player's uuid%}%."

    if {sellamount.%player's uuid%} is not set:
      send "&8• &cYou cannot sell this item!"

command /shop:
  trigger:
    open virtual chest inventory with size 5 named "Shop" to player
    format gui slot integers between 0 and 100 of player with black stained glass pane named " "
    format gui slot 22 of player with grass block named "&aBlocks" with lore "&7Click to open." to close:
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      make player execute command "shop:blocks"
    format gui slot 24 of player with cactus named "&aFarming" with lore "&7Click to open." to close:
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      make player execute command "shop:farming"
    format gui slot 20 of player with spawner named "&aSpawners" with lore "&7Click to open." to close:
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      make player execute command "shop:spawners"

command /shop:spawners:
  trigger:
    open virtual chest inventory with size 5 named "Shop" to player
    format gui slot integers between 0 and 100 of player with black stained glass pane named " "
    format gui slot 40 of player with experience bottle named "&aBack to Menu" with lore "&7Click to open." to close:
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      make player execute command "shop"
    format gui slot 0 of player with mob spawner named "&ePig Spawner" with lore "&a‣ Price: $50,000" to run:
      if {money.%player's uuid%} is greater than 49999:
        subtract 50000 from {money.%player's uuid%}
        set {_spawner} to spawner with nbt "{SpawnData:{id:""minecraft:pig""},SpawnPotentials:[{Entity:{id:""minecraft:pig""},Weight:1}]}"
        set {_spawner}'s name to "Spawner"
        add 1 of {_spawner} to player's inventory
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
    format gui slot 1 of player with mob spawner named "&eChicken Spawner" with lore "&a‣ Price: $75,000" to run:
      if {money.%player's uuid%} is greater than 74999:
        subtract 75000 from {money.%player's uuid%}
        set {_spawner} to spawner with nbt "{SpawnData:{id:""minecraft:chicken""},SpawnPotentials:[{Entity:{id:""minecraft:chicken""},Weight:1}]}"
        set {_spawner}'s name to "Spawner"
        add 1 of {_spawner} to player's inventory
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
    format gui slot 2 of player with mob spawner named "&eSheep Spawner" with lore "&a‣ Price: $100,000" to run:
      if {money.%player's uuid%} is greater than 99999:
        subtract 100000 from {money.%player's uuid%}
        set {_spawner} to spawner with nbt "{SpawnData:{id:""minecraft:sheep""},SpawnPotentials:[{Entity:{id:""minecraft:sheep""},Weight:1}]}"
        set {_spawner}'s name to "Spawner"
        add 1 of {_spawner} to player's inventory
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
    format gui slot 3 of player with mob spawner named "&eCow Spawner" with lore "&a‣ Price: $150,000" to run:
      if {money.%player's uuid%} is greater than 149999:
        subtract 150000 from {money.%player's uuid%}
        set {_spawner} to spawner with nbt "{SpawnData:{id:""minecraft:cow""},SpawnPotentials:[{Entity:{id:""minecraft:cow""},Weight:1}]}"
        set {_spawner}'s name to "Spawner"
        add 1 of {_spawner} to player's inventory
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
    format gui slot 4 of player with mob spawner named "&eZombie Spawner" with lore "&a‣ Price: $200,000" to run:
      if {money.%player's uuid%} is greater than 199999:
        subtract 200000 from {money.%player's uuid%}
        set {_spawner} to spawner with nbt "{SpawnData:{id:""minecraft:zombie""},SpawnPotentials:[{Entity:{id:""minecraft:zombie""},Weight:1}]}"
        set {_spawner}'s name to "Spawner"
        add 1 of {_spawner} to player's inventory
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
    format gui slot 5 of player with mob spawner named "&eSkeleton Spawner" with lore "&a‣ Price: $300,000" to run:
      if {money.%player's uuid%} is greater than 299999:
        subtract 300000 from {money.%player's uuid%}
        set {_spawner} to spawner with nbt "{SpawnData:{id:""minecraft:skeleton""},SpawnPotentials:[{Entity:{id:""minecraft:skeleton""},Weight:1}]}"
        set {_spawner}'s name to "Spawner"
        add 1 of {_spawner} to player's inventory
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
    format gui slot 6 of player with mob spawner named "&eVillager Spawner" with lore "&a‣ Price: $500,000" to run:
      if {money.%player's uuid%} is greater than 499999:
        subtract 500000 from {money.%player's uuid%}
        set {_spawner} to spawner with nbt "{SpawnData:{id:""minecraft:villager""},SpawnPotentials:[{Entity:{id:""minecraft:villager""},Weight:1}]}"
        set {_spawner}'s name to "Spawner"
        add 1 of {_spawner} to player's inventory
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player

command /shop:farming:
  trigger:
    open virtual chest inventory with size 5 named "Shop" to player
    format gui slot integers between 0 and 100 of player with black stained glass pane named " "
    format gui slot 40 of player with experience bottle named "&aBack to Menu" with lore "&7Click to open." to close:
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      make player execute command "shop"
    format gui slot 0 of player with sugar cane with lore "&a‣ Price: $12" to run:
      if {money.%player's uuid%} is greater than 11:
        subtract 12 from {money.%player's uuid%}
        give 1 of sugar cane to player
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
    format gui slot 1 of player with wheat seeds with lore "&a‣ Price: $2" to run:
      if {money.%player's uuid%} is greater than 1:
        subtract 2 from {money.%player's uuid%}
        give 1 of wheat seeds to player
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
    format gui slot 2 of player with melon seeds with lore "&a‣ Price: $3" to run:
      if {money.%player's uuid%} is greater than 2:
        subtract 3 from {money.%player's uuid%}
        give 1 of melon seeds to player
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
    format gui slot 3 of player with pumpkin seeds with lore "&a‣ Price: $5" to run:
      if {money.%player's uuid%} is greater than 4:
        subtract 5 from {money.%player's uuid%}
        give 1 of pumpkin seeds to player
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
    format gui slot 4 of player with carrot with lore "&a‣ Price: $10" to run:
      if {money.%player's uuid%} is greater than 9:
        subtract 10 from {money.%player's uuid%}
        give 1 of carrot to player
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
    format gui slot 5 of player with cactus with lore "&a‣ Price: $25" to run:
      if {money.%player's uuid%} is greater than 24:
        subtract 25 from {money.%player's uuid%}
        give 1 of cactus to player
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
    format gui slot 6 of player with nether wart with lore "&a‣ Price: $15" to run:
      if {money.%player's uuid%} is greater than 14:
        subtract 15 from {money.%player's uuid%}
        give 1 of nether wart to player
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
    format gui slot 7 of player with water bucket with lore "&a‣ Price: $10" to run:
      if {money.%player's uuid%} is greater than 9:
        subtract 10 from {money.%player's uuid%}
        give 1 of water bucket to player
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
    format gui slot 8 of player with lava bucket with lore "&a‣ Price: $10" to run:
      if {money.%player's uuid%} is greater than 9:
        subtract 10 from {money.%player's uuid%}
        give 1 of lava bucket to player
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
    format gui slot 9 of player with nether star with lore "&a‣ Price: $10,000" to run:
      if {money.%player's uuid%} is greater than 9999:
        subtract 10000 from {money.%player's uuid%}
        give 1 of nether star to player
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
    format gui slot 10 of player with oak sapling with lore "&a‣ Price: $5" to run:
      if {money.%player's uuid%} is greater than 4:
        subtract 5 from {money.%player's uuid%}
        give 1 of oak sapling to player
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player

command /shop:blocks:
  trigger:
    open virtual chest inventory with size 5 named "Shop" to player
    format gui slot integers between 0 and 100 of player with black stained glass pane named " "
    format gui slot 40 of player with experience bottle named "&aBack to Menu" with lore "&7Click to open." to close:
      play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
      make player execute command "shop"
    format gui slot 0 of player with grass block with lore "&a‣ Price: $4" to run:
      if {money.%player's uuid%} is greater than 3:
        subtract 4 from {money.%player's uuid%}
        give 1 of grass block to player
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
    format gui slot 1 of player with dirt with lore "&a‣ Price: $4" to run:
      if {money.%player's uuid%} is greater than 3:
        subtract 4 from {money.%player's uuid%}
        give 1 of dirt to player
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
    format gui slot 2 of player with cobblestone with lore "&a‣ Price: $4" to run:
      if {money.%player's uuid%} is greater than 3:
        subtract 4 from {money.%player's uuid%}
        give 1 of cobblestone to player
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
    format gui slot 3 of player with stone with lore "&a‣ Price: $8" to run:
      if {money.%player's uuid%} is greater than 7:
        subtract 8 from {money.%player's uuid%}
        give 1 of stone to player
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
    format gui slot 4 of player with oak log with lore "&a‣ Price: $8" to run:
      if {money.%player's uuid%} is greater than 7:
        subtract 8 from {money.%player's uuid%}
        give 1 of oak log to player
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
    format gui slot 5 of player with oak planks with lore "&a‣ Price: $4" to run:
      if {money.%player's uuid%} is greater than 3:
        subtract 4 from {money.%player's uuid%}
        give 1 of oak planks to player
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
    format gui slot 6 of player with oak leaves with lore "&a‣ Price: $4" to run:
      if {money.%player's uuid%} is greater than 3:
        subtract 4 from {money.%player's uuid%}
        give 1 of oak leaves to player
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
    format gui slot 7 of player with stone bricks with lore "&a‣ Price: $12" to run:
      if {money.%player's uuid%} is greater than 11:
        subtract 12 from {money.%player's uuid%}
        give 1 of stone bricks to player
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
    format gui slot 8 of player with sand with lore "&a‣ Price: $4" to run:
      if {money.%player's uuid%} is greater than 3:
        subtract 4 from {money.%player's uuid%}
        give 1 of sand to player
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
    format gui slot 9 of player with glass with lore "&a‣ Price: $12" to run:
      if {money.%player's uuid%} is greater than 11:
        subtract 12 from {money.%player's uuid%}
        give 1 of glass to player
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
    format gui slot 10 of player with sea lantern with lore "&a‣ Price: $24" to run:
      if {money.%player's uuid%} is greater than 23:
        subtract 24 from {money.%player's uuid%}
        give 1 of sea lantern to player
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
    format gui slot 11 of player with glowstone with lore "&a‣ Price: $24" to run:
      if {money.%player's uuid%} is greater than 23:
        subtract 24 from {money.%player's uuid%}
        give 1 of glowstone to player
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
    format gui slot 12 of player with soul sand with lore "&a‣ Price: $100" to run:
      if {money.%player's uuid%} is greater than 99:
        subtract 100 from {money.%player's uuid%}
        give 1 of soul sand to player
        play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player

on join:
    wait 3 seconds
    send " "
    send "&8• &bCurrent Objective:"
    send "&8• &f%colored {objectivemessage.%player's uuid%}%"
    send " "
    play sound "block.note_block.pling" with volume 1 and pitch 1 at player for player

every 1 seconds:
    loop all players:
        if {objective.%loop-player's uuid%} is not set:
            set {objective.%loop-player's uuid%} to 0
        if {objective.%loop-player's uuid%} is equal to 0:
            set {objectivemessage.%loop-player's uuid%} to "&fCollect x12 Oak Planks"
            if loop-player has 12 of oak planks:
                add 1 to {objective.%loop-player's uuid%}
                play sound "entity.ender_dragon.growl" with volume 1 and pitch 1 at loop-player for loop-player
                send " " to loop-player
                send "&8• &bObjective Complete:" to loop-player
                send "&8• &f%colored {objectivemessage.%loop-player's uuid%}%" to loop-player
                send " " to loop-player

        if {objective.%loop-player's uuid%} is equal to 1:
            set {objectivemessage.%loop-player's uuid%} to "&fCollect x32 Cobblestone"
            if loop-player has 32 of cobblestone:
                add 1 to {objective.%loop-player's uuid%}
                play sound "entity.ender_dragon.growl" with volume 1 and pitch 1 at loop-player for loop-player
                send " " to loop-player
                send "&8• &bObjective Complete:" to loop-player
                send "&8• &f%colored {objectivemessage.%loop-player's uuid%}%" to loop-player
                send " " to loop-player

        if {objective.%loop-player's uuid%} is equal to 2:
            set {objectivemessage.%loop-player's uuid%} to "&fCollect x48 Coal"
            if loop-player has 48 of coal:
                add 1 to {objective.%loop-player's uuid%}
                play sound "entity.ender_dragon.growl" with volume 1 and pitch 1 at loop-player for loop-player
                send " " to loop-player
                send "&8• &bObjective Complete:" to loop-player
                send "&8• &f%colored {objectivemessage.%loop-player's uuid%}%" to loop-player
                send " " to loop-player

        if {objective.%loop-player's uuid%} is equal to 3:
            set {objectivemessage.%loop-player's uuid%} to "&fCollect x32 Iron Ingot"
            if loop-player has 32 of iron ingot:
                add 1 to {objective.%loop-player's uuid%}
                play sound "entity.ender_dragon.growl" with volume 1 and pitch 1 at loop-player for loop-player
                send " " to loop-player
                send "&8• &bObjective Complete:" to loop-player
                send "&8• &f%colored {objectivemessage.%loop-player's uuid%}%" to loop-player
                send " " to loop-player

        if {objective.%loop-player's uuid%} is equal to 4:
            set {objectivemessage.%loop-player's uuid%} to "&fCollect x24 Lapis Lazuli"
            if loop-player has 24 of lapis lazuli:
                add 1 to {objective.%loop-player's uuid%}
                play sound "entity.ender_dragon.growl" with volume 1 and pitch 1 at loop-player for loop-player
                send " " to loop-player
                send "&8• &bObjective Complete:" to loop-player
                send "&8• &f%colored {objectivemessage.%loop-player's uuid%}%" to loop-player
                send " " to loop-player

        if {objective.%loop-player's uuid%} is equal to 5:
            set {objectivemessage.%loop-player's uuid%} to "&fCollect x16 Gold Ingot"
            if loop-player has 16 of gold ingot:
                add 1 to {objective.%loop-player's uuid%}
                play sound "entity.ender_dragon.growl" with volume 1 and pitch 1 at loop-player for loop-player
                send " " to loop-player
                send "&8• &bObjective Complete:" to loop-player
                send "&8• &f%colored {objectivemessage.%loop-player's uuid%}%" to loop-player
                send " " to loop-player

        if {objective.%loop-player's uuid%} is equal to 6:
            set {objectivemessage.%loop-player's uuid%} to "&fCollect x8 Diamond"
            if loop-player has 8 of diamond:
                add 1 to {objective.%loop-player's uuid%}
                play sound "entity.ender_dragon.growl" with volume 1 and pitch 1 at loop-player for loop-player
                send " " to loop-player
                send "&8• &bObjective Complete:" to loop-player
                send "&8• &f%colored {objectivemessage.%loop-player's uuid%}%" to loop-player
                send " " to loop-player

        if {objective.%loop-player's uuid%} is equal to 7:
            set {objectivemessage.%loop-player's uuid%} to "&fCollect x8 Emerald"
            if loop-player has 8 of emerald:
                add 1 to {objective.%loop-player's uuid%}
                play sound "entity.ender_dragon.growl" with volume 1 and pitch 1 at loop-player for loop-player
                send " " to loop-player
                send "&8• &bObjective Complete:" to loop-player
                send "&8• &f%colored {objectivemessage.%loop-player's uuid%}%" to loop-player
                send " " to loop-player

        if {objective.%loop-player's uuid%} is equal to 8:
            set {objectivemessage.%loop-player's uuid%} to "&fCollect x4 Obsidian"
            if loop-player has 4 of obsidian:
                add 1 to {objective.%loop-player's uuid%}
                play sound "entity.ender_dragon.growl" with volume 1 and pitch 1 at loop-player for loop-player
                send " " to loop-player
                send "&8• &bObjective Complete:" to loop-player
                send "&8• &f%colored {objectivemessage.%loop-player's uuid%}%" to loop-player
                send " " to loop-player

        if {objective.%loop-player's uuid%} is equal to 9:
            set {objectivemessage.%loop-player's uuid%} to "&aFinished All"```

@193KS
Copy link
Author

193KS commented May 7, 2022

read the very top of that the first line

@eyesniper2
Copy link
Owner

That is fine, just remove the plugin for now and let me know if skRayFall loads. The skript will probably not load for now, which is fine.

@193KS
Copy link
Author

193KS commented May 7, 2022

ok

@193KS
Copy link
Author

193KS commented May 7, 2022

one minute network crashed

@193KS
Copy link
Author

193KS commented May 7, 2022

image

@eyesniper2
Copy link
Owner

Can you please send me the start up logs for that run.

@193KS
Copy link
Author

193KS commented May 7, 2022

10:10:23 ERROR: #!#! [Skript] Severe Error:
10:10:23 ERROR: #!#! Could not load SkyblockPlus.sk
10:10:23 ERROR: #!#!
10:10:23 ERROR: #!#! Something went horribly wrong with Skript.
10:10:23 ERROR: #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
10:10:23 ERROR: #!#! It looks like you are using some plugin(s) that alter how Skript works (addons).
10:10:23 ERROR: #!#! Here is full list of them:
10:10:23 ERROR: #!#! skRayFall v1.9.26 (https://sk.rayfall.net/) SkBee v1.15.2 (https://github.com/ShaneBeee/SkBee) SkQuery v4.1.6 Skellett v2.0.3 (https://forums.skunity.com/resources/skellett.24/)
10:10:23 ERROR: #!#! We could not identify which of those are specially related, so this might also be Skript issue.
10:10:23 ERROR: #!#! You should try disabling those plugins one by one, trying to find which one causes it.
10:10:23 ERROR: #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue.
10:10:23 ERROR: #!#! In that case, you will be given instruction on how should you report it.
10:10:23 ERROR: #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin.
10:10:23 ERROR: #!#! Only if the author tells you to do so, report it to Skript's issue tracker.
10:10:23 ERROR: #!#!
10:10:23 ERROR: #!#! Stack trace:
10:10:23 ERROR: #!#! ch.njol.skript.SkriptAPIException: No class info found for citizen
10:10:23 ERROR: #!#! at Skript.jar//ch.njol.skript.registrations.Classes.getClassInfo(Classes.java:263)
10:10:23 ERROR: #!#! at Skript.jar//ch.njol.skript.patterns.TypePatternElement.fromString(TypePatternElement.java:92)
10:10:23 ERROR: #!#! at Skript.jar//ch.njol.skript.patterns.PatternCompiler.compile(PatternCompiler.java:132)
10:10:23 ERROR: #!#! at Skript.jar//ch.njol.skript.patterns.PatternCompiler.compile(PatternCompiler.java:48)
10:10:23 ERROR: #!#! at java.base/java.util.HashMap.computeIfAbsent(HashMap.java:1220)
10:10:23 ERROR: #!#! at Skript.jar//ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1301)
10:10:23 ERROR: #!#! at Skript.jar//ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:226)
10:10:23 ERROR: #!#! at Skript.jar//ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:179)
10:10:23 ERROR: #!#! at Skript.jar//ch.njol.skript.lang.Condition.parse(Condition.java:77)
10:10:23 ERROR: #!#! at Skript.jar//ch.njol.skript.sections.SecConditional.init(SecConditional.java:83)
10:10:23 ERROR: #!#! at Skript.jar//ch.njol.skript.lang.Section.init(Section.java:69)
10:10:23 ERROR: #!#! at Skript.jar//ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:257)
10:10:23 ERROR: #!#! at Skript.jar//ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:179)
10:10:23 ERROR: #!#! at Skript.jar//ch.njol.skript.lang.Section.lambda$parse$0(Section.java:157)
10:10:23 ERROR: #!#! at Skript.jar//ch.njol.skript.lang.Section$SectionContext.modify(Section.java:190)
10:10:23 ERROR: #!#! at Skript.jar//ch.njol.skript.lang.Section.parse(Section.java:156)
10:10:23 ERROR: #!#! at Skript.jar//ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:1127)
10:10:23 ERROR: #!#! at Skript.jar//ch.njol.skript.ScriptLoader.loadScript(ScriptLoader.java:752)
10:10:23 ERROR: #!#! at Skript.jar//ch.njol.skript.ScriptLoader.lambda$loadScripts$4(ScriptLoader.java:525)
10:10:23 ERROR: #!#! at Skript.jar//ch.njol.skript.ScriptLoader.lambda$makeFuture$2(ScriptLoader.java:417)
10:10:23 ERROR: #!#! at Skript.jar//ch.njol.skript.ScriptLoader.makeFuture(ScriptLoader.java:433)
10:10:23 ERROR: #!#! at Skript.jar//ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:524)
10:10:23 ERROR: #!#! at Skript.jar//ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:468)
10:10:23 ERROR: #!#! at Skript.jar//ch.njol.skript.SkriptCommand.onCommand(SkriptCommand.java:140)
10:10:23 ERROR: #!#! at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45)
10:10:23 ERROR: #!#! at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:159)
10:10:23 ERROR: #!#! at org.bukkit.craftbukkit.v1_17_R1.CraftServer.dispatchCommand(CraftServer.java:869)
10:10:23 ERROR: #!#! at net.minecraft.server.network.PlayerConnection.handleCommand(PlayerConnection.java:2262)
10:10:23 ERROR: #!#! at net.minecraft.server.network.PlayerConnection.a(PlayerConnection.java:2073)
10:10:23 ERROR: #!#! at net.minecraft.server.network.PlayerConnection.a(PlayerConnection.java:2054)
10:10:23 ERROR: #!#! at net.minecraft.network.protocol.game.PacketPlayInChat.a(PacketPlayInChat.java:46)
10:10:23 ERROR: #!#! at net.minecraft.network.protocol.game.PacketPlayInChat.a(PacketPlayInChat.java:6)
10:10:23 ERROR: #!#! at net.minecraft.network.protocol.PlayerConnectionUtils.lambda$ensureRunningOnSameThread$1(PlayerConnectionUtils.java:56)
10:10:23 ERROR: #!#! at net.minecraft.server.TickTask.run(TickTask.java:18)
10:10:23 ERROR: #!#! at net.minecraft.util.thread.IAsyncTaskHandler.executeTask(IAsyncTaskHandler.java:149)
10:10:23 ERROR: #!#! at net.minecraft.util.thread.IAsyncTaskHandlerReentrant.executeTask(IAsyncTaskHandlerReentrant.java:23)
10:10:23 ERROR: #!#! at net.minecraft.server.MinecraftServer.executeTask(MinecraftServer.java:1426)
10:10:23 ERROR: #!#! at net.minecraft.server.MinecraftServer.executeTask(MinecraftServer.java:192)
10:10:23 ERROR: #!#! at net.minecraft.util.thread.IAsyncTaskHandler.executeNext(IAsyncTaskHandler.java:122)
10:10:23 ERROR: #!#! at net.minecraft.server.MinecraftServer.bf(MinecraftServer.java:1404)
10:10:23 ERROR: #!#! at net.minecraft.server.MinecraftServer.executeNext(MinecraftServer.java:1397)
10:10:23 ERROR: #!#! at net.minecraft.util.thread.IAsyncTaskHandler.awaitTasks(IAsyncTaskHandler.java:132)
10:10:23 ERROR: #!#! at net.minecraft.server.MinecraftServer.sleepForTick(MinecraftServer.java:1375)
10:10:23 ERROR: #!#! at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1286)
10:10:23 ERROR: #!#! at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:319)
10:10:23 ERROR: #!#! at java.base/java.lang.Thread.run(Thread.java:833)
10:10:23 ERROR: #!#!
10:10:23 ERROR: #!#! Version Information:
10:10:23 ERROR: #!#! Skript: 2.6.1 (latest)
10:10:23 ERROR: #!#! Flavor: skriptlang-github
10:10:23 ERROR: #!#! Date: 22:18:42.554713200
10:10:23 ERROR: #!#! Bukkit: 1.17.1-R0.1-SNAPSHOT
10:10:23 ERROR: #!#! Minecraft: 1.17.1
10:10:23 ERROR: #!#! Java: 17.0.1 (OpenJDK 64-Bit Server VM 17.0.1+12)
10:10:23 ERROR: #!#! OS: Linux amd64 5.13.0-27-generic
10:10:23 ERROR: #!#!
10:10:23 ERROR: #!#! Server platform: Paper
10:10:23 ERROR: #!#!
10:10:23 ERROR: #!#! Current node: loop all players: (SkyblockPlus.sk, line 23)
10:10:23 ERROR: #!#! Current item: null
10:10:23 ERROR: #!#!
10:10:23 ERROR: #!#! Thread: Server thread
10:10:23 ERROR: #!#!
10:10:23 ERROR: #!#! Language: english
10:10:23 ERROR: #!#! Link parse mode: DISABLED
10:10:23 ERROR: #!#!
10:10:23 ERROR: #!#! End of Error.
10:10:23 ERROR: #!#!

@eyesniper2
Copy link
Owner

That looks to be purely a Skript error now, I know you are running Skript for 1.6.1 which is for 1.18. Since you are using 1.17, you might want to try Skript v2.6 and see if that works for you or file a bug on the Skript Team since I dont think "loop all players" should be failing like this.

@193KS
Copy link
Author

193KS commented May 7, 2022

umm im not im running skript v2.6.1

@Com2486
Copy link

Com2486 commented Jul 7, 2022

try using skript v2.6 instead of 2.6.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants