Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
493 kB
3
Indexable
Never
command /shop:
	trigger:
		set {elytraprice} to 1
		set {fireworkprice} to 1
		set {shulkerprice} to 1
		set {enderpearlprice} to 1
		set {enderchestprice} to 1
		set {blazerodprice} to 1
		set {netherwartprice} to 1
		set {magmacreamprice} to 1
		set {glowstonedustprice} to 1
		set {ghasttearprice} to 1
		set {ironingotprice} to 1
		set {goldingotprice} to 1
		set {emeraldprice} to 1
		set {diamondprice} to 1
		set {netheriteingotprice} to 1
		set {ironblockprice} to 1
		set {goldblockprice} to 1
		set {emeraldblockprice} to 1
		set {diamondblockprice} to 1
		set {netheriteblockprice} to 1
		set {respawnanchorprice} to 1
		set {glowstoneblockprice} to 1
		set {obsidianprice} to 1
		set {endercrystalprice} to 1
		set {totemprice} to 1
		set {expbottleprice} to 1
		set {carrotprice} to 1
		set {steakprice} to 1
		set {goldencarrotprice} to 1
		set {goldenappleprice} to 1
		set {egoldenappleprice} to 1
		set {elytrasellprice} to 1
		set {fireworksellprice} to 1
		set {shulkersellprice} to 1
		set {enderpearlsellprice} to 1
		set {enderchestsellprice} to 1
		set {blazerodsellprice} to 1
		set {netherwartsellprice} to 1
		set {magmacreamsellprice} to 1
		set {glowstonedustsellprice} to 1
		set {ghasttearsellprice} to 1
		set {ironingotsellprice} to 1
		set {goldingotsellprice} to 1
		set {emeraldsellprice} to 1
		set {diamondsellprice} to 1
		set {netheriteingotsellprice} to 1
		set {ironblocksellprice} to 1
		set {goldblocksellprice} to 1
		set {emeraldblocksellprice} to 1
		set {diamondblocksellprice} to 1
		set {netheriteblocksellprice} to 1
		set {respawnanchorsellprice} to 1
		set {glowstoneblocksellprice} to 1
		set {obsidiansellprice} to 1
		set {endercrystalsellprice} to 1
		set {totemsellprice} to 1
		set {expbottlesellprice} to 1
		set {carrotsellprice} to 1
		set {steaksellprice} to 1
		set {goldencarrotsellprice} to 1
		set {goldenapplesellprice} to 1
		set {egoldenapplesellprice} to 1
		set {_shop} to a new chest inventory with 3 rows with name "&bShop"
		set slot 9 of {_shop} to end stone named "&l<##FBF8C8>E<##FBFCB3>N<##FAFF9D>D"
		set slot 11 of {_shop} to netherrack named "&l<##fb0000>N<##fc1b01>E<##fd3602>T<##fd5002>H<##fe6b03>E<##ff8604>R"
		set slot 13 of {_shop} to iron ingot named "&l<##006afb>O<##1f9cfb>R<##3ecdfb>E<##5dfffb>S"
		set slot 15 of {_shop} to end crystal named "&l<##8700fb>G<##a600fc>E<##c500fe>A<##e400ff>R"
		set slot 17 of {_shop} to golden apple named "&l<##fbeb00>F<##b0f200>O<##66f800>O<##1bff00>D"
		open {_shop} to player

on inventory click:
	if event-slot is barrier named "&cBack":
		set {_shop} to a new chest inventory with 3 rows with name "&bShop"
		set slot 9 of {_shop} to end stone named "&l<##FBF8C8>E<##FBFCB3>N<##FAFF9D>D"
		set slot 11 of {_shop} to netherrack named "&l<##fb0000>N<##fc1b01>E<##fd3602>T<##fd5002>H<##fe6b03>E<##ff8604>R"
		set slot 13 of {_shop} to iron ingot named "&l<##006afb>O<##1f9cfb>R<##3ecdfb>E<##5dfffb>S"
		set slot 15 of {_shop} to end crystal named "&l<##8700fb>G<##a600fc>E<##c500fe>A<##e400ff>R"
		set slot 17 of {_shop} to golden apple named "&l<##fbeb00>F<##b0f200>O<##66f800>O<##1bff00>D"
		close player's inventory
		open {_shop} to player
	if name of event-inventory is "&bShop", "&l<##FBF8C8>E<##FBFCB3>N<##FAFF9D>D", "&l<##fb0000>N<##fc1b01>E<##fd3602>T<##fd5002>H<##fe6b03>E<##ff8604>R", "&l<##006afb>O<##1f9cfb>R<##3ecdfb>E<##5dfffb>S", "&l<##8700fb>G<##a600fc>E<##c500fe>A<##e400ff>R" or "&l<##fbeb00>F<##b0f200>O<##66f800>O<##1bff00>D":
		set {_elytrastackprice} to {elytraprice} * 64
		set {_elytrastacksellprice} to {elytrasellprice} * 64
		set {_elytralore::*} to "&aBuy&8:&a %{elytraprice}%$  &8[&7Stack&8: &7%{_elytrastackprice}%$&8]", "&cSell&8:&c %{elytrasellprice}%$  &8[&7Stack&8: &7%{_elytrastacksellprice}%$&8]"
		set {_fireworkstackprice} to {fireworkprice} * 64
		set {_fireworkstacksellprice} to {fireworksellprice} * 64
		set {_fireworklore::*} to "&aBuy&8:&a %{fireworkprice}%$  &8[&7Stack&8: &7%{_fireworkstackprice}%$&8]", "&cSell&8:&c %{elytrasellprice}%$  &8[&7Stack&8: &7%{_fireworkstacksellprice}%$&8]"
		set {_shulkerstackprice} to {shulkerprice} * 64
		set {_shulkerstacksellprice} to {shulkersellprice} * 64
		set {_shulkerlore::*} to "&aBuy&8:&a %{shulkerprice}%$  &8[&7Stack&8: &7%{_shulkerstackprice}%$&8]", "&cSell&8:&c %{shulkersellprice}%$  &8[&7Stack&8: &7%{_shulkerstacksellprice}%$&8]"
		set {_enderpearlstackprice} to {enderpearlprice} * 64
		set {_enderpearlstacksellprice} to {enderpearlsellprice} * 64
		set {_enderpearllore::*} to "&aBuy&8:&a %{enderpearlprice}%$  &8[&7Stack&8: &7%{_enderpearlstackprice}%$&8]", "&cSell&8:&c %{enderpearlsellprice}%$  &8[&7Stack&8: &7%{_enderpearlstacksellprice}%$&8]"
		set {_endercheststackprice} to {enderchestprice} * 64
		set {_endercheststacksellprice} to {enderchestsellprice} * 64
		set {_enderchestlore::*} to "&aBuy&8:&a %{enderchestprice}%$  &8[&7Stack&8: &7%{_endercheststackprice}%$&8]", "&cSell&8:&c %{enderchestsellprice}%$  &8[&7Stack&8: &7%{_endercheststacksellprice}%$&8]"
		set {_blazerodstackprice} to {blazerodprice} * 64
		set {_blazerodstacksellprice} to {blazerodsellprice} * 64
		set {_blazerodlore::*} to "&aBuy&8:&a %{blazerodprice}%$  &8[&7Stack&8: &7%{_blazerodstackprice}%$&8]", "&cSell&8:&c %{blazerodsellprice}%$  &8[&7Stack&8: &7%{_blazerodstacksellprice}%$&8]"
		set {_netherwartstackprice} to {netherwartprice} * 64
		set {_netherwartstacksellprice} to {netherwartsellprice} * 64
		set {_netherwartlore::*} to "&aBuy&8:&a %{netherwartprice}%$  &8[&7Stack&8: &7%{_netherwartstackprice}%$&8]", "&cSell&8:&c %{netherwartsellprice}%$  &8[&7Stack&8: &7%{_netherwartstacksellprice}%$&8]"
		set {_magmacreamstackprice} to {magmacreamprice} * 64
		set {_magmacreamstacksellprice} to {magmacreamsellprice} * 64
		set {_magmacreamlore::*} to "&aBuy&8:&a %{magmacreamprice}%$  &8[&7Stack&8: &7%{_magmacreamstackprice}%$&8]", "&cSell&8:&c %{magmacreamsellprice}%$  &8[&7Stack&8: &7%{_magmacreamstacksellprice}%$&8]"
		set {_glowstoneduststackprice} to {glowstonedustprice} * 64
		set {_glowstoneduststacksellprice} to {glowstonedustsellprice} * 64
		set {_glowstonedustlore::*} to "&aBuy&8:&a %{glowstonedustprice}%$  &8[&7Stack&8: &7%{_glowstoneduststackprice}%$&8]", "&cSell&8:&c %{glowstonedustsellprice}%$  &8[&7Stack&8: &7%{_glowstoneduststacksellprice}%$&8]"
		set {_ghasttearstackprice} to {ghasttearprice} * 64
		set {_ghasttearstacksellprice} to {ghasttearsellprice} * 64
		set {_ghasttearlore::*} to "&aBuy&8:&a %{ghasttearprice}%$  &8[&7Stack&8: &7%{_ghasttearstackprice}%$&8]", "&cSell&8:&c %{ghasttearsellprice}%$  &8[&7Stack&8: &7%{_ghasttearstacksellprice}%$&8]"
		set {_ironingotstackprice} to {ironingotprice} * 64
		set {_ironingotstacksellprice} to {ironingotsellprice} * 64
		set {_ironingotlore::*} to "&aBuy&8:&a %{ironingotprice}%$  &8[&7Stack&8: &7%{_ironingotstackprice}%$&8]", "&cSell&8:&c %{ironingotsellprice}%$  &8[&7Stack&8: &7%{_ironingotstacksellprice}%$&8]"
		set {_goldingotstackprice} to {goldingotprice} * 64
		set {_goldingotstacksellprice} to {goldingotsellprice} * 64
		set {_goldingotlore::*} to "&aBuy&8:&a %{goldingotprice}%$  &8[&7Stack&8: &7%{_goldingotstackprice}%$&8]", "&cSell&8:&c %{goldingotsellprice}%$  &8[&7Stack&8: &7%{_goldingotstacksellprice}%$&8]"
		set {_emeraldstackprice} to {emeraldprice} * 64
		set {_emeraldstacksellprice} to {emeraldsellprice} * 64
		set {_emeraldlore::*} to "&aBuy&8:&a %{emeraldprice}%$  &8[&7Stack&8: &7%{_emeraldstackprice}%$&8]", "&cSell&8:&c %{emeraldsellprice}%$  &8[&7Stack&8: &7%{_emeraldstacksellprice}%$&8]"
		set {_diamondstackprice} to {diamondprice} * 64
		set {_diamondstacksellprice} to {diamondsellprice} * 64
		set {_diamondlore::*} to "&aBuy&8:&a %{diamondprice}%$  &8[&7Stack&8: &7%{_diamondstackprice}%$&8]", "&cSell&8:&c %{diamondsellprice}%$  &8[&7Stack&8: &7%{_diamondstacksellprice}%$&8]"
		set {_netheriteingotstackprice} to {netheriteingotprice} * 64
		set {_netheriteingotstacksellprice} to {netheriteingotsellprice} * 64
		set {_netheriteingotlore::*} to "&aBuy&8:&a %{netheriteingotprice}%$  &8[&7Stack&8: &7%{_netheriteingotstackprice}%$&8]", "&cSell&8:&c %{netheriteingotsellprice}%$  &8[&7Stack&8: &7%{_netheriteingotstacksellprice}%$&8]"
		set {_ironblockstackprice} to {ironblockprice} * 64
		set {_ironblockstacksellprice} to {ironblocksellprice} * 64
		set {_ironblocklore::*} to "&aBuy&8:&a %{ironblockprice}%$  &8[&7Stack&8: &7%{_ironblockstackprice}%$&8]", "&cSell&8:&c %{ironblocksellprice}%$  &8[&7Stack&8: &7%{_ironblockstacksellprice}%$&8]"
		set {_goldblockstackprice} to {goldblockprice} * 64
		set {_goldblockstacksellprice} to {goldblocksellprice} * 64
		set {_goldblocklore::*} to "&aBuy&8:&a %{goldblockprice}%$  &8[&7Stack&8: &7%{_goldblockstackprice}%$&8]", "&cSell&8:&c %{goldblocksellprice}%$  &8[&7Stack&8: &7%{_goldblockstacksellprice}%$&8]"
		set {_emeraldblockstackprice} to {emeraldblockprice} * 64
		set {_emeraldblockstacksellprice} to {emeraldblocksellprice} * 64
		set {_emeraldblocklore::*} to "&aBuy&8:&a %{emeraldblockprice}%$  &8[&7Stack&8: &7%{_emeraldblockstackprice}%$&8]", "&cSell&8:&c %{emeraldblocksellprice}%$  &8[&7Stack&8: &7%{_emeraldblockstacksellprice}%$&8]"
		set {_diamondblockstackprice} to {diamondblockprice} * 64
		set {_diamondblockstacksellprice} to {diamondblocksellprice} * 64
		set {_diamondblocklore::*} to "&aBuy&8:&a %{diamondblockprice}%$  &8[&7Stack&8: &7%{_diamondblockstackprice}%$&8]", "&cSell&8:&c %{diamondblocksellprice}%$  &8[&7Stack&8: &7%{_diamondblockstacksellprice}%$&8]"
		set {_netheriteblockstackprice} to {netheriteblockprice} * 64
		set {_netheriteblockstacksellprice} to {netheriteblocksellprice} * 64
		set {_netheriteblocklore::*} to "&aBuy&8:&a %{netheriteblockprice}%$  &8[&7Stack&8: &7%{_netheriteblockstackprice}%$&8]", "&cSell&8:&c %{netheriteblocksellprice}%$  &8[&7Stack&8: &7%{_netheriteblockstacksellprice}%$&8]"
		set {_respawnanchorstackprice} to {respawnanchorprice} * 64
		set {_respawnanchorstacksellprice} to {respawnanchorsellprice} * 64
		set {_respawnanchorlore::*} to "&aBuy&8:&a %{respawnanchorprice}%$  &8[&7Stack&8: &7%{_respawnanchorstackprice}%$&8]", "&cSell&8:&c %{respawnanchorsellprice}%$  &8[&7Stack&8: &7%{_respawnanchorstacksellprice}%$&8]"
		set {_glowstoneblockstackprice} to {glowstoneblockprice} * 64
		set {_glowstoneblockstacksellprice} to {glowstoneblocksellprice} * 64
		set {_glowstoneblocklore::*} to "&aBuy&8:&a %{glowstoneblockprice}%$  &8[&7Stack&8: &7%{_glowstoneblockstackprice}%$&8]", "&cSell&8:&c %{glowstoneblocksellprice}%$  &8[&7Stack&8: &7%{_glowstoneblockstacksellprice}%$&8]"
		set {_obsidianstackprice} to {obsidianprice} * 64
		set {_obsidianstacksellprice} to {obsidiansellprice} * 64
		set {_obsidianlore::*} to "&aBuy&8:&a %{obsidianprice}%$  &8[&7Stack&8: &7%{_obsidianstackprice}%$&8]", "&cSell&8:&c %{obsidiansellprice}%$  &8[&7Stack&8: &7%{_obsidianstacksellprice}%$&8]"
		set {_endercrystalstackprice} to {endercrystalprice} * 64
		set {_endercrystalstacksellprice} to {endercrystalsellprice} * 64
		set {_endercrystallore::*} to "&aBuy&8:&a %{endercrystalprice}%$  &8[&7Stack&8: &7%{_endercrystalstackprice}%$&8]", "&cSell&8:&c %{endercrystalsellprice}%$  &8[&7Stack&8: &7%{_endercrystalstacksellprice}%$&8]"
		set {_totemstackprice} to {totemprice} * 64
		set {_totemstacksellprice} to {totemsellprice} * 64
		set {_totemlore::*} to "&aBuy&8:&a %{totemprice}%$  &8[&7Stack&8: &7%{_totemstackprice}%$&8]", "&cSell&8:&c %{totemsellprice}%$  &8[&7Stack&8: &7%{_totemstacksellprice}%$&8]"
		set {_expbottlestackprice} to {expbottleprice} * 64
		set {_expbottlestacksellprice} to {expbottlesellprice} * 64
		set {_expbottlelore::*} to "&aBuy&8:&a %{expbottleprice}%$  &8[&7Stack&8: &7%{_expbottlestackprice}%$&8]", "&cSell&8:&c %{expbottlesellprice}%$  &8[&7Stack&8: &7%{_expbottlestacksellprice}%$&8]"
		set {_carrotstackprice} to {carrotprice} * 64
		set {_carrotstacksellprice} to {carrotsellprice} * 64
		set {_carrotlore::*} to "&aBuy&8:&a %{carrotprice}%$  &8[&7Stack&8: &7%{_carrotstackprice}%$&8]", "&cSell&8:&c %{carrotsellprice}%$  &8[&7Stack&8: &7%{_carrotstacksellprice}%$&8]"
		set {_steakstackprice} to {steakprice} * 64
		set {_steakstacksellprice} to {steaksellprice} * 64
		set {_steaklore::*} to "&aBuy&8:&a %{steakprice}%$  &8[&7Stack&8: &7%{_steakstackprice}%$&8]", "&cSell&8:&c %{steaksellprice}%$  &8[&7Stack&8: &7%{_steakstacksellprice}%$&8]"
		set {_goldencarrotstackprice} to {goldencarrotprice} * 64
		set {_goldencarrotstacksellprice} to {goldencarrotsellprice} * 64
		set {_goldencarrotlore::*} to "&aBuy&8:&a %{goldencarrotprice}%$  &8[&7Stack&8: &7%{_goldencarrotstackprice}%$&8]", "&cSell&8:&c %{goldencarrotsellprice}%$  &8[&7Stack&8: &7%{_goldencarrotstacksellprice}%$&8]"
		set {_goldenapplestackprice} to {goldenappleprice} * 64
		set {_goldenapplestacksellprice} to {goldenapplesellprice} * 64
		set {_goldenapplelore::*} to "&aBuy&8:&a %{goldenappleprice}%$  &8[&7Stack&8: &7%{_goldenapplestackprice}%$&8]", "&cSell&8:&c %{goldenapplesellprice}%$  &8[&7Stack&8: &7%{_goldenapplestacksellprice}%$&8]"
		set {_egoldenapplestackprice} to {egoldenappleprice} * 64
		set {_egoldenapplestacksellprice} to {egoldenapplesellprice} * 64
		set {_egoldenapplelore::*} to "&aBuy&8:&a %{egoldenappleprice}%$  &8[&7Stack&8: &7%{_egoldenapplestackprice}%$&8]", "&cSell&8:&c %{egoldenapplesellprice}%$  &8[&7Stack&8: &7%{_egoldenapplestacksellprice}%$&8]"
	if name of event-inventory is "&bShop":
		cancel event
		play sound "ui.button.click" to player
		if index of event-slot = 9:
			set {_shopend} to a new chest inventory with 3 rows with name "&l<##FBF8C8>E<##FBFCB3>N<##FAFF9D>D"
			set slot 4 of {_shopend} to end stone named "&l<##FBF8C8>E<##FBFCB3>N<##FAFF9D>D"
			set slot 9 of {_shopend} to elytra named "&5Elytra" with lore {_elytralore::*}
			set slot 11 of {_shopend} to firework rocket named "&5Rockets" with lore {_fireworklore::*}
			set slot 13 of {_shopend} to shulker box named "&5Shulkers" with lore {_shulkerlore::*}
			set slot 15 of {_shopend} to ender pearl named "&5Ender Pearls" with lore {_enderpearllore::*}
			set slot 17 of {_shopend} to ender chest named "&5Ender Chests" with lore {_enderchestlore::*}
			set slot 22 of {_shopend} to barrier named "&cBack"
			close player's inventory
			open {_shopend} to player
		if index of event-slot = 11:
			set {_shopnether} to a new chest inventory with 3 rows with name "&l<##fb0000>N<##fc1b01>E<##fd3602>T<##fd5002>H<##fe6b03>E<##ff8604>R"
			set slot 4 of {_shopnether} to netherrack named "&l<##fb0000>N<##fc1b01>E<##fd3602>T<##fd5002>H<##fe6b03>E<##ff8604>R"
			set slot 9 of {_shopnether} to blaze rod named "&cBlaze Rods" with lore {_blazerodlore::*}
			set slot 11 of {_shopnether} to nether wart named "&cNether Warts" with lore {_netherwartlore::*}
			set slot 13 of {_shopnether} to magma cream named "&cMagma Cream" with lore {_magmacreamlore::*}
			set slot 15 of {_shopnether} to glowstone dust named "&cGlowstone" with lore {_glowstonedustlore::*}
			set slot 17 of {_shopnether} to ghast tear named "&cGhast Tears" with lore {_ghasttearlore::*}
			set slot 22 of {_shopnether} to barrier named "&cBack"
			close player's inventory
			open {_shopnether} to player
		if index of event-slot = 13:
			set {_shopores} to a new chest inventory with 4 rows with name "&l<##006afb>O<##1f9cfb>R<##3ecdfb>E<##5dfffb>S"
			set slot 4 of {_shopores} to iron ingot named "&l<##006afb>O<##1f9cfb>R<##3ecdfb>E<##5dfffb>S"
			set slot 9 of {_shopores} to iron ingot named "&bIron Ingots" with lore {_ironingotlore::*}
			set slot 11 of {_shopores} to gold ingot named "&bGold Ingots" with lore {_goldingotlore::*}
			set slot 13 of {_shopores} to emerald named "&bEmeralds" with lore {_emeraldlore::*}
			set slot 15 of {_shopores} to diamond named "&bDiamonds" with lore {_diamondlore::*}
			set slot 17 of {_shopores} to netherite ingot named "&bNetherite Ingots" with lore {_netheriteingotlore::*}
			set slot 18 of {_shopores} to iron block named "&bIron Blocks" with lore {_ironblocklore::*}
			set slot 20 of {_shopores} to gold block named "&bGold Blocks" with lore {_goldblocklore::*}
			set slot 22 of {_shopores} to emerald block named "&bEmerald Blocks" with lore {_emeraldblocklore::*}
			set slot 24 of {_shopores} to diamond block named "&bDiamond Blocks" with lore {_diamondblocklore::*}
			set slot 26 of {_shopores} to netherite block named "&bNetherite Blocks" with lore {_netheriteblocklore::*}
			set slot 31 of {_shopores} to barrier named "&cBack"
			close player's inventory
			open {_shopores} to player
		if index of event-slot = 15:
			set {_shopgear} to a new chest inventory with 4 rows with name "&l<##8700fb>G<##a600fc>E<##c500fe>A<##e400ff>R"
			set slot 4 of {_shopgear} to end crystal named "&l<##8700fb>G<##a600fc>E<##c500fe>A<##e400ff>R"
			set slot 9 of {_shopgear} to respawn anchor named "&3Respawn Anchors" with lore {_respawnanchorlore::*}
			set slot 11 of {_shopgear} to glowstone named "&3Glowstone Blocks" with lore {_glowstoneblocklore::*}
			set slot 13 of {_shopgear} to obsidian named "&3Obsidian" with lore {_obsidianlore::*}
			set slot 15 of {_shopgear} to end crystal named "&3End Crystals" with lore {_endercrystallore::*}
			set slot 17 of {_shopgear} to totem of undying named "&3Totems Of Undying" with lore {_totemlore::*}
			set slot 22 of {_shopgear} to experience bottle named "&3Experience Bottles" with lore {_expbottlelore::*}
			set slot 31 of {_shopgear} to barrier named "&cBack"
			close player's inventory
			open {_shopgear} to player
		if index of event-slot = 17:
			set {_shopfood} to a new chest inventory with 3 rows with name "&l<##fbeb00>F<##b0f200>O<##66f800>O<##1bff00>D"
			set slot 4 of {_shopfood} to golden apple named "&l<##fbeb00>F<##b0f200>O<##66f800>O<##1bff00>D"
			set slot 9 of {_shopfood} to carrot named "&6Carrots" with lore {_carrotlore::*}
			set slot 11 of {_shopfood} to cooked beef named "&6Steaks" with lore {_steaklore::*}
			set slot 13 of {_shopfood} to golden carrot named "&6Golden Carrots" with lore {_goldencarrotlore::*}
			set slot 15 of {_shopfood} to golden apple named "&6Golden Apples" with lore {_goldenapplelore::*}
			set slot 17 of {_shopfood} to enchanted golden apple named "&6Enchanted Golden Apples" with lore {_egoldenapplelore::*}
			set slot 22 of {_shopfood} to barrier named "&cBack"
			close player's inventory
			open {_shopfood} to player
	if name of event-inventory is "&l<##FBF8C8>E<##FBFCB3>N<##FAFF9D>D":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 9:
			set {_buyorsellelytra} to a new chest inventory with 3 rows with name "&5Elytra"
			set slot 4 of {_buyorsellelytra} to elytra named "&5Elytra" with lore {_elytralore::*}
			set slot 11 of {_buyorsellelytra} to green concrete named "&aBuy"
			set slot 15 of {_buyorsellelytra} to red concrete named "&cSell"
			set slot 22 of {_buyorsellelytra} to barrier named "&cBack"
			close player's inventory
			open {_buyorsellelytra} to player
		if index of event-slot = 11:
			set {_buyorsellrockets} to a new chest inventory with 3 rows with name "&5Rockets"
			set slot 4 of {_buyorsellrockets} to firework rocket named "&5Firework Rockets" with lore {_fireworklore::*}
			set slot 11 of {_buyorsellrockets} to green concrete named "&aBuy"
			set slot 15 of {_buyorsellrockets} to red concrete named "&cSell"
			set slot 22 of {_buyorsellrockets} to barrier named "&cBack"
			close player's inventory
			open {_buyorsellrockets} to player
		if index of event-slot = 13:
			set {_buyorsellshulkers} to a new chest inventory with 3 rows with name "&5Shulkers"
			set slot 4 of {_buyorsellshulkers} to shulker box named "&5Shulker Boxes" with lore {_shulkerlore::*}
			set slot 11 of {_buyorsellshulkers} to green concrete named "&aBuy"
			set slot 15 of {_buyorsellshulkers} to red concrete named "&cSell"
			set slot 22 of {_buyorsellshulkers} to barrier named "&cBack"
			close player's inventory
			open {_buyorsellshulkers} to player
		if index of event-slot = 15:
			set {_buyorsellpearls} to a new chest inventory with 3 rows with name "&5Ender Pearls"
			set slot 4 of {_buyorsellpearls} to ender pearl named "&5Ender Pearls" with lore {_enderpearllore::*}
			set slot 11 of {_buyorsellpearls} to green concrete named "&aBuy"
			set slot 15 of {_buyorsellpearls} to red concrete named "&cSell"
			set slot 22 of {_buyorsellpearls} to barrier named "&cBack"
			close player's inventory
			open {_buyorsellpearls} to player
		if index of event-slot = 17:
			set {_buyorsellenderchests} to a new chest inventory with 3 rows with name "&5Ender Chests"
			set slot 4 of {_buyorsellenderchests} to ender chest named "&5Ender Chests" with lore {_enderchestlore::*}
			set slot 11 of {_buyorsellenderchests} to green concrete named "&aBuy"
			set slot 15 of {_buyorsellenderchests} to red concrete named "&cSell"
			set slot 22 of {_buyorsellenderchests} to barrier named "&cBack"
			close player's inventory
			open {_buyorsellenderchests} to player
	if name of event-inventory is "&5Elytra":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 11:
			set {_buyelytra} to a new chest inventory with 6 rows with name "&5Buy Elytra"
			set {temporaryamount::player} to 1
			set slot 4 of {_buyelytra} to elytra named "&5Elytra"
			set slot 19 of {_buyelytra} to green glass named "&a+1"
			set slot 22 of {_buyelytra} to green glass named "&a+5"
			set slot 25 of {_buyelytra} to green glass named "&aSet to 64"
			set slot 28 of {_buyelytra} to red glass named "&c-1"
			set slot 31 of {_buyelytra} to red glass named "&c-5"
			set slot 34 of {_buyelytra} to red glass named "&cSet to 1"
			set slot 49 of {_buyelytra} to green concrete named "&2Buy"
			close player's inventory
			open {_buyelytra} to player
		if index of event-slot = 15:
			set {_sellelytra} to a new chest inventory with 6 rows with name "&5Sell Elytra"
			set {temporaryamount::player} to 1
			set slot 4 of {_sellelytra} to elytra named "&5Elytra"
			set slot 19 of {_sellelytra} to green glass named "&a+1"
			set slot 22 of {_sellelytra} to green glass named "&a+5"
			set slot 25 of {_sellelytra} to green glass named "&aSelect all"
			set slot 28 of {_sellelytra} to red glass named "&c-1"
			set slot 31 of {_sellelytra} to red glass named "&c-5"
			set slot 34 of {_sellelytra} to red glass named "&cSet to 1"
			set slot 49 of {_sellelytra} to green concrete named "&2Sell"
			close player's inventory
			open {_sellelytra} to player
	if name of event-inventory is "&5Buy Elytra":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buyelytra} to a new chest inventory with 6 rows with name "&5Buy Elytra"
			set slot 4 of {_buyelytra} to {temporaryamount::player} of elytra named "&5Elytra"
			set slot 19 of {_buyelytra} to green glass named "&a+1"
			set slot 22 of {_buyelytra} to green glass named "&a+5"
			set slot 25 of {_buyelytra} to green glass named "&aSet to 64"
			set slot 28 of {_buyelytra} to red glass named "&c-1"
			set slot 31 of {_buyelytra} to red glass named "&c-5"
			set slot 34 of {_buyelytra} to red glass named "&cSet to 1"
			set slot 49 of {_buyelytra} to green concrete named "&2Buy"
			close player's inventory
			open {_buyelytra} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buyelytra} to a new chest inventory with 6 rows with name "&5Buy Elytra"
			set slot 4 of {_buyelytra} to {temporaryamount::player} of elytra named "&5Elytra"
			set slot 19 of {_buyelytra} to green glass named "&a+1"
			set slot 22 of {_buyelytra} to green glass named "&a+5"
			set slot 25 of {_buyelytra} to green glass named "&aSet to 64"
			set slot 28 of {_buyelytra} to red glass named "&c-1"
			set slot 31 of {_buyelytra} to red glass named "&c-5"
			set slot 34 of {_buyelytra} to red glass named "&cSet to 1"
			set slot 49 of {_buyelytra} to green concrete named "&2Buy"
			close player's inventory
			open {_buyelytra} to player
		if index of event-slot = 25:
			set {temporaryamount::player} to 64
			set {_buyelytra} to a new chest inventory with 6 rows with name "&5Buy Elytra"
			set slot 4 of {_buyelytra} to {temporaryamount::player} of elytra named "&5Elytra"
			set slot 19 of {_buyelytra} to green glass named "&a+1"
			set slot 22 of {_buyelytra} to green glass named "&a+5"
			set slot 25 of {_buyelytra} to green glass named "&aSet to 64"
			set slot 28 of {_buyelytra} to red glass named "&c-1"
			set slot 31 of {_buyelytra} to red glass named "&c-5"
			set slot 34 of {_buyelytra} to red glass named "&cSet to 1"
			set slot 49 of {_buyelytra} to green concrete named "&2Buy"
			close player's inventory
			open {_buyelytra} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buyelytra} to a new chest inventory with 6 rows with name "&5Buy Elytra"
			set slot 4 of {_buyelytra} to {temporaryamount::player} of elytra named "&5Elytra"
			set slot 19 of {_buyelytra} to green glass named "&a+1"
			set slot 22 of {_buyelytra} to green glass named "&a+5"
			set slot 25 of {_buyelytra} to green glass named "&aSet to 64"
			set slot 28 of {_buyelytra} to red glass named "&c-1"
			set slot 31 of {_buyelytra} to red glass named "&c-5"
			set slot 34 of {_buyelytra} to red glass named "&cSet to 1"
			set slot 49 of {_buyelytra} to green concrete named "&2Buy"
			close player's inventory
			open {_buyelytra} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buyelytra} to a new chest inventory with 6 rows with name "&5Buy Elytra"
			set slot 4 of {_buyelytra} to {temporaryamount::player} of elytra named "&5Elytra"
			set slot 19 of {_buyelytra} to green glass named "&a+1"
			set slot 22 of {_buyelytra} to green glass named "&a+5"
			set slot 25 of {_buyelytra} to green glass named "&aSet to 64"
			set slot 28 of {_buyelytra} to red glass named "&c-1"
			set slot 31 of {_buyelytra} to red glass named "&c-5"
			set slot 34 of {_buyelytra} to red glass named "&cSet to 1"
			set slot 49 of {_buyelytra} to green concrete named "&2Buy"
			close player's inventory
			open {_buyelytra} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_buyelytra} to a new chest inventory with 6 rows with name "&5Buy Elytra"
			set slot 4 of {_buyelytra} to {temporaryamount::player} of elytra named "&5Elytra"
			set slot 19 of {_buyelytra} to green glass named "&a+1"
			set slot 22 of {_buyelytra} to green glass named "&a+5"
			set slot 25 of {_buyelytra} to green glass named "&aSet to 64"
			set slot 28 of {_buyelytra} to red glass named "&c-1"
			set slot 31 of {_buyelytra} to red glass named "&c-5"
			set slot 34 of {_buyelytra} to red glass named "&cSet to 1"
			set slot 49 of {_buyelytra} to green concrete named "&2Buy"
			close player's inventory
			open {_buyelytra} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {elytraprice}
			if player's balance >= {payment::player}:
				give {temporaryamount::player} of elytras to player
				if {temporaryamount::player} is more than 1:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c elytras for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c elytras for &6%{payment::player}%&c coin!"
				else:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c elytra for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c elytra for &6%{payment::player}%&c coin!"
				set {_money} to player's balance
				set player's balance to {_money} - {payment::player}
			else:
				send "&cYou don't have enough money, baka!"
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
	if name of event-inventory is "&5Sell Elytra":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_sellelytra} to a new chest inventory with 6 rows with name "&5Sell Elytra"
			set slot 4 of {_sellelytra} to {temporaryamount::player} of elytra named "&5Elytra"
			set slot 19 of {_sellelytra} to green glass named "&a+1"
			set slot 22 of {_sellelytra} to green glass named "&a+5"
			set slot 25 of {_sellelytra} to green glass named "&aSelect all"
			set slot 28 of {_sellelytra} to red glass named "&c-1"
			set slot 31 of {_sellelytra} to red glass named "&c-5"
			set slot 34 of {_sellelytra} to red glass named "&cSet to 1"
			set slot 49 of {_sellelytra} to green concrete named "&2Sell"
			close player's inventory
			open {_sellelytra} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_sellelytra} to a new chest inventory with 6 rows with name "&5Sell Elytra"
			set slot 4 of {_sellelytra} to {temporaryamount::player} of elytra named "&5Elytra"
			set slot 19 of {_sellelytra} to green glass named "&a+1"
			set slot 22 of {_sellelytra} to green glass named "&a+5"
			set slot 25 of {_sellelytra} to green glass named "&aSelect all"
			set slot 28 of {_sellelytra} to red glass named "&c-1"
			set slot 31 of {_sellelytra} to red glass named "&c-5"
			set slot 34 of {_sellelytra} to red glass named "&cSet to 1"
			set slot 49 of {_sellelytra} to green concrete named "&2Sell"
			close player's inventory
			open {_sellelytra} to player
		if index of event-slot = 25:
			set {itemamount::player} to 0
			loop all items in player's inventory:
				if loop-item is an elytra:
					add 1 to {itemamount::player}
			set {temporaryamount::player} to {itemamount::player}
			set {_sellelytra} to a new chest inventory with 6 rows with name "&5Sell Elytra"
			set slot 4 of {_sellelytra} to {temporaryamount::player} of elytra named "&5Elytra"
			set slot 19 of {_sellelytra} to green glass named "&a+1"
			set slot 22 of {_sellelytra} to green glass named "&a+5"
			set slot 25 of {_sellelytra} to green glass named "&aSelect all"
			set slot 28 of {_sellelytra} to red glass named "&c-1"
			set slot 31 of {_sellelytra} to red glass named "&c-5"
			set slot 34 of {_sellelytra} to red glass named "&cSet to 1"
			set slot 49 of {_sellelytra} to green concrete named "&2Sell"
			close player's inventory
			open {_sellelytra} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_sellelytra} to a new chest inventory with 6 rows with name "&5Sell Elytra"
			set slot 4 of {_sellelytra} to {temporaryamount::player} of elytra named "&5Elytra"
			set slot 19 of {_sellelytra} to green glass named "&a+1"
			set slot 22 of {_sellelytra} to green glass named "&a+5"
			set slot 25 of {_sellelytra} to green glass named "&aSelect all"
			set slot 28 of {_sellelytra} to red glass named "&c-1"
			set slot 31 of {_sellelytra} to red glass named "&c-5"
			set slot 34 of {_sellelytra} to red glass named "&cSet to 1"
			set slot 49 of {_sellelytra} to green concrete named "&2Sell"
			close player's inventory
			open {_sellelytra} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_sellelytra} to a new chest inventory with 6 rows with name "&5Sell Elytra"
			set slot 4 of {_sellelytra} to {temporaryamount::player} of elytra named "&5Elytra"
			set slot 19 of {_sellelytra} to green glass named "&a+1"
			set slot 22 of {_sellelytra} to green glass named "&a+5"
			set slot 25 of {_sellelytra} to green glass named "&aSelect all"
			set slot 28 of {_sellelytra} to red glass named "&c-1"
			set slot 31 of {_sellelytra} to red glass named "&c-5"
			set slot 34 of {_sellelytra} to red glass named "&cSet to 1"
			set slot 49 of {_sellelytra} to green concrete named "&2Sell"
			close player's inventory
			open {_sellelytra} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_sellelytra} to a new chest inventory with 6 rows with name "&5Sell Elytra"
			set slot 4 of {_sellelytra} to {temporaryamount::player} of elytra named "&5Elytra"
			set slot 19 of {_sellelytra} to green glass named "&a+1"
			set slot 22 of {_sellelytra} to green glass named "&a+5"
			set slot 25 of {_sellelytra} to green glass named "&aSelect all"
			set slot 28 of {_sellelytra} to red glass named "&c-1"
			set slot 31 of {_sellelytra} to red glass named "&c-5"
			set slot 34 of {_sellelytra} to red glass named "&cSet to 1"
			set slot 49 of {_sellelytra} to green concrete named "&2Sell"
			close player's inventory
			open {_sellelytra} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {elytrasellprice}
			set {itemamount::player} to 0
			loop all items in player's inventory:
				if loop-item is an elytra:
					add 1 to {itemamount::player}
			if {itemamount::player} >= {temporaryamount::player} :
				remove {temporaryamount::player} of elytras from player's inventory
			else:
				send "&cYou selected more items than the ones you have!"
			if {temporaryamount::player} is more than 1:
				if {payment::player} is more than 1:
					send "&cYou sold &6%{temporaryamount::player}%&c elytras for &6%{payment::player}%&c coins!"
				else:
					send "&cYou sold &6%{temporaryamount::player}%&c elytras for &6%{payment::player}%&c coin!"
			else:
				if {payment::player} is more than 1:
					send "&cYou sold &6%{temporaryamount::player}%&c elytra for &6%{payment::player}%&c coins!"
				else:
					send "&cYou sold &6%{temporaryamount::player}%&c elytra for &6%{payment::player}%&c coin!"
			set {_money} to player's balance
			set player's balance to {_money} + {payment::player}
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
			delete {itemamount::player}
	if name of event-inventory is "&5Rockets":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 11:
			set {_buyrockets} to a new chest inventory with 6 rows with name "&5Buy Rockets"
			set {temporaryamount::player} to 1
			set slot 4 of {_buyrockets} to firework rocket named "&5Firework Rocket"
			set slot 19 of {_buyrockets} to green glass named "&a+1"
			set slot 22 of {_buyrockets} to green glass named "&a+5"
			set slot 25 of {_buyrockets} to green glass named "&aSet to 64"
			set slot 28 of {_buyrockets} to red glass named "&c-1"
			set slot 31 of {_buyrockets} to red glass named "&c-5"
			set slot 34 of {_buyrockets} to red glass named "&cSet to 1"
			set slot 49 of {_buyrockets} to green concrete named "&2Buy"
			close player's inventory
			open {_buyrockets} to player
		if index of event-slot = 15:
			set {_sellrockets} to a new chest inventory with 6 rows with name "&5Sell Rockets"
			set {temporaryamount::player} to 1
			set slot 4 of {_sellrockets} to firework rocket named "&5Firework Rocket"
			set slot 19 of {_sellrockets} to green glass named "&a+1"
			set slot 22 of {_sellrockets} to green glass named "&a+5"
			set slot 25 of {_sellrockets} to green glass named "&aSelect all"
			set slot 28 of {_sellrockets} to red glass named "&c-1"
			set slot 31 of {_sellrockets} to red glass named "&c-5"
			set slot 34 of {_sellrockets} to red glass named "&cSet to 1"
			set slot 49 of {_sellrockets} to green concrete named "&2Sell"
			close player's inventory
			open {_sellrockets} to player
	if name of event-inventory is "&5Buy Rockets":
		play sound "ui.button.click" to player
		if index of event-slot = 4, 19, 22, 25, 28, 31, 34 or 49:
			cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buyrockets} to a new chest inventory with 6 rows with name "&5Buy Rockets"
			set slot 4 of {_buyrockets} to {temporaryamount::player} of firework rocket named "&5Firework Rocket"
			set slot 19 of {_buyrockets} to green glass named "&a+1"
			set slot 22 of {_buyrockets} to green glass named "&a+5"
			set slot 25 of {_buyrockets} to green glass named "&aSet to 64"
			set slot 28 of {_buyrockets} to red glass named "&c-1"
			set slot 31 of {_buyrockets} to red glass named "&c-5"
			set slot 34 of {_buyrockets} to red glass named "&cSet to 1"
			set slot 49 of {_buyrockets} to green concrete named "&2Buy"
			close player's inventory
			open {_buyrockets} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buyrockets} to a new chest inventory with 6 rows with name "&5Buy Rockets"
			set slot 4 of {_buyrockets} to {temporaryamount::player} of firework rocket named "&5Firework Rocket"
			set slot 19 of {_buyrockets} to green glass named "&a+1"
			set slot 22 of {_buyrockets} to green glass named "&a+5"
			set slot 25 of {_buyrockets} to green glass named "&aSet to 64"
			set slot 28 of {_buyrockets} to red glass named "&c-1"
			set slot 31 of {_buyrockets} to red glass named "&c-5"
			set slot 34 of {_buyrockets} to red glass named "&cSet to 1"
			set slot 49 of {_buyrockets} to green concrete named "&2Buy"
			close player's inventory
			open {_buyrockets} to player
		if index of event-slot = 25:
			set {temporaryamount::player} to 64
			set {_buyrockets} to a new chest inventory with 6 rows with name "&5Buy Rockets"
			set slot 4 of {_buyrockets} to {temporaryamount::player} of firework rocket named "&5Firework Rocket"
			set slot 19 of {_buyrockets} to green glass named "&a+1"
			set slot 22 of {_buyrockets} to green glass named "&a+5"
			set slot 25 of {_buyrockets} to green glass named "&aSet to 64"
			set slot 28 of {_buyrockets} to red glass named "&c-1"
			set slot 31 of {_buyrockets} to red glass named "&c-5"
			set slot 34 of {_buyrockets} to red glass named "&cSet to 1"
			set slot 49 of {_buyrockets} to green concrete named "&2Buy"
			close player's inventory
			open {_buyrockets} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buyrockets} to a new chest inventory with 6 rows with name "&5Buy Rockets"
			set slot 4 of {_buyrockets} to {temporaryamount::player} of firework rocket named "&5Firework Rocket"
			set slot 19 of {_buyrockets} to green glass named "&a+1"
			set slot 22 of {_buyrockets} to green glass named "&a+5"
			set slot 25 of {_buyrockets} to green glass named "&aSet to 64"
			set slot 28 of {_buyrockets} to red glass named "&c-1"
			set slot 31 of {_buyrockets} to red glass named "&c-5"
			set slot 34 of {_buyrockets} to red glass named "&cSet to 1"
			set slot 49 of {_buyrockets} to green concrete named "&2Buy"
			close player's inventory
			open {_buyrockets} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buyrockets} to a new chest inventory with 6 rows with name "&5Buy Rockets"
			set slot 4 of {_buyrockets} to {temporaryamount::player} of firework rocket named "&5Firework Rocket"
			set slot 19 of {_buyrockets} to green glass named "&a+1"
			set slot 22 of {_buyrockets} to green glass named "&a+5"
			set slot 25 of {_buyrockets} to green glass named "&aSet to 64"
			set slot 28 of {_buyrockets} to red glass named "&c-1"
			set slot 31 of {_buyrockets} to red glass named "&c-5"
			set slot 34 of {_buyrockets} to red glass named "&cSet to 1"
			set slot 49 of {_buyrockets} to green concrete named "&2Buy"
			close player's inventory
			open {_buyrockets} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_buyrockets} to a new chest inventory with 6 rows with name "&5Buy Rockets"
			set slot 4 of {_buyrockets} to {temporaryamount::player} of firework rocket named "&5Firework Rocket"
			set slot 19 of {_buyrockets} to green glass named "&a+1"
			set slot 22 of {_buyrockets} to green glass named "&a+5"
			set slot 25 of {_buyrockets} to green glass named "&aSet to 64"
			set slot 28 of {_buyrockets} to red glass named "&c-1"
			set slot 31 of {_buyrockets} to red glass named "&c-5"
			set slot 34 of {_buyrockets} to red glass named "&cSet to 1"
			set slot 49 of {_buyrockets} to green concrete named "&2Buy"
			close player's inventory
			open {_buyrockets} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {fireworkprice}
			if player's balance >= {payment::player}:
				give {temporaryamount::player} of firework rocket to player
				if {temporaryamount::player} is more than 1:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c firework rockets for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c firework rockets for &6%{payment::player}%&c coin!"
				else:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c firework rocket for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c firework rocket for &6%{payment::player}%&c coin!"
				set {_money} to player's balance
				set player's balance to {_money} - {payment::player}
			else:
				send "&cYou don't have enough money, baka!"
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
	if name of event-inventory is "&5Sell Rockets":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_sellrockets} to a new chest inventory with 6 rows with name "&5Sell Rockets"
			set slot 4 of {_sellrockets} to {temporaryamount::player} of firework rocket named "&5Firework Rocket"
			set slot 19 of {_sellrockets} to green glass named "&a+1"
			set slot 22 of {_sellrockets} to green glass named "&a+5"
			set slot 25 of {_sellrockets} to green glass named "&aSelect all"
			set slot 28 of {_sellrockets} to red glass named "&c-1"
			set slot 31 of {_sellrockets} to red glass named "&c-5"
			set slot 34 of {_sellrockets} to red glass named "&cSet to 1"
			set slot 49 of {_sellrockets} to green concrete named "&2Sell"
			close player's inventory
			open {_sellrockets} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_sellrockets} to a new chest inventory with 6 rows with name "&5Sell Rockets"
			set slot 4 of {_sellrockets} to {temporaryamount::player} of firework rocket named "&5Firework Rocket"
			set slot 19 of {_sellrockets} to green glass named "&a+1"
			set slot 22 of {_sellrockets} to green glass named "&a+5"
			set slot 25 of {_sellrockets} to green glass named "&aSelect all"
			set slot 28 of {_sellrockets} to red glass named "&c-1"
			set slot 31 of {_sellrockets} to red glass named "&c-5"
			set slot 34 of {_sellrockets} to red glass named "&cSet to 1"
			set slot 49 of {_sellrockets} to green concrete named "&2Sell"
			close player's inventory
			open {_sellrockets} to player
		if index of event-slot = 25:
			set {itemamount::player} to 0
			set {itemamount::player} to number of fireworks in the player's inventory
			set {temporaryamount::player} to {itemamount::player}
			set {_sellrockets} to a new chest inventory with 6 rows with name "&5Sell Rockets"
			set slot 4 of {_sellrockets} to {temporaryamount::player} of firework rocket named "&5Firework Rocket"
			set slot 19 of {_sellrockets} to green glass named "&a+1"
			set slot 22 of {_sellrockets} to green glass named "&a+5"
			set slot 25 of {_sellrockets} to green glass named "&aSelect all"
			set slot 28 of {_sellrockets} to red glass named "&c-1"
			set slot 31 of {_sellrockets} to red glass named "&c-5"
			set slot 34 of {_sellrockets} to red glass named "&cSet to 1"
			set slot 49 of {_sellrockets} to green concrete named "&2Sell"
			close player's inventory
			open {_sellrockets} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_sellrockets} to a new chest inventory with 6 rows with name "&5Sell Rockets"
			set slot 4 of {_sellrockets} to {temporaryamount::player} of firework rocket named "&5Firework Rocket"
			set slot 19 of {_sellrockets} to green glass named "&a+1"
			set slot 22 of {_sellrockets} to green glass named "&a+5"
			set slot 25 of {_sellrockets} to green glass named "&aSelect all"
			set slot 28 of {_sellrockets} to red glass named "&c-1"
			set slot 31 of {_sellrockets} to red glass named "&c-5"
			set slot 34 of {_sellrockets} to red glass named "&cSet to 1"
			set slot 49 of {_sellrockets} to green concrete named "&2Sell"
			close player's inventory
			open {_sellrockets} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_sellrockets} to a new chest inventory with 6 rows with name "&5Sell Rockets"
			set slot 4 of {_sellrockets} to {temporaryamount::player} of firework rocket named "&5Firework Rocket"
			set slot 19 of {_sellrockets} to green glass named "&a+1"
			set slot 22 of {_sellrockets} to green glass named "&a+5"
			set slot 25 of {_sellrockets} to green glass named "&aSelect all"
			set slot 28 of {_sellrockets} to red glass named "&c-1"
			set slot 31 of {_sellrockets} to red glass named "&c-5"
			set slot 34 of {_sellrockets} to red glass named "&cSet to 1"
			set slot 49 of {_sellrockets} to green concrete named "&2Sell"
			close player's inventory
			open {_sellrockets} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_sellrockets} to a new chest inventory with 6 rows with name "&5Sell Rockets"
			set slot 4 of {_sellrockets} to {temporaryamount::player} of firework rocket named "&5Firework Rocket"
			set slot 19 of {_sellrockets} to green glass named "&a+1"
			set slot 22 of {_sellrockets} to green glass named "&a+5"
			set slot 25 of {_sellrockets} to green glass named "&aSelect all"
			set slot 28 of {_sellrockets} to red glass named "&c-1"
			set slot 31 of {_sellrockets} to red glass named "&c-5"
			set slot 34 of {_sellrockets} to red glass named "&cSet to 1"
			set slot 49 of {_sellrockets} to green concrete named "&2Sell"
			close player's inventory
			open {_sellrockets} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {fireworksellprice}
			set {itemamount::player} to 0
			set {itemamount::player} to number of fireworks in player's inventory
			if {itemamount::player} >= {temporaryamount::player} :
				remove {temporaryamount::player} of firework rocket from player's inventory
				if {temporaryamount::player} is more than 1:
					if {payment::player} is more than 1:
						send "&cYou sold &6%{temporaryamount::player}%&c firework rockets for &6%{payment::player}%&c coins!"
					else:
						send "&cYou sold &6%{temporaryamount::player}%&c firework rockets for &6%{payment::player}%&c coin!"
				else:
					if {payment::player} is more than 1:
						send "&cYou sold &6%{temporaryamount::player}%&c firework rocket for &6%{payment::player}%&c coins!"
					else:
						send "&cYou sold &6%{temporaryamount::player}%&c firework rocket for &6%{payment::player}%&c coin!"
				set {_money} to player's balance
				set player's balance to {_money} + {payment::player}
			else:
				send "&cYou selected more items than the ones you have!"
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
			delete {itemamount::player}
	if name of event-inventory is "&5Shulkers":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 11:
			set {_buyshulkers} to a new chest inventory with 6 rows with name "&5Buy Shulkers"
			set {temporaryamount::player} to 1
			set slot 4 of {_buyshulkers} to shulker box named "&5Shulker Box"
			set slot 19 of {_buyshulkers} to green glass named "&a+1"
			set slot 22 of {_buyshulkers} to green glass named "&a+5"
			set slot 25 of {_buyshulkers} to green glass named "&aSet to 64"
			set slot 28 of {_buyshulkers} to red glass named "&c-1"
			set slot 31 of {_buyshulkers} to red glass named "&c-5"
			set slot 34 of {_buyshulkers} to red glass named "&cSet to 1"
			set slot 49 of {_buyshulkers} to green concrete named "&2Buy"
			close player's inventory
			open {_buyshulkers} to player
		if index of event-slot = 15:
			set {_sellshulkers} to a new chest inventory with 6 rows with name "&5Sell Shulkers"
			set {temporaryamount::player} to 1
			set slot 4 of {_sellshulkers} to shulker box named "&5Shulker Box"
			set slot 19 of {_sellshulkers} to green glass named "&a+1"
			set slot 22 of {_sellshulkers} to green glass named "&a+5"
			set slot 25 of {_sellshulkers} to green glass named "&aSelect all"
			set slot 28 of {_sellshulkers} to red glass named "&c-1"
			set slot 31 of {_sellshulkers} to red glass named "&c-5"
			set slot 34 of {_sellshulkers} to red glass named "&cSet to 1"
			set slot 49 of {_sellshulkers} to green concrete named "&2Sell"
			close player's inventory
			open {_sellshulkers} to player
	if name of event-inventory is "&5Buy Shulkers":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buyshulkers} to a new chest inventory with 6 rows with name "&5Buy Shulkers"
			set slot 4 of {_buyshulkers} to {temporaryamount::player} of shulker box named "&5Shulker Box"
			set slot 19 of {_buyshulkers} to green glass named "&a+1"
			set slot 22 of {_buyshulkers} to green glass named "&a+5"
			set slot 25 of {_buyshulkers} to green glass named "&aSet to 64"
			set slot 28 of {_buyshulkers} to red glass named "&c-1"
			set slot 31 of {_buyshulkers} to red glass named "&c-5"
			set slot 34 of {_buyshulkers} to red glass named "&cSet to 1"
			set slot 49 of {_buyshulkers} to green concrete named "&2Buy"
			close player's inventory
			open {_buyshulkers} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buyshulkers} to a new chest inventory with 6 rows with name "&5Buy Shulkers"
			set slot 4 of {_buyshulkers} to {temporaryamount::player} of shulker box named "&5Shulker Box"
			set slot 19 of {_buyshulkers} to green glass named "&a+1"
			set slot 22 of {_buyshulkers} to green glass named "&a+5"
			set slot 25 of {_buyshulkers} to green glass named "&aSet to 64"
			set slot 28 of {_buyshulkers} to red glass named "&c-1"
			set slot 31 of {_buyshulkers} to red glass named "&c-5"
			set slot 34 of {_buyshulkers} to red glass named "&cSet to 1"
			set slot 49 of {_buyshulkers} to green concrete named "&2Buy"
			close player's inventory
			open {_buyshulkers} to player
		if index of event-slot = 25:
			set {temporaryamount::player} to 64
			set {_buyshulkers} to a new chest inventory with 6 rows with name "&5Buy Shulkers"
			set slot 4 of {_buyshulkers} to {temporaryamount::player} of shulker box named "&5Shulker Box"
			set slot 19 of {_buyshulkers} to green glass named "&a+1"
			set slot 22 of {_buyshulkers} to green glass named "&a+5"
			set slot 25 of {_buyshulkers} to green glass named "&aSet to 64"
			set slot 28 of {_buyshulkers} to red glass named "&c-1"
			set slot 31 of {_buyshulkers} to red glass named "&c-5"
			set slot 34 of {_buyshulkers} to red glass named "&cSet to 1"
			set slot 49 of {_buyshulkers} to green concrete named "&2Buy"
			close player's inventory
			open {_buyshulkers} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buyshulkers} to a new chest inventory with 6 rows with name "&5Buy Shulkers"
			set slot 4 of {_buyshulkers} to {temporaryamount::player} of shulker box named "&5Shulker Box"
			set slot 19 of {_buyshulkers} to green glass named "&a+1"
			set slot 22 of {_buyshulkers} to green glass named "&a+5"
			set slot 25 of {_buyshulkers} to green glass named "&aSet to 64"
			set slot 28 of {_buyshulkers} to red glass named "&c-1"
			set slot 31 of {_buyshulkers} to red glass named "&c-5"
			set slot 34 of {_buyshulkers} to red glass named "&cSet to 1"
			set slot 49 of {_buyshulkers} to green concrete named "&2Buy"
			close player's inventory
			open {_buyshulkers} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buyshulkers} to a new chest inventory with 6 rows with name "&5Buy Shulkers"
			set slot 4 of {_buyshulkers} to {temporaryamount::player} of shulker box named "&5Shulker Box"
			set slot 19 of {_buyshulkers} to green glass named "&a+1"
			set slot 22 of {_buyshulkers} to green glass named "&a+5"
			set slot 25 of {_buyshulkers} to green glass named "&aSet to 64"
			set slot 28 of {_buyshulkers} to red glass named "&c-1"
			set slot 31 of {_buyshulkers} to red glass named "&c-5"
			set slot 34 of {_buyshulkers} to red glass named "&cSet to 1"
			set slot 49 of {_buyshulkers} to green concrete named "&2Buy"
			close player's inventory
			open {_buyshulkers} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_buyshulkers} to a new chest inventory with 6 rows with name "&5Buy Shulkers"
			set slot 4 of {_buyshulkers} to {temporaryamount::player} of shulker box named "&5Shulker Box"
			set slot 19 of {_buyshulkers} to green glass named "&a+1"
			set slot 22 of {_buyshulkers} to green glass named "&a+5"
			set slot 25 of {_buyshulkers} to green glass named "&aSet to 64"
			set slot 28 of {_buyshulkers} to red glass named "&c-1"
			set slot 31 of {_buyshulkers} to red glass named "&c-5"
			set slot 34 of {_buyshulkers} to red glass named "&cSet to 1"
			set slot 49 of {_buyshulkers} to green concrete named "&2Buy"
			close player's inventory
			open {_buyshulkers} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {shulkerprice}
			if player's balance >= {payment::player}:
				give {temporaryamount::player} of shulker boxes to player
				if {temporaryamount::player} is more than 1:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c shulker boxes for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c shulker boxes for &6%{payment::player}%&c coin!"
				else:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c shulker box for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c shulker box for &6%{payment::player}%&c coin!"
				set {_money} to player's balance
				set player's balance to {_money} - {payment::player}
			else:
				send "&cYou don't have enough money, baka!"
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
	if name of event-inventory is "&5Sell Shulkers":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_sellshulkers} to a new chest inventory with 6 rows with name "&5Sell Shulkers"
			set slot 4 of {_sellshulkers} to {temporaryamount::player} of shulker box named "&5Shulker Box"
			set slot 19 of {_sellshulkers} to green glass named "&a+1"
			set slot 22 of {_sellshulkers} to green glass named "&a+5"
			set slot 25 of {_sellshulkers} to green glass named "&aSelect all"
			set slot 28 of {_sellshulkers} to red glass named "&c-1"
			set slot 31 of {_sellshulkers} to red glass named "&c-5"
			set slot 34 of {_sellshulkers} to red glass named "&cSet to 1"
			set slot 49 of {_sellshulkers} to green concrete named "&2Sell"
			close player's inventory
			open {_sellshulkers} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_sellshulkers} to a new chest inventory with 6 rows with name "&5Sell Shulkers"
			set slot 4 of {_sellshulkers} to {temporaryamount::player} of shulker box named "&5Shulker Box"
			set slot 19 of {_sellshulkers} to green glass named "&a+1"
			set slot 22 of {_sellshulkers} to green glass named "&a+5"
			set slot 25 of {_sellshulkers} to green glass named "&aSelect all"
			set slot 28 of {_sellshulkers} to red glass named "&c-1"
			set slot 31 of {_sellshulkers} to red glass named "&c-5"
			set slot 34 of {_sellshulkers} to red glass named "&cSet to 1"
			set slot 49 of {_sellshulkers} to green concrete named "&2Sell"
			close player's inventory
			open {_sellshulkers} to player
		if index of event-slot = 25:
			set {itemamount::player} to 0
			set {itemamount::player} to number of shulker boxes in player's inventory
			set {temporaryamount::player} to {itemamount::player}
			set {_sellshulkers} to a new chest inventory with 6 rows with name "&5Sell Shulkers"
			set slot 4 of {_sellshulkers} to {temporaryamount::player} of shulker box named "&5Shulker Box"
			set slot 19 of {_sellshulkers} to green glass named "&a+1"
			set slot 22 of {_sellshulkers} to green glass named "&a+5"
			set slot 25 of {_sellshulkers} to green glass named "&aSelect all"
			set slot 28 of {_sellshulkers} to red glass named "&c-1"
			set slot 31 of {_sellshulkers} to red glass named "&c-5"
			set slot 34 of {_sellshulkers} to red glass named "&cSet to 1"
			set slot 49 of {_sellshulkers} to green concrete named "&2Sell"
			close player's inventory
			open {_sellshulkers} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_sellshulkers} to a new chest inventory with 6 rows with name "&5Sell Shulkers"
			set slot 4 of {_sellshulkers} to {temporaryamount::player} of shulker box named "&5Shulker Box"
			set slot 19 of {_sellshulkers} to green glass named "&a+1"
			set slot 22 of {_sellshulkers} to green glass named "&a+5"
			set slot 25 of {_sellshulkers} to green glass named "&aSelect all"
			set slot 28 of {_sellshulkers} to red glass named "&c-1"
			set slot 31 of {_sellshulkers} to red glass named "&c-5"
			set slot 34 of {_sellshulkers} to red glass named "&cSet to 1"
			set slot 49 of {_sellshulkers} to green concrete named "&2Sell"
			close player's inventory
			open {_sellshulkers} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_sellshulkers} to a new chest inventory with 6 rows with name "&5Sell Shulkers"
			set slot 4 of {_sellshulkers} to {temporaryamount::player} of shulker box named "&5Shulker Box"
			set slot 19 of {_sellshulkers} to green glass named "&a+1"
			set slot 22 of {_sellshulkers} to green glass named "&a+5"
			set slot 25 of {_sellshulkers} to green glass named "&aSelect all"
			set slot 28 of {_sellshulkers} to red glass named "&c-1"
			set slot 31 of {_sellshulkers} to red glass named "&c-5"
			set slot 34 of {_sellshulkers} to red glass named "&cSet to 1"
			set slot 49 of {_sellshulkers} to green concrete named "&2Sell"
			close player's inventory
			open {_sellshulkers} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_sellshulkers} to a new chest inventory with 6 rows with name "&5Sell Shulkers"
			set slot 4 of {_sellshulkers} to {temporaryamount::player} of shulker box named "&5Shulker Box"
			set slot 19 of {_sellshulkers} to green glass named "&a+1"
			set slot 22 of {_sellshulkers} to green glass named "&a+5"
			set slot 25 of {_sellshulkers} to green glass named "&aSelect all"
			set slot 28 of {_sellshulkers} to red glass named "&c-1"
			set slot 31 of {_sellshulkers} to red glass named "&c-5"
			set slot 34 of {_sellshulkers} to red glass named "&cSet to 1"
			set slot 49 of {_sellshulkers} to green concrete named "&2Sell"
			close player's inventory
			open {_sellshulkers} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {shulkersellprice}
			set {itemamount::player} to 0
			set {itemamount::player} to number of shulker boxes in player's inventory
			if {itemamount::player} >= {temporaryamount::player} :
				remove {temporaryamount::player} of shulker box from player's inventory
				if {temporaryamount::player} is more than 1:
					if {payment::player} is more than 1:
						send "&cYou sold &6%{temporaryamount::player}%&c shulker boxes for &6%{payment::player}%&c coins!"
					else:
						send "&cYou sold &6%{temporaryamount::player}%&c shulker boxes for &6%{payment::player}%&c coin!"
				else:
					if {payment::player} is more than 1:
						send "&cYou sold &6%{temporaryamount::player}%&c shulker box for &6%{payment::player}%&c coins!"
					else:
						send "&cYou sold &6%{temporaryamount::player}%&c shulker box for &6%{payment::player}%&c coin!"
				set {_money} to player's balance
				set player's balance to {_money} + {payment::player}
			else:
				send "&cYou selected more items than the ones you have!"
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
			delete {itemamount::player}
	if name of event-inventory is "&5Ender Pearls":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 11:
			set {_buypearls} to a new chest inventory with 6 rows with name "&5Buy Ender Pearls"
			set {temporaryamount::player} to 1
			set slot 4 of {_buypearls} to ender pearl named "&5Ender pearl"
			set slot 19 of {_buypearls} to green glass named "&a+1"
			set slot 22 of {_buypearls} to green glass named "&a+5"
			set slot 25 of {_buypearls} to green glass named "&aSet to 64"
			set slot 28 of {_buypearls} to red glass named "&c-1"
			set slot 31 of {_buypearls} to red glass named "&c-5"
			set slot 34 of {_buypearls} to red glass named "&cSet to 1"
			set slot 49 of {_buypearls} to green concrete named "&2Buy"
			close player's inventory
			open {_buypearls} to player
		if index of event-slot = 15:
			set {_sellpearls} to a new chest inventory with 6 rows with name "&5Sell Ender Pearls"
			set {temporaryamount::player} to 1
			set slot 4 of {_sellpearls} to ender pearl named "&5Ender pearl"
			set slot 19 of {_sellpearls} to green glass named "&a+1"
			set slot 22 of {_sellpearls} to green glass named "&a+5"
			set slot 25 of {_sellpearls} to green glass named "&aSelect all"
			set slot 28 of {_sellpearls} to red glass named "&c-1"
			set slot 31 of {_sellpearls} to red glass named "&c-5"
			set slot 34 of {_sellpearls} to red glass named "&cSet to 1"
			set slot 49 of {_sellpearls} to green concrete named "&2Sell"
			close player's inventory
			open {_sellpearls} to player
	if name of event-inventory is "&5Buy Ender Pearls":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buypearls} to a new chest inventory with 6 rows with name "&5Buy Ender Pearls"
			set slot 4 of {_buypearls} to {temporaryamount::player} of ender pearl named "&5Ender Pearl"
			set slot 19 of {_buypearls} to green glass named "&a+1"
			set slot 22 of {_buypearls} to green glass named "&a+5"
			set slot 25 of {_buypearls} to green glass named "&aSet to 64"
			set slot 28 of {_buypearls} to red glass named "&c-1"
			set slot 31 of {_buypearls} to red glass named "&c-5"
			set slot 34 of {_buypearls} to red glass named "&cSet to 1"
			set slot 49 of {_buypearls} to green concrete named "&2Buy"
			close player's inventory
			open {_buypearls} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buypearls} to a new chest inventory with 6 rows with name "&5Buy Ender Pearls"
			set slot 4 of {_buypearls} to {temporaryamount::player} of ender pearl named "&5Ender Pearl"
			set slot 19 of {_buypearls} to green glass named "&a+1"
			set slot 22 of {_buypearls} to green glass named "&a+5"
			set slot 25 of {_buypearls} to green glass named "&aSet to 64"
			set slot 28 of {_buypearls} to red glass named "&c-1"
			set slot 31 of {_buypearls} to red glass named "&c-5"
			set slot 34 of {_buypearls} to red glass named "&cSet to 1"
			set slot 49 of {_buypearls} to green concrete named "&2Buy"
			close player's inventory
			open {_buypearls} to player
		if index of event-slot = 25:
			set {temporaryamount::player} to 64
			set {_buypearls} to a new chest inventory with 6 rows with name "&5Buy Ender Pearls"
			set slot 4 of {_buypearls} to {temporaryamount::player} of ender pearl named "&5Ender Pearl"
			set slot 19 of {_buypearls} to green glass named "&a+1"
			set slot 22 of {_buypearls} to green glass named "&a+5"
			set slot 25 of {_buypearls} to green glass named "&aSet to 64"
			set slot 28 of {_buypearls} to red glass named "&c-1"
			set slot 31 of {_buypearls} to red glass named "&c-5"
			set slot 34 of {_buypearls} to red glass named "&cSet to 1"
			set slot 49 of {_buypearls} to green concrete named "&2Buy"
			close player's inventory
			open {_buypearls} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buypearls} to a new chest inventory with 6 rows with name "&5Buy Ender Pearls"
			set slot 4 of {_buypearls} to {temporaryamount::player} of ender pearl named "&5Ender Pearl"
			set slot 19 of {_buypearls} to green glass named "&a+1"
			set slot 22 of {_buypearls} to green glass named "&a+5"
			set slot 25 of {_buypearls} to green glass named "&aSet to 64"
			set slot 28 of {_buypearls} to red glass named "&c-1"
			set slot 31 of {_buypearls} to red glass named "&c-5"
			set slot 34 of {_buypearls} to red glass named "&cSet to 1"
			set slot 49 of {_buypearls} to green concrete named "&2Buy"
			close player's inventory
			open {_buypearls} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buypearls} to a new chest inventory with 6 rows with name "&5Buy Ender Pearls"
			set slot 4 of {_buypearls} to {temporaryamount::player} of ender pearl named "&5Ender Pearl"
			set slot 19 of {_buypearls} to green glass named "&a+1"
			set slot 22 of {_buypearls} to green glass named "&a+5"
			set slot 25 of {_buypearls} to green glass named "&aSet to 64"
			set slot 28 of {_buypearls} to red glass named "&c-1"
			set slot 31 of {_buypearls} to red glass named "&c-5"
			set slot 34 of {_buypearls} to red glass named "&cSet to 1"
			set slot 49 of {_buypearls} to green concrete named "&2Buy"
			close player's inventory
			open {_buypearls} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_buypearls} to a new chest inventory with 6 rows with name "&5Buy Ender Pearls"
			set slot 4 of {_buypearls} to {temporaryamount::player} of ender pearl named "&5Ender Pearl"
			set slot 19 of {_buypearls} to green glass named "&a+1"
			set slot 22 of {_buypearls} to green glass named "&a+5"
			set slot 25 of {_buypearls} to green glass named "&aSet to 64"
			set slot 28 of {_buypearls} to red glass named "&c-1"
			set slot 31 of {_buypearls} to red glass named "&c-5"
			set slot 34 of {_buypearls} to red glass named "&cSet to 1"
			set slot 49 of {_buypearls} to green concrete named "&2Buy"
			close player's inventory
			open {_buypearls} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {ender pearlprice}
			if player's balance >= {payment::player}:
				give {temporaryamount::player} of ender pearls to player
				if {temporaryamount::player} is more than 1:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c ender pearls for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c ender pearls for &6%{payment::player}%&c coin!"
				else:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c ender pearl for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c ender pearl for &6%{payment::player}%&c coin!"
				set {_money} to player's balance
				set player's balance to {_money} - {payment::player}
			else:
				send "&cYou don't have enough money, baka!"
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
	if name of event-inventory is "&5Sell Ender Pearls":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_sellpearls} to a new chest inventory with 6 rows with name "&5Sell Ender Pearls"
			set slot 4 of {_sellpearls} to {temporaryamount::player} of ender pearl named "&5Ender Pearl"
			set slot 19 of {_sellpearls} to green glass named "&a+1"
			set slot 22 of {_sellpearls} to green glass named "&a+5"
			set slot 25 of {_sellpearls} to green glass named "&aSelect all"
			set slot 28 of {_sellpearls} to red glass named "&c-1"
			set slot 31 of {_sellpearls} to red glass named "&c-5"
			set slot 34 of {_sellpearls} to red glass named "&cSet to 1"
			set slot 49 of {_sellpearls} to green concrete named "&2Sell"
			close player's inventory
			open {_sellpearls} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_sellpearls} to a new chest inventory with 6 rows with name "&5Sell Ender Pearls"
			set slot 4 of {_sellpearls} to {temporaryamount::player} of ender pearl named "&5Ender Pearl"
			set slot 19 of {_sellpearls} to green glass named "&a+1"
			set slot 22 of {_sellpearls} to green glass named "&a+5"
			set slot 25 of {_sellpearls} to green glass named "&aSelect all"
			set slot 28 of {_sellpearls} to red glass named "&c-1"
			set slot 31 of {_sellpearls} to red glass named "&c-5"
			set slot 34 of {_sellpearls} to red glass named "&cSet to 1"
			set slot 49 of {_sellpearls} to green concrete named "&2Sell"
			close player's inventory
			open {_sellpearls} to player
		if index of event-slot = 25:
			set {itemamount::player} to 0
			set {itemamount::player} to number of ender pearls in player's inventory
			set {temporaryamount::player} to {itemamount::player}
			set {_sellpearls} to a new chest inventory with 6 rows with name "&5Sell Ender Pearls"
			set slot 4 of {_sellpearls} to {temporaryamount::player} of ender pearl named "&5Ender Pearl"
			set slot 19 of {_sellpearls} to green glass named "&a+1"
			set slot 22 of {_sellpearls} to green glass named "&a+5"
			set slot 25 of {_sellpearls} to green glass named "&aSelect all"
			set slot 28 of {_sellpearls} to red glass named "&c-1"
			set slot 31 of {_sellpearls} to red glass named "&c-5"
			set slot 34 of {_sellpearls} to red glass named "&cSet to 1"
			set slot 49 of {_sellpearls} to green concrete named "&2Sell"
			close player's inventory
			open {_sellpearls} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_sellpearls} to a new chest inventory with 6 rows with name "&5Sell Ender Pearls"
			set slot 4 of {_sellpearls} to {temporaryamount::player} of ender pearl named "&5Ender Pearl"
			set slot 19 of {_sellpearls} to green glass named "&a+1"
			set slot 22 of {_sellpearls} to green glass named "&a+5"
			set slot 25 of {_sellpearls} to green glass named "&aSelect all"
			set slot 28 of {_sellpearls} to red glass named "&c-1"
			set slot 31 of {_sellpearls} to red glass named "&c-5"
			set slot 34 of {_sellpearls} to red glass named "&cSet to 1"
			set slot 49 of {_sellpearls} to green concrete named "&2Sell"
			close player's inventory
			open {_sellpearls} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_sellpearls} to a new chest inventory with 6 rows with name "&5Sell Ender Pearls"
			set slot 4 of {_sellpearls} to {temporaryamount::player} of ender pearl named "&5Ender Pearl"
			set slot 19 of {_sellpearls} to green glass named "&a+1"
			set slot 22 of {_sellpearls} to green glass named "&a+5"
			set slot 25 of {_sellpearls} to green glass named "&aSelect all"
			set slot 28 of {_sellpearls} to red glass named "&c-1"
			set slot 31 of {_sellpearls} to red glass named "&c-5"
			set slot 34 of {_sellpearls} to red glass named "&cSet to 1"
			set slot 49 of {_sellpearls} to green concrete named "&2Sell"
			close player's inventory
			open {_sellpearls} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_sellpearls} to a new chest inventory with 6 rows with name "&5Sell Ender Pearls"
			set slot 4 of {_sellpearls} to {temporaryamount::player} of ender pearl named "&5Ender pearl"
			set slot 19 of {_sellpearls} to green glass named "&a+1"
			set slot 22 of {_sellpearls} to green glass named "&a+5"
			set slot 25 of {_sellpearls} to green glass named "&aSelect all"
			set slot 28 of {_sellpearls} to red glass named "&c-1"
			set slot 31 of {_sellpearls} to red glass named "&c-5"
			set slot 34 of {_sellpearls} to red glass named "&cSet to 1"
			set slot 49 of {_sellpearls} to green concrete named "&2Sell"
			close player's inventory
			open {_sellpearls} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {enderpearlsellprice}
			set {itemamount::player} to 0
			set {itemamount::player} to number of ender pearls in player's inventory
			if {itemamount::player} >= {temporaryamount::player} :
				remove {temporaryamount::player} of ender pearl from player's inventory
				if {temporaryamount::player} is more than 1:
					if {payment::player} is more than 1:
						send "&cYou sold &6%{temporaryamount::player}%&c ender pearls for &6%{payment::player}%&c coins!"
					else:
						send "&cYou sold &6%{temporaryamount::player}%&c ender pearls for &6%{payment::player}%&c coin!"
				else:
					if {payment::player} is more than 1:
						send "&cYou sold &6%{temporaryamount::player}%&c ender pearl for &6%{payment::player}%&c coins!"
					else:
						send "&cYou sold &6%{temporaryamount::player}%&c ender pearl for &6%{payment::player}%&c coin!"
				set {_money} to player's balance
				set player's balance to {_money} + {payment::player}
			else:
				send "&cYou selected more items than the ones you have!"
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
			delete {itemamount::player}
	if name of event-inventory is "&5Ender Chests":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 11:
			set {_buyenderchests} to a new chest inventory with 6 rows with name "&5Buy Ender Chests"
			set {temporaryamount::player} to 1
			set slot 4 of {_buyenderchests} to ender chest named "&5Ender Chest"
			set slot 19 of {_buyenderchests} to green glass named "&a+1"
			set slot 22 of {_buyenderchests} to green glass named "&a+5"
			set slot 25 of {_buyenderchests} to green glass named "&aSet to 64"
			set slot 28 of {_buyenderchests} to red glass named "&c-1"
			set slot 31 of {_buyenderchests} to red glass named "&c-5"
			set slot 34 of {_buyenderchests} to red glass named "&cSet to 1"
			set slot 49 of {_buyenderchests} to green concrete named "&2Buy"
			close player's inventory
			open {_buyenderchests} to player
		if index of event-slot = 15:
			set {_sellenderchests} to a new chest inventory with 6 rows with name "&5Sell Ender Chests"
			set {temporaryamount::player} to 1
			set slot 4 of {_sellenderchests} to ender chest named "&5Ender Chest"
			set slot 19 of {_sellenderchests} to green glass named "&a+1"
			set slot 22 of {_sellenderchests} to green glass named "&a+5"
			set slot 25 of {_sellenderchests} to green glass named "&aSelect all"
			set slot 28 of {_sellenderchests} to red glass named "&c-1"
			set slot 31 of {_sellenderchests} to red glass named "&c-5"
			set slot 34 of {_sellenderchests} to red glass named "&cSet to 1"
			set slot 49 of {_sellenderchests} to green concrete named "&2Sell"
			close player's inventory
			open {_sellenderchests} to player
	if name of event-inventory is "&5Buy Ender Chests":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buyenderchests} to a new chest inventory with 6 rows with name "&5Buy Ender Chests"
			set slot 4 of {_buyenderchests} to {temporaryamount::player} of ender chest named "&5Ender Chest"
			set slot 19 of {_buyenderchests} to green glass named "&a+1"
			set slot 22 of {_buyenderchests} to green glass named "&a+5"
			set slot 25 of {_buyenderchests} to green glass named "&aSet to 64"
			set slot 28 of {_buyenderchests} to red glass named "&c-1"
			set slot 31 of {_buyenderchests} to red glass named "&c-5"
			set slot 34 of {_buyenderchests} to red glass named "&cSet to 1"
			set slot 49 of {_buyenderchests} to green concrete named "&2Buy"
			close player's inventory
			open {_buyenderchests} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buyenderchests} to a new chest inventory with 6 rows with name "&5Buy Ender Chests"
			set slot 4 of {_buyenderchests} to {temporaryamount::player} of ender chest named "&5Ender Chest"
			set slot 19 of {_buyenderchests} to green glass named "&a+1"
			set slot 22 of {_buyenderchests} to green glass named "&a+5"
			set slot 25 of {_buyenderchests} to green glass named "&aSet to 64"
			set slot 28 of {_buyenderchests} to red glass named "&c-1"
			set slot 31 of {_buyenderchests} to red glass named "&c-5"
			set slot 34 of {_buyenderchests} to red glass named "&cSet to 1"
			set slot 49 of {_buyenderchests} to green concrete named "&2Buy"
			close player's inventory
			open {_buyenderchests} to player
		if index of event-slot = 25:
			set {temporaryamount::player} to 64
			set {_buyenderchests} to a new chest inventory with 6 rows with name "&5Buy Ender Chests"
			set slot 4 of {_buyenderchests} to {temporaryamount::player} of ender chest named "&5Ender Chest"
			set slot 19 of {_buyenderchests} to green glass named "&a+1"
			set slot 22 of {_buyenderchests} to green glass named "&a+5"
			set slot 25 of {_buyenderchests} to green glass named "&aSet to 64"
			set slot 28 of {_buyenderchests} to red glass named "&c-1"
			set slot 31 of {_buyenderchests} to red glass named "&c-5"
			set slot 34 of {_buyenderchests} to red glass named "&cSet to 1"
			set slot 49 of {_buyenderchests} to green concrete named "&2Buy"
			close player's inventory
			open {_buyenderchests} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buyenderchests} to a new chest inventory with 6 rows with name "&5Buy Ender Chests"
			set slot 4 of {_buyenderchests} to {temporaryamount::player} of ender chest named "&5Ender Chest"
			set slot 19 of {_buyenderchests} to green glass named "&a+1"
			set slot 22 of {_buyenderchests} to green glass named "&a+5"
			set slot 25 of {_buyenderchests} to green glass named "&aSet to 64"
			set slot 28 of {_buyenderchests} to red glass named "&c-1"
			set slot 31 of {_buyenderchests} to red glass named "&c-5"
			set slot 34 of {_buyenderchests} to red glass named "&cSet to 1"
			set slot 49 of {_buyenderchests} to green concrete named "&2Buy"
			close player's inventory
			open {_buyenderchests} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buyenderchests} to a new chest inventory with 6 rows with name "&5Buy Ender Chests"
			set slot 4 of {_buyenderchests} to {temporaryamount::player} of ender chest named "&5Ender Chest"
			set slot 19 of {_buyenderchests} to green glass named "&a+1"
			set slot 22 of {_buyenderchests} to green glass named "&a+5"
			set slot 25 of {_buyenderchests} to green glass named "&aSet to 64"
			set slot 28 of {_buyenderchests} to red glass named "&c-1"
			set slot 31 of {_buyenderchests} to red glass named "&c-5"
			set slot 34 of {_buyenderchests} to red glass named "&cSet to 1"
			set slot 49 of {_buyenderchests} to green concrete named "&2Buy"
			close player's inventory
			open {_buyenderchests} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_buyenderchests} to a new chest inventory with 6 rows with name "&5Buy Ender Chests"
			set slot 4 of {_buyenderchests} to {temporaryamount::player} of ender chest named "&5Ender Chest"
			set slot 19 of {_buyenderchests} to green glass named "&a+1"
			set slot 22 of {_buyenderchests} to green glass named "&a+5"
			set slot 25 of {_buyenderchests} to green glass named "&aSet to 64"
			set slot 28 of {_buyenderchests} to red glass named "&c-1"
			set slot 31 of {_buyenderchests} to red glass named "&c-5"
			set slot 34 of {_buyenderchests} to red glass named "&cSet to 1"
			set slot 49 of {_buyenderchests} to green concrete named "&2Buy"
			close player's inventory
			open {_buyenderchests} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {enderchestprice}
			if player's balance >= {payment::player}:
				give {temporaryamount::player} of ender chests to player
				if {temporaryamount::player} is more than 1:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c ender chests for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c ender chests for &6%{payment::player}%&c coin!"
				else:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c ender chest for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c ender chest for &6%{payment::player}%&c coin!"
				set {_money} to player's balance
				set player's balance to {_money} - {payment::player}
			else:
				send "&cYou don't have enough money, baka!"
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
	if name of event-inventory is "&5Sell Ender Chests":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_sellenderchests} to a new chest inventory with 6 rows with name "&5Sell Ender Chests"
			set slot 4 of {_sellenderchests} to {temporaryamount::player} of ender chest named "&5Ender Chest"
			set slot 19 of {_sellenderchests} to green glass named "&a+1"
			set slot 22 of {_sellenderchests} to green glass named "&a+5"
			set slot 25 of {_sellenderchests} to green glass named "&aSelect all"
			set slot 28 of {_sellenderchests} to red glass named "&c-1"
			set slot 31 of {_sellenderchests} to red glass named "&c-5"
			set slot 34 of {_sellenderchests} to red glass named "&cSet to 1"
			set slot 49 of {_sellenderchests} to green concrete named "&2Sell"
			close player's inventory
			open {_sellenderchests} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_sellenderchests} to a new chest inventory with 6 rows with name "&5Sell Ender Chests"
			set slot 4 of {_sellenderchests} to {temporaryamount::player} of ender chest named "&5Ender Chest"
			set slot 19 of {_sellenderchests} to green glass named "&a+1"
			set slot 22 of {_sellenderchests} to green glass named "&a+5"
			set slot 25 of {_sellenderchests} to green glass named "&aSelect all"
			set slot 28 of {_sellenderchests} to red glass named "&c-1"
			set slot 31 of {_sellenderchests} to red glass named "&c-5"
			set slot 34 of {_sellenderchests} to red glass named "&cSet to 1"
			set slot 49 of {_sellenderchests} to green concrete named "&2Sell"
			close player's inventory
			open {_sellenderchests} to player
		if index of event-slot = 25:
			set {itemamount::player} to 0
			set {itemamount::player} to number of ender chests in player's inventory
			set {temporaryamount::player} to {itemamount::player}
			set {_sellenderchests} to a new chest inventory with 6 rows with name "&5Sell Ender Chests"
			set slot 4 of {_sellenderchests} to {temporaryamount::player} of ender chest named "&5Ender Chest"
			set slot 19 of {_sellenderchests} to green glass named "&a+1"
			set slot 22 of {_sellenderchests} to green glass named "&a+5"
			set slot 25 of {_sellenderchests} to green glass named "&aSelect all"
			set slot 28 of {_sellenderchests} to red glass named "&c-1"
			set slot 31 of {_sellenderchests} to red glass named "&c-5"
			set slot 34 of {_sellenderchests} to red glass named "&cSet to 1"
			set slot 49 of {_sellenderchests} to green concrete named "&2Sell"
			close player's inventory
			open {_sellenderchests} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_sellenderchests} to a new chest inventory with 6 rows with name "&5Sell Ender Chests"
			set slot 4 of {_sellenderchests} to {temporaryamount::player} of ender chest named "&5Ender Chest"
			set slot 19 of {_sellenderchests} to green glass named "&a+1"
			set slot 22 of {_sellenderchests} to green glass named "&a+5"
			set slot 25 of {_sellenderchests} to green glass named "&aSelect all"
			set slot 28 of {_sellenderchests} to red glass named "&c-1"
			set slot 31 of {_sellenderchests} to red glass named "&c-5"
			set slot 34 of {_sellenderchests} to red glass named "&cSet to 1"
			set slot 49 of {_sellenderchests} to green concrete named "&2Sell"
			close player's inventory
			open {_sellenderchests} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_sellenderchests} to a new chest inventory with 6 rows with name "&5Sell Ender Chests"
			set slot 4 of {_sellenderchests} to {temporaryamount::player} of ender chest named "&5Ender Chest"
			set slot 19 of {_sellenderchests} to green glass named "&a+1"
			set slot 22 of {_sellenderchests} to green glass named "&a+5"
			set slot 25 of {_sellenderchests} to green glass named "&aSelect all"
			set slot 28 of {_sellenderchests} to red glass named "&c-1"
			set slot 31 of {_sellenderchests} to red glass named "&c-5"
			set slot 34 of {_sellenderchests} to red glass named "&cSet to 1"
			set slot 49 of {_sellenderchests} to green concrete named "&2Sell"
			close player's inventory
			open {_sellenderchests} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_sellenderchests} to a new chest inventory with 6 rows with name "&5Sell Ender Chests"
			set slot 4 of {_sellenderchests} to {temporaryamount::player} of ender chest named "&5Ender Chest"
			set slot 19 of {_sellenderchests} to green glass named "&a+1"
			set slot 22 of {_sellenderchests} to green glass named "&a+5"
			set slot 25 of {_sellenderchests} to green glass named "&aSelect all"
			set slot 28 of {_sellenderchests} to red glass named "&c-1"
			set slot 31 of {_sellenderchests} to red glass named "&c-5"
			set slot 34 of {_sellenderchests} to red glass named "&cSet to 1"
			set slot 49 of {_sellenderchests} to green concrete named "&2Sell"
			close player's inventory
			open {_sellenderchests} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {enderchestsellprice}
			set {itemamount::player} to 0
			set {itemamount::player} to number of ender chests in player's inventory
			if {itemamount::player} >= {temporaryamount::player} :
				remove {temporaryamount::player} of ender chest from player's inventory
				if {temporaryamount::player} is more than 1:
					if {payment::player} is more than 1:
						send "&cYou sold &6%{temporaryamount::player}%&c ender chests for &6%{payment::player}%&c coins!"
					else:
						send "&cYou sold &6%{temporaryamount::player}%&c ender chests for &6%{payment::player}%&c coin!"
				else:
					if {payment::player} is more than 1:
						send "&cYou sold &6%{temporaryamount::player}%&c ender chest for &6%{payment::player}%&c coins!"
					else:
						send "&cYou sold &6%{temporaryamount::player}%&c ender chest for &6%{payment::player}%&c coin!"
				set {_money} to player's balance
				set player's balance to {_money} + {payment::player}
			else:
				send "&cYou selected more items than the ones you have!"
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
			delete {itemamount::player}
	if name of event-inventory is "&l<##fb0000>N<##fc1b01>E<##fd3602>T<##fd5002>H<##fe6b03>E<##ff8604>R":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 9:
			set {_buyorsellrods} to a new chest inventory with 3 rows with name "&cBlaze Rods"
			set slot 4 of {_buyorsellrods} to blaze rod named "&cBlaze Rods" with lore {_blazerodlore::*}
			set slot 11 of {_buyorsellrods} to green concrete named "&aBuy"
			set slot 15 of {_buyorsellrods} to red concrete named "&cSell"
			set slot 22 of {_buyorsellrods} to barrier named "&cBack"
			close player's inventory
			open {_buyorsellrods} to player
		if index of event-slot = 11:
			set {_buyorsellwarts} to a new chest inventory with 3 rows with name "&cNether Warts"
			set slot 4 of {_buyorsellwarts} to nether wart named "&cNether Warts" with lore {_netherwartlore::*}
			set slot 11 of {_buyorsellwarts} to green concrete named "&aBuy"
			set slot 15 of {_buyorsellwarts} to red concrete named "&cSell"
			set slot 22 of {_buyorsellwarts} to barrier named "&cBack"
			close player's inventory
			open {_buyorsellwarts} to player
		if index of event-slot = 13:
			set {_buyorsellcream} to a new chest inventory with 3 rows with name "&cMagma Cream"
			set slot 4 of {_buyorsellcream} to magma cream named "&cMagma Cream" with lore {_magmacreamlore::*}
			set slot 11 of {_buyorsellcream} to green concrete named "&aBuy"
			set slot 15 of {_buyorsellcream} to red concrete named "&cSell"
			set slot 22 of {_buyorsellcream} to barrier named "&cBack"
			close player's inventory
			open {_buyorsellcream} to player
		if index of event-slot = 15:
			set {_buyorsellglowstonedust} to a new chest inventory with 3 rows with name "&cGlowstone Dust"
			set slot 4 of {_buyorsellglowstonedust} to glowstone dust named "&cGlowstone Dust" with lore {_glowstonedustlore::*}
			set slot 11 of {_buyorsellglowstonedust} to green concrete named "&aBuy"
			set slot 15 of {_buyorsellglowstonedust} to red concrete named "&cSell"
			set slot 22 of {_buyorsellglowstonedust} to barrier named "&cBack"
			close player's inventory
			open {_buyorsellglowstonedust} to player
		if index of event-slot = 17:
			set {_buyorsellghasttear} to a new chest inventory with 3 rows with name "&cGhast Tears"
			set slot 4 of {_buyorsellghasttear} to ghast tear named "&cGhast Tears" with lore {_ghasttearlore::*}
			set slot 11 of {_buyorsellghasttear} to green concrete named "&aBuy"
			set slot 15 of {_buyorsellghasttear} to red concrete named "&cSell"
			set slot 22 of {_buyorsellghasttear} to barrier named "&cBack"
			close player's inventory
			open {_buyorsellghasttear} to player
	if name of event-inventory is "&cBlaze Rods":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 11:
			set {_buyblazerods} to a new chest inventory with 6 rows with name "&cBuy Blaze Rods"
			set {temporaryamount::player} to 1
			set slot 4 of {_buyblazerods} to blaze rod named "&cBlaze Rod"
			set slot 19 of {_buyblazerods} to green glass named "&a+1"
			set slot 22 of {_buyblazerods} to green glass named "&a+5"
			set slot 25 of {_buyblazerods} to green glass named "&aSet to 64"
			set slot 28 of {_buyblazerods} to red glass named "&c-1"
			set slot 31 of {_buyblazerods} to red glass named "&c-5"
			set slot 34 of {_buyblazerods} to red glass named "&cSet to 1"
			set slot 49 of {_buyblazerods} to green concrete named "&2Buy"
			close player's inventory
			open {_buyblazerods} to player
		if index of event-slot = 15:
			set {_sellblazerods} to a new chest inventory with 6 rows with name "&cSell Blaze Rods"
			set {temporaryamount::player} to 1
			set slot 4 of {_sellblazerods} to blaze rod named "&cBlaze Rod"
			set slot 19 of {_sellblazerods} to green glass named "&a+1"
			set slot 22 of {_sellblazerods} to green glass named "&a+5"
			set slot 25 of {_sellblazerods} to green glass named "&aSelect all"
			set slot 28 of {_sellblazerods} to red glass named "&c-1"
			set slot 31 of {_sellblazerods} to red glass named "&c-5"
			set slot 34 of {_sellblazerods} to red glass named "&cSet to 1"
			set slot 49 of {_sellblazerods} to green concrete named "&2Sell"
			close player's inventory
			open {_sellblazerods} to player
	if name of event-inventory is "&cBuy Blaze Rods":
		if index of event-slot = 4, 19, 22, 25, 28, 31, 34 or 49:
			cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buyblazerods} to a new chest inventory with 6 rows with name "&cBuy Blaze Rods"
			set slot 4 of {_buyblazerods} to {temporaryamount::player} of blaze rod named "&cBlaze Rod"
			set slot 19 of {_buyblazerods} to green glass named "&a+1"
			set slot 22 of {_buyblazerods} to green glass named "&a+5"
			set slot 25 of {_buyblazerods} to green glass named "&aSet to 64"
			set slot 28 of {_buyblazerods} to red glass named "&c-1"
			set slot 31 of {_buyblazerods} to red glass named "&c-5"
			set slot 34 of {_buyblazerods} to red glass named "&cSet to 1"
			set slot 49 of {_buyblazerods} to green concrete named "&2Buy"
			close player's inventory
			open {_buyblazerods} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buyblazerods} to a new chest inventory with 6 rows with name "&cBuy Blaze Rods"
			set slot 4 of {_buyblazerods} to {temporaryamount::player} of blaze rod named "&cBlaze Rod"
			set slot 19 of {_buyblazerods} to green glass named "&a+1"
			set slot 22 of {_buyblazerods} to green glass named "&a+5"
			set slot 25 of {_buyblazerods} to green glass named "&aSet to 64"
			set slot 28 of {_buyblazerods} to red glass named "&c-1"
			set slot 31 of {_buyblazerods} to red glass named "&c-5"
			set slot 34 of {_buyblazerods} to red glass named "&cSet to 1"
			set slot 49 of {_buyblazerods} to green concrete named "&2Buy"
			close player's inventory
			open {_buyblazerods} to player
		if index of event-slot = 25:
			set {temporaryamount::player} to 64
			set {_buyblazerods} to a new chest inventory with 6 rows with name "&cBuy Blaze Rods"
			set slot 4 of {_buyblazerods} to {temporaryamount::player} of blaze rod named "&cBlaze Rod"
			set slot 19 of {_buyblazerods} to green glass named "&a+1"
			set slot 22 of {_buyblazerods} to green glass named "&a+5"
			set slot 25 of {_buyblazerods} to green glass named "&aSet to 64"
			set slot 28 of {_buyblazerods} to red glass named "&c-1"
			set slot 31 of {_buyblazerods} to red glass named "&c-5"
			set slot 34 of {_buyblazerods} to red glass named "&cSet to 1"
			set slot 49 of {_buyblazerods} to green concrete named "&2Buy"
			close player's inventory
			open {_buyblazerods} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buyblazerods} to a new chest inventory with 6 rows with name "&cBuy Blaze Rods"
			set slot 4 of {_buyblazerods} to {temporaryamount::player} of blaze rod named "&cBlaze Rod"
			set slot 19 of {_buyblazerods} to green glass named "&a+1"
			set slot 22 of {_buyblazerods} to green glass named "&a+5"
			set slot 25 of {_buyblazerods} to green glass named "&aSet to 64"
			set slot 28 of {_buyblazerods} to red glass named "&c-1"
			set slot 31 of {_buyblazerods} to red glass named "&c-5"
			set slot 34 of {_buyblazerods} to red glass named "&cSet to 1"
			set slot 49 of {_buyblazerods} to green concrete named "&2Buy"
			close player's inventory
			open {_buyblazerods} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buyblazerods} to a new chest inventory with 6 rows with name "&cBuy Blaze Rods"
			set slot 4 of {_buyblazerods} to {temporaryamount::player} of blaze rod named "&cBlaze Rod"
			set slot 19 of {_buyblazerods} to green glass named "&a+1"
			set slot 22 of {_buyblazerods} to green glass named "&a+5"
			set slot 25 of {_buyblazerods} to green glass named "&aSet to 64"
			set slot 28 of {_buyblazerods} to red glass named "&c-1"
			set slot 31 of {_buyblazerods} to red glass named "&c-5"
			set slot 34 of {_buyblazerods} to red glass named "&cSet to 1"
			set slot 49 of {_buyblazerods} to green concrete named "&2Buy"
			close player's inventory
			open {_buyblazerods} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_buyblazerods} to a new chest inventory with 6 rows with name "&cBuy Blaze Rods"
			set slot 4 of {_buyblazerods} to {temporaryamount::player} of blaze rod named "&cBlaze Rod"
			set slot 19 of {_buyblazerods} to green glass named "&a+1"
			set slot 22 of {_buyblazerods} to green glass named "&a+5"
			set slot 25 of {_buyblazerods} to green glass named "&aSet to 64"
			set slot 28 of {_buyblazerods} to red glass named "&c-1"
			set slot 31 of {_buyblazerods} to red glass named "&c-5"
			set slot 34 of {_buyblazerods} to red glass named "&cSet to 1"
			set slot 49 of {_buyblazerods} to green concrete named "&2Buy"
			close player's inventory
			open {_buyblazerods} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {blazerodprice}
			if player's balance >= {payment::player}:
				give {temporaryamount::player} of blaze rods to player
				if {temporaryamount::player} is more than 1:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c blaze rods for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c blaze rods for &6%{payment::player}%&c coin!"
				else:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c blaze rod for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c blaze rod for &6%{payment::player}%&c coin!"
				set {_money} to player's balance
				set player's balance to {_money} - {payment::player}
			else:
				send "&cYou don't have enough money, baka!"
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
	if name of event-inventory is "&cSell Blaze Rods":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_sellblazerods} to a new chest inventory with 6 rows with name "&cSell Blaze Rods"
			set slot 4 of {_sellblazerods} to {temporaryamount::player} of blaze rod named "&cBlaze Rod"
			set slot 19 of {_sellblazerods} to green glass named "&a+1"
			set slot 22 of {_sellblazerods} to green glass named "&a+5"
			set slot 25 of {_sellblazerods} to green glass named "&aSelect all"
			set slot 28 of {_sellblazerods} to red glass named "&c-1"
			set slot 31 of {_sellblazerods} to red glass named "&c-5"
			set slot 34 of {_sellblazerods} to red glass named "&cSet to 1"
			set slot 49 of {_sellblazerods} to green concrete named "&2Sell"
			close player's inventory
			open {_sellblazerods} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_sellblazerods} to a new chest inventory with 6 rows with name "&cSell Blaze Rods"
			set slot 4 of {_sellblazerods} to {temporaryamount::player} of blaze rod named "&cBlaze Rod"
			set slot 19 of {_sellblazerods} to green glass named "&a+1"
			set slot 22 of {_sellblazerods} to green glass named "&a+5"
			set slot 25 of {_sellblazerods} to green glass named "&aSelect all"
			set slot 28 of {_sellblazerods} to red glass named "&c-1"
			set slot 31 of {_sellblazerods} to red glass named "&c-5"
			set slot 34 of {_sellblazerods} to red glass named "&cSet to 1"
			set slot 49 of {_sellblazerods} to green concrete named "&2Sell"
			close player's inventory
			open {_sellblazerods} to player
		if index of event-slot = 25:
			set {itemamount::player} to 0
			set {itemamount::player} to number of blaze rods in player's inventory
			set {temporaryamount::player} to {itemamount::player}
			set {_sellblazerods} to a new chest inventory with 6 rows with name "&cSell Blaze Rods"
			set slot 4 of {_sellblazerods} to {temporaryamount::player} of blaze rod named "&cBlaze Rod"
			set slot 19 of {_sellblazerods} to green glass named "&a+1"
			set slot 22 of {_sellblazerods} to green glass named "&a+5"
			set slot 25 of {_sellblazerods} to green glass named "&aSelect all"
			set slot 28 of {_sellblazerods} to red glass named "&c-1"
			set slot 31 of {_sellblazerods} to red glass named "&c-5"
			set slot 34 of {_sellblazerods} to red glass named "&cSet to 1"
			set slot 49 of {_sellblazerods} to green concrete named "&2Sell"
			close player's inventory
			open {_sellblazerods} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_sellblazerods} to a new chest inventory with 6 rows with name "&cSell Blaze Rods"
			set slot 4 of {_sellblazerods} to {temporaryamount::player} of blaze rod named "&cBlaze Rod"
			set slot 19 of {_sellblazerods} to green glass named "&a+1"
			set slot 22 of {_sellblazerods} to green glass named "&a+5"
			set slot 25 of {_sellblazerods} to green glass named "&aSelect all"
			set slot 28 of {_sellblazerods} to red glass named "&c-1"
			set slot 31 of {_sellblazerods} to red glass named "&c-5"
			set slot 34 of {_sellblazerods} to red glass named "&cSet to 1"
			set slot 49 of {_sellblazerods} to green concrete named "&2Sell"
			close player's inventory
			open {_sellblazerods} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_sellblazerods} to a new chest inventory with 6 rows with name "&cSell Blaze Rods"
			set slot 4 of {_sellblazerods} to {temporaryamount::player} of blaze rod named "&cBlaze Rod"
			set slot 19 of {_sellblazerods} to green glass named "&a+1"
			set slot 22 of {_sellblazerods} to green glass named "&a+5"
			set slot 25 of {_sellblazerods} to green glass named "&aSelect all"
			set slot 28 of {_sellblazerods} to red glass named "&c-1"
			set slot 31 of {_sellblazerods} to red glass named "&c-5"
			set slot 34 of {_sellblazerods} to red glass named "&cSet to 1"
			set slot 49 of {_sellblazerods} to green concrete named "&2Sell"
			close player's inventory
			open {_sellblazerods} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_sellblazerods} to a new chest inventory with 6 rows with name "&cSell Blaze Rods"
			set slot 4 of {_sellblazerods} to {temporaryamount::player} of blaze rod named "&cBlaze Rod"
			set slot 19 of {_sellblazerods} to green glass named "&a+1"
			set slot 22 of {_sellblazerods} to green glass named "&a+5"
			set slot 25 of {_sellblazerods} to green glass named "&aSelect all"
			set slot 28 of {_sellblazerods} to red glass named "&c-1"
			set slot 31 of {_sellblazerods} to red glass named "&c-5"
			set slot 34 of {_sellblazerods} to red glass named "&cSet to 1"
			set slot 49 of {_sellblazerods} to green concrete named "&2Sell"
			close player's inventory
			open {_sellblazerods} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {blazerodsellprice}
			set {itemamount::player} to 0
			set {itemamount::player} to number of blaze rods in player's inventory
			if {itemamount::player} >= {temporaryamount::player} :
				remove {temporaryamount::player} of blaze rod from player's inventory
				if {temporaryamount::player} is more than 1:
					if {payment::player} is more than 1:
						send "&cYou sold &6%{temporaryamount::player}%&c blaze rods for &6%{payment::player}%&c coins!"
					else:
						send "&cYou sold &6%{temporaryamount::player}%&c blaze rods for &6%{payment::player}%&c coin!"
				else:
					if {payment::player} is more than 1:
						send "&cYou sold &6%{temporaryamount::player}%&c blaze rod for &6%{payment::player}%&c coins!"
					else:
						send "&cYou sold &6%{temporaryamount::player}%&c blaze rod for &6%{payment::player}%&c coin!"
				set {_money} to player's balance
				set player's balance to {_money} + {payment::player}
			else:
				send "&cYou selected more items than the ones you have!"
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
			delete {itemamount::player}
	if name of event-inventory is "&cNether Warts":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 11:
			set {_buynetherwarts} to a new chest inventory with 6 rows with name "&cBuy Nether Warts"
			set {temporaryamount::player} to 1
			set slot 4 of {_buynetherwarts} to nether wart named "&cNether Wart"
			set slot 19 of {_buynetherwarts} to green glass named "&a+1"
			set slot 22 of {_buynetherwarts} to green glass named "&a+5"
			set slot 25 of {_buynetherwarts} to green glass named "&aSet to 64"
			set slot 28 of {_buynetherwarts} to red glass named "&c-1"
			set slot 31 of {_buynetherwarts} to red glass named "&c-5"
			set slot 34 of {_buynetherwarts} to red glass named "&cSet to 1"
			set slot 49 of {_buynetherwarts} to green concrete named "&2Buy"
			close player's inventory
			open {_buynetherwarts} to player
		if index of event-slot = 15:
			set {_sellnetherwarts} to a new chest inventory with 6 rows with name "&cSell Nether Warts"
			set {temporaryamount::player} to 1
			set slot 4 of {_sellnetherwarts} to nether wart named "&cNether Wart"
			set slot 19 of {_sellnetherwarts} to green glass named "&a+1"
			set slot 22 of {_sellnetherwarts} to green glass named "&a+5"
			set slot 25 of {_sellnetherwarts} to green glass named "&aSelect all"
			set slot 28 of {_sellnetherwarts} to red glass named "&c-1"
			set slot 31 of {_sellnetherwarts} to red glass named "&c-5"
			set slot 34 of {_sellnetherwarts} to red glass named "&cSet to 1"
			set slot 49 of {_sellnetherwarts} to green concrete named "&2Sell"
			close player's inventory
			open {_sellnetherwarts} to player
	if name of event-inventory is "&cBuy Nether Warts":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buynetherwarts} to a new chest inventory with 6 rows with name "&cBuy Nether Warts"
			set slot 4 of {_buynetherwarts} to {temporaryamount::player} of nether wart named "&cNether Wart"
			set slot 19 of {_buynetherwarts} to green glass named "&a+1"
			set slot 22 of {_buynetherwarts} to green glass named "&a+5"
			set slot 25 of {_buynetherwarts} to green glass named "&aSet to 64"
			set slot 28 of {_buynetherwarts} to red glass named "&c-1"
			set slot 31 of {_buynetherwarts} to red glass named "&c-5"
			set slot 34 of {_buynetherwarts} to red glass named "&cSet to 1"
			set slot 49 of {_buynetherwarts} to green concrete named "&2Buy"
			close player's inventory
			open {_buynetherwarts} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buynetherwarts} to a new chest inventory with 6 rows with name "&cBuy Nether Warts"
			set slot 4 of {_buynetherwarts} to {temporaryamount::player} of nether wart named "&cNether Wart"
			set slot 19 of {_buynetherwarts} to green glass named "&a+1"
			set slot 22 of {_buynetherwarts} to green glass named "&a+5"
			set slot 25 of {_buynetherwarts} to green glass named "&aSet to 64"
			set slot 28 of {_buynetherwarts} to red glass named "&c-1"
			set slot 31 of {_buynetherwarts} to red glass named "&c-5"
			set slot 34 of {_buynetherwarts} to red glass named "&cSet to 1"
			set slot 49 of {_buynetherwarts} to green concrete named "&2Buy"
			close player's inventory
			open {_buynetherwarts} to player
		if index of event-slot = 25:
			set {temporaryamount::player} to 64
			set {_buynetherwarts} to a new chest inventory with 6 rows with name "&cBuy Nether Warts"
			set slot 4 of {_buynetherwarts} to {temporaryamount::player} of nether wart named "&cNether Wart"
			set slot 19 of {_buynetherwarts} to green glass named "&a+1"
			set slot 22 of {_buynetherwarts} to green glass named "&a+5"
			set slot 25 of {_buynetherwarts} to green glass named "&aSet to 64"
			set slot 28 of {_buynetherwarts} to red glass named "&c-1"
			set slot 31 of {_buynetherwarts} to red glass named "&c-5"
			set slot 34 of {_buynetherwarts} to red glass named "&cSet to 1"
			set slot 49 of {_buynetherwarts} to green concrete named "&2Buy"
			close player's inventory
			open {_buynetherwarts} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buynetherwarts} to a new chest inventory with 6 rows with name "&cBuy Nether Warts"
			set slot 4 of {_buynetherwarts} to {temporaryamount::player} of nether wart named "&cNether Wart"
			set slot 19 of {_buynetherwarts} to green glass named "&a+1"
			set slot 22 of {_buynetherwarts} to green glass named "&a+5"
			set slot 25 of {_buynetherwarts} to green glass named "&aSet to 64"
			set slot 28 of {_buynetherwarts} to red glass named "&c-1"
			set slot 31 of {_buynetherwarts} to red glass named "&c-5"
			set slot 34 of {_buynetherwarts} to red glass named "&cSet to 1"
			set slot 49 of {_buynetherwarts} to green concrete named "&2Buy"
			close player's inventory
			open {_buynetherwarts} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buynetherwarts} to a new chest inventory with 6 rows with name "&cBuy Nether Warts"
			set slot 4 of {_buynetherwarts} to {temporaryamount::player} of nether wart named "&cNether Wart"
			set slot 19 of {_buynetherwarts} to green glass named "&a+1"
			set slot 22 of {_buynetherwarts} to green glass named "&a+5"
			set slot 25 of {_buynetherwarts} to green glass named "&aSet to 64"
			set slot 28 of {_buynetherwarts} to red glass named "&c-1"
			set slot 31 of {_buynetherwarts} to red glass named "&c-5"
			set slot 34 of {_buynetherwarts} to red glass named "&cSet to 1"
			set slot 49 of {_buynetherwarts} to green concrete named "&2Buy"
			close player's inventory
			open {_buynetherwarts} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_buynetherwarts} to a new chest inventory with 6 rows with name "&cBuy Nether Warts"
			set slot 4 of {_buynetherwarts} to {temporaryamount::player} of nether wart named "&cNether Wart"
			set slot 19 of {_buynetherwarts} to green glass named "&a+1"
			set slot 22 of {_buynetherwarts} to green glass named "&a+5"
			set slot 25 of {_buynetherwarts} to green glass named "&aSet to 64"
			set slot 28 of {_buynetherwarts} to red glass named "&c-1"
			set slot 31 of {_buynetherwarts} to red glass named "&c-5"
			set slot 34 of {_buynetherwarts} to red glass named "&cSet to 1"
			set slot 49 of {_buynetherwarts} to green concrete named "&2Buy"
			close player's inventory
			open {_buynetherwarts} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {netherwartprice}
			if player's balance >= {payment::player}:
				give {temporaryamount::player} of nether warts to player
				if {temporaryamount::player} is more than 1:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c nether warts for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c nether warts for &6%{payment::player}%&c coin!"
				else:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c nether wart for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c nether wart for &6%{payment::player}%&c coin!"
				set {_money} to player's balance
				set player's balance to {_money} - {payment::player}
			else:
				send "&cYou don't have enough money, baka!"
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
	if name of event-inventory is "&cSell Nether Warts":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_sellnetherwarts} to a new chest inventory with 6 rows with name "&cSell Nether Warts"
			set slot 4 of {_sellnetherwarts} to {temporaryamount::player} of nether wart named "&cNether Wart"
			set slot 19 of {_sellnetherwarts} to green glass named "&a+1"
			set slot 22 of {_sellnetherwarts} to green glass named "&a+5"
			set slot 25 of {_sellnetherwarts} to green glass named "&aSelect all"
			set slot 28 of {_sellnetherwarts} to red glass named "&c-1"
			set slot 31 of {_sellnetherwarts} to red glass named "&c-5"
			set slot 34 of {_sellnetherwarts} to red glass named "&cSet to 1"
			set slot 49 of {_sellnetherwarts} to green concrete named "&2Sell"
			close player's inventory
			open {_sellnetherwarts} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_sellnetherwarts} to a new chest inventory with 6 rows with name "&cSell Nether Warts"
			set slot 4 of {_sellnetherwarts} to {temporaryamount::player} of nether wart named "&cNether Wart"
			set slot 19 of {_sellnetherwarts} to green glass named "&a+1"
			set slot 22 of {_sellnetherwarts} to green glass named "&a+5"
			set slot 25 of {_sellnetherwarts} to green glass named "&aSelect all"
			set slot 28 of {_sellnetherwarts} to red glass named "&c-1"
			set slot 31 of {_sellnetherwarts} to red glass named "&c-5"
			set slot 34 of {_sellnetherwarts} to red glass named "&cSet to 1"
			set slot 49 of {_sellnetherwarts} to green concrete named "&2Sell"
			close player's inventory
			open {_sellnetherwarts} to player
		if index of event-slot = 25:
			set {itemamount::player} to 0
			set {itemamount::player} to number of nether warts in player's inventory
			set {temporaryamount::player} to {itemamount::player}
			set {_sellnetherwarts} to a new chest inventory with 6 rows with name "&cSell Nether Warts"
			set slot 4 of {_sellnetherwarts} to {temporaryamount::player} of nether wart named "&cNether Wart"
			set slot 19 of {_sellnetherwarts} to green glass named "&a+1"
			set slot 22 of {_sellnetherwarts} to green glass named "&a+5"
			set slot 25 of {_sellnetherwarts} to green glass named "&aSelect all"
			set slot 28 of {_sellnetherwarts} to red glass named "&c-1"
			set slot 31 of {_sellnetherwarts} to red glass named "&c-5"
			set slot 34 of {_sellnetherwarts} to red glass named "&cSet to 1"
			set slot 49 of {_sellnetherwarts} to green concrete named "&2Sell"
			close player's inventory
			open {_sellnetherwarts} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_sellnetherwarts} to a new chest inventory with 6 rows with name "&cSell Nether Warts"
			set slot 4 of {_sellnetherwarts} to {temporaryamount::player} of nether wart named "&cNether Wart"
			set slot 19 of {_sellnetherwarts} to green glass named "&a+1"
			set slot 22 of {_sellnetherwarts} to green glass named "&a+5"
			set slot 25 of {_sellnetherwarts} to green glass named "&aSelect all"
			set slot 28 of {_sellnetherwarts} to red glass named "&c-1"
			set slot 31 of {_sellnetherwarts} to red glass named "&c-5"
			set slot 34 of {_sellnetherwarts} to red glass named "&cSet to 1"
			set slot 49 of {_sellnetherwarts} to green concrete named "&2Sell"
			close player's inventory
			open {_sellnetherwarts} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_sellnetherwarts} to a new chest inventory with 6 rows with name "&cSell Nether Warts"
			set slot 4 of {_sellnetherwarts} to {temporaryamount::player} of nether wart named "&cNether Wart"
			set slot 19 of {_sellnetherwarts} to green glass named "&a+1"
			set slot 22 of {_sellnetherwarts} to green glass named "&a+5"
			set slot 25 of {_sellnetherwarts} to green glass named "&aSelect all"
			set slot 28 of {_sellnetherwarts} to red glass named "&c-1"
			set slot 31 of {_sellnetherwarts} to red glass named "&c-5"
			set slot 34 of {_sellnetherwarts} to red glass named "&cSet to 1"
			set slot 49 of {_sellnetherwarts} to green concrete named "&2Sell"
			close player's inventory
			open {_sellnetherwarts} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_sellnetherwarts} to a new chest inventory with 6 rows with name "&cSell Nether Warts"
			set slot 4 of {_sellnetherwarts} to {temporaryamount::player} of nether wart named "&cNether Wart"
			set slot 19 of {_sellnetherwarts} to green glass named "&a+1"
			set slot 22 of {_sellnetherwarts} to green glass named "&a+5"
			set slot 25 of {_sellnetherwarts} to green glass named "&aSelect all"
			set slot 28 of {_sellnetherwarts} to red glass named "&c-1"
			set slot 31 of {_sellnetherwarts} to red glass named "&c-5"
			set slot 34 of {_sellnetherwarts} to red glass named "&cSet to 1"
			set slot 49 of {_sellnetherwarts} to green concrete named "&2Sell"
			close player's inventory
			open {_sellnetherwarts} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {netherwartsellprice}
			set {itemamount::player} to 0
			set {itemamount::player} to number of nether warts in player's inventory
			if {itemamount::player} >= {temporaryamount::player} :
				remove {temporaryamount::player} of nether wart from player's inventory
				if {temporaryamount::player} is more than 1:
					if {payment::player} is more than 1:
						send "&cYou sold &6%{temporaryamount::player}%&c nether warts for &6%{payment::player}%&c coins!"
					else:
						send "&cYou sold &6%{temporaryamount::player}%&c nether warts for &6%{payment::player}%&c coin!"
				else:
					if {payment::player} is more than 1:
						send "&cYou sold &6%{temporaryamount::player}%&c nether wart for &6%{payment::player}%&c coins!"
					else:
						send "&cYou sold &6%{temporaryamount::player}%&c nether wart for &6%{payment::player}%&c coin!"
				set {_money} to player's balance
				set player's balance to {_money} + {payment::player}
			else:
				send "&cYou selected more items than the ones you have!"
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
			delete {itemamount::player}
	if name of event-inventory is "&cMagma Cream":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 11:
			set {_buymagmacream} to a new chest inventory with 6 rows with name "&cBuy Magma Cream"
			set {temporaryamount::player} to 1
			set slot 4 of {_buymagmacream} to magma cream named "&cMagma Cream"
			set slot 19 of {_buymagmacream} to green glass named "&a+1"
			set slot 22 of {_buymagmacream} to green glass named "&a+5"
			set slot 25 of {_buymagmacream} to green glass named "&aSet to 64"
			set slot 28 of {_buymagmacream} to red glass named "&c-1"
			set slot 31 of {_buymagmacream} to red glass named "&c-5"
			set slot 34 of {_buymagmacream} to red glass named "&cSet to 1"
			set slot 49 of {_buymagmacream} to green concrete named "&2Buy"
			close player's inventory
			open {_buymagmacream} to player
		if index of event-slot = 15:
			set {_sellmagmacream} to a new chest inventory with 6 rows with name "&cSell Magma Cream"
			set {temporaryamount::player} to 1
			set slot 4 of {_sellmagmacream} to magma cream named "&cMagma Cream"
			set slot 19 of {_sellmagmacream} to green glass named "&a+1"
			set slot 22 of {_sellmagmacream} to green glass named "&a+5"
			set slot 25 of {_sellmagmacream} to green glass named "&aSelect all"
			set slot 28 of {_sellmagmacream} to red glass named "&c-1"
			set slot 31 of {_sellmagmacream} to red glass named "&c-5"
			set slot 34 of {_sellmagmacream} to red glass named "&cSet to 1"
			set slot 49 of {_sellmagmacream} to green concrete named "&2Sell"
			close player's inventory
			open {_sellmagmacream} to player
	if name of event-inventory is "&cBuy Magma Cream":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buymagmacream} to a new chest inventory with 6 rows with name "&cBuy Magma Cream"
			set slot 4 of {_buymagmacream} to {temporaryamount::player} of magma cream named "&cMagma Cream"
			set slot 19 of {_buymagmacream} to green glass named "&a+1"
			set slot 22 of {_buymagmacream} to green glass named "&a+5"
			set slot 25 of {_buymagmacream} to green glass named "&aSet to 64"
			set slot 28 of {_buymagmacream} to red glass named "&c-1"
			set slot 31 of {_buymagmacream} to red glass named "&c-5"
			set slot 34 of {_buymagmacream} to red glass named "&cSet to 1"
			set slot 49 of {_buymagmacream} to green concrete named "&2Buy"
			close player's inventory
			open {_buymagmacream} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buymagmacream} to a new chest inventory with 6 rows with name "&cBuy Magma Cream"
			set slot 4 of {_buymagmacream} to {temporaryamount::player} of magma cream named "&cMagma Cream"
			set slot 19 of {_buymagmacream} to green glass named "&a+1"
			set slot 22 of {_buymagmacream} to green glass named "&a+5"
			set slot 25 of {_buymagmacream} to green glass named "&aSet to 64"
			set slot 28 of {_buymagmacream} to red glass named "&c-1"
			set slot 31 of {_buymagmacream} to red glass named "&c-5"
			set slot 34 of {_buymagmacream} to red glass named "&cSet to 1"
			set slot 49 of {_buymagmacream} to green concrete named "&2Buy"
			close player's inventory
			open {_buymagmacream} to player
		if index of event-slot = 25:
			set {temporaryamount::player} to 64
			set {_buymagmacream} to a new chest inventory with 6 rows with name "&cBuy Magma Cream"
			set slot 4 of {_buymagmacream} to {temporaryamount::player} of magma cream named "&cMagma Cream"
			set slot 19 of {_buymagmacream} to green glass named "&a+1"
			set slot 22 of {_buymagmacream} to green glass named "&a+5"
			set slot 25 of {_buymagmacream} to green glass named "&aSet to 64"
			set slot 28 of {_buymagmacream} to red glass named "&c-1"
			set slot 31 of {_buymagmacream} to red glass named "&c-5"
			set slot 34 of {_buymagmacream} to red glass named "&cSet to 1"
			set slot 49 of {_buymagmacream} to green concrete named "&2Buy"
			close player's inventory
			open {_buymagmacream} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buymagmacream} to a new chest inventory with 6 rows with name "&cBuy Magma Cream"
			set slot 4 of {_buymagmacream} to {temporaryamount::player} of magma cream named "&cMagma Cream"
			set slot 19 of {_buymagmacream} to green glass named "&a+1"
			set slot 22 of {_buymagmacream} to green glass named "&a+5"
			set slot 25 of {_buymagmacream} to green glass named "&aSet to 64"
			set slot 28 of {_buymagmacream} to red glass named "&c-1"
			set slot 31 of {_buymagmacream} to red glass named "&c-5"
			set slot 34 of {_buymagmacream} to red glass named "&cSet to 1"
			set slot 49 of {_buymagmacream} to green concrete named "&2Buy"
			close player's inventory
			open {_buymagmacream} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buymagmacream} to a new chest inventory with 6 rows with name "&cBuy Magma Cream"
			set slot 4 of {_buymagmacream} to {temporaryamount::player} of magma cream named "&cMagma Cream"
			set slot 19 of {_buymagmacream} to green glass named "&a+1"
			set slot 22 of {_buymagmacream} to green glass named "&a+5"
			set slot 25 of {_buymagmacream} to green glass named "&aSet to 64"
			set slot 28 of {_buymagmacream} to red glass named "&c-1"
			set slot 31 of {_buymagmacream} to red glass named "&c-5"
			set slot 34 of {_buymagmacream} to red glass named "&cSet to 1"
			set slot 49 of {_buymagmacream} to green concrete named "&2Buy"
			close player's inventory
			open {_buymagmacream} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_buymagmacream} to a new chest inventory with 6 rows with name "&cBuy Magma Cream"
			set slot 4 of {_buymagmacream} to {temporaryamount::player} of magma cream named "&cMagma Cream"
			set slot 19 of {_buymagmacream} to green glass named "&a+1"
			set slot 22 of {_buymagmacream} to green glass named "&a+5"
			set slot 25 of {_buymagmacream} to green glass named "&aSet to 64"
			set slot 28 of {_buymagmacream} to red glass named "&c-1"
			set slot 31 of {_buymagmacream} to red glass named "&c-5"
			set slot 34 of {_buymagmacream} to red glass named "&cSet to 1"
			set slot 49 of {_buymagmacream} to green concrete named "&2Buy"
			close player's inventory
			open {_buymagmacream} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {magmacreamprice}
			if player's balance >= {payment::player}:
				give {temporaryamount::player} of magma cream to player
				if {temporaryamount::player} is more than 1:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c magma cream for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c magma cream for &6%{payment::player}%&c coin!"
				else:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c magma cream for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c magma cream for &6%{payment::player}%&c coin!"
				set {_money} to player's balance
				set player's balance to {_money} - {payment::player}
			else:
				send "&cYou don't have enough money, baka!"
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
	if name of event-inventory is "&cSell Magma Cream":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_sellmagmacream} to a new chest inventory with 6 rows with name "&cSell Magma Cream"
			set slot 4 of {_sellmagmacream} to {temporaryamount::player} of magma cream named "&cMagma Cream"
			set slot 19 of {_sellmagmacream} to green glass named "&a+1"
			set slot 22 of {_sellmagmacream} to green glass named "&a+5"
			set slot 25 of {_sellmagmacream} to green glass named "&aSelect all"
			set slot 28 of {_sellmagmacream} to red glass named "&c-1"
			set slot 31 of {_sellmagmacream} to red glass named "&c-5"
			set slot 34 of {_sellmagmacream} to red glass named "&cSet to 1"
			set slot 49 of {_sellmagmacream} to green concrete named "&2Sell"
			close player's inventory
			open {_sellmagmacream} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_sellmagmacream} to a new chest inventory with 6 rows with name "&cSell Magma Cream"
			set slot 4 of {_sellmagmacream} to {temporaryamount::player} of magma cream named "&cMagma Cream"
			set slot 19 of {_sellmagmacream} to green glass named "&a+1"
			set slot 22 of {_sellmagmacream} to green glass named "&a+5"
			set slot 25 of {_sellmagmacream} to green glass named "&aSelect all"
			set slot 28 of {_sellmagmacream} to red glass named "&c-1"
			set slot 31 of {_sellmagmacream} to red glass named "&c-5"
			set slot 34 of {_sellmagmacream} to red glass named "&cSet to 1"
			set slot 49 of {_sellmagmacream} to green concrete named "&2Sell"
			close player's inventory
			open {_sellmagmacream} to player
		if index of event-slot = 25:
			set {itemamount::player} to 0
			set {itemamount::player} to number of magma cream in player's inventory
			set {temporaryamount::player} to {itemamount::player}
			set {_sellmagmacream} to a new chest inventory with 6 rows with name "&cSell Magma Cream"
			set slot 4 of {_sellmagmacream} to {temporaryamount::player} of magma cream named "&cMagma Cream"
			set slot 19 of {_sellmagmacream} to green glass named "&a+1"
			set slot 22 of {_sellmagmacream} to green glass named "&a+5"
			set slot 25 of {_sellmagmacream} to green glass named "&aSelect all"
			set slot 28 of {_sellmagmacream} to red glass named "&c-1"
			set slot 31 of {_sellmagmacream} to red glass named "&c-5"
			set slot 34 of {_sellmagmacream} to red glass named "&cSet to 1"
			set slot 49 of {_sellmagmacream} to green concrete named "&2Sell"
			close player's inventory
			open {_sellmagmacream} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_sellmagmacream} to a new chest inventory with 6 rows with name "&cSell Magma Cream"
			set slot 4 of {_sellmagmacream} to {temporaryamount::player} of magma cream named "&cMagma Cream"
			set slot 19 of {_sellmagmacream} to green glass named "&a+1"
			set slot 22 of {_sellmagmacream} to green glass named "&a+5"
			set slot 25 of {_sellmagmacream} to green glass named "&aSelect all"
			set slot 28 of {_sellmagmacream} to red glass named "&c-1"
			set slot 31 of {_sellmagmacream} to red glass named "&c-5"
			set slot 34 of {_sellmagmacream} to red glass named "&cSet to 1"
			set slot 49 of {_sellmagmacream} to green concrete named "&2Sell"
			close player's inventory
			open {_sellmagmacream} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_sellmagmacream} to a new chest inventory with 6 rows with name "&cSell Magma Cream"
			set slot 4 of {_sellmagmacream} to {temporaryamount::player} of magma cream named "&cMagma Cream"
			set slot 19 of {_sellmagmacream} to green glass named "&a+1"
			set slot 22 of {_sellmagmacream} to green glass named "&a+5"
			set slot 25 of {_sellmagmacream} to green glass named "&aSelect all"
			set slot 28 of {_sellmagmacream} to red glass named "&c-1"
			set slot 31 of {_sellmagmacream} to red glass named "&c-5"
			set slot 34 of {_sellmagmacream} to red glass named "&cSet to 1"
			set slot 49 of {_sellmagmacream} to green concrete named "&2Sell"
			close player's inventory
			open {_sellmagmacream} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_sellmagmacream} to a new chest inventory with 6 rows with name "&cSell Magma Cream"
			set slot 4 of {_sellmagmacream} to {temporaryamount::player} of magma cream named "&cMagma Cream"
			set slot 19 of {_sellmagmacream} to green glass named "&a+1"
			set slot 22 of {_sellmagmacream} to green glass named "&a+5"
			set slot 25 of {_sellmagmacream} to green glass named "&aSelect all"
			set slot 28 of {_sellmagmacream} to red glass named "&c-1"
			set slot 31 of {_sellmagmacream} to red glass named "&c-5"
			set slot 34 of {_sellmagmacream} to red glass named "&cSet to 1"
			set slot 49 of {_sellmagmacream} to green concrete named "&2Sell"
			close player's inventory
			open {_sellmagmacream} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {magmacreamsellprice}
			set {itemamount::player} to 0
			set {itemamount::player} to number of magma cream in player's inventory
			if {itemamount::player} >= {temporaryamount::player} :
				remove {temporaryamount::player} of magma cream from player's inventory
				if {temporaryamount::player} is more than 1:
					if {payment::player} is more than 1:
						send "&cYou sold &6%{temporaryamount::player}%&c magma cream for &6%{payment::player}%&c coins!"
					else:
						send "&cYou sold &6%{temporaryamount::player}%&c magma cream for &6%{payment::player}%&c coin!"
				else:
					if {payment::player} is more than 1:
						send "&cYou sold &6%{temporaryamount::player}%&c magma cream for &6%{payment::player}%&c coins!"
					else:
						send "&cYou sold &6%{temporaryamount::player}%&c magma cream for &6%{payment::player}%&c coin!"
				set {_money} to player's balance
				set player's balance to {_money} + {payment::player}
			else:
				send "&cYou selected more items than the ones you have!"
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
			delete {itemamount::player}
	if name of event-inventory is "&cGlowstone Dust":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 11:
			set {_buyglowstonedust} to a new chest inventory with 6 rows with name "&cBuy Glowstone Dust"
			set {temporaryamount::player} to 1
			set slot 4 of {_buyglowstonedust} to glowstone dust named "&cGlowstone Dust"
			set slot 19 of {_buyglowstonedust} to green glass named "&a+1"
			set slot 22 of {_buyglowstonedust} to green glass named "&a+5"
			set slot 25 of {_buyglowstonedust} to green glass named "&aSet to 64"
			set slot 28 of {_buyglowstonedust} to red glass named "&c-1"
			set slot 31 of {_buyglowstonedust} to red glass named "&c-5"
			set slot 34 of {_buyglowstonedust} to red glass named "&cSet to 1"
			set slot 49 of {_buyglowstonedust} to green concrete named "&2Buy"
			close player's inventory
			open {_buyglowstonedust} to player
		if index of event-slot = 15:
			set {_sellglowstonedust} to a new chest inventory with 6 rows with name "&cSell Glowstone Dust"
			set {temporaryamount::player} to 1
			set slot 4 of {_sellglowstonedust} to glowstone dust named "&cGlowstone Dust"
			set slot 19 of {_sellglowstonedust} to green glass named "&a+1"
			set slot 22 of {_sellglowstonedust} to green glass named "&a+5"
			set slot 25 of {_sellglowstonedust} to green glass named "&aSelect all"
			set slot 28 of {_sellglowstonedust} to red glass named "&c-1"
			set slot 31 of {_sellglowstonedust} to red glass named "&c-5"
			set slot 34 of {_sellglowstonedust} to red glass named "&cSet to 1"
			set slot 49 of {_sellglowstonedust} to green concrete named "&2Sell"
			close player's inventory
			open {_sellglowstonedust} to player
	if name of event-inventory is "&cBuy Glowstone Dust":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buyglowstonedust} to a new chest inventory with 6 rows with name "&cBuy Glowstone Dust"
			set slot 4 of {_buyglowstonedust} to {temporaryamount::player} of glowstone dust named "&cGlowstone Dust"
			set slot 19 of {_buyglowstonedust} to green glass named "&a+1"
			set slot 22 of {_buyglowstonedust} to green glass named "&a+5"
			set slot 25 of {_buyglowstonedust} to green glass named "&aSet to 64"
			set slot 28 of {_buyglowstonedust} to red glass named "&c-1"
			set slot 31 of {_buyglowstonedust} to red glass named "&c-5"
			set slot 34 of {_buyglowstonedust} to red glass named "&cSet to 1"
			set slot 49 of {_buyglowstonedust} to green concrete named "&2Buy"
			close player's inventory
			open {_buyglowstonedust} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buyglowstonedust} to a new chest inventory with 6 rows with name "&cBuy Glowstone Dust"
			set slot 4 of {_buyglowstonedust} to {temporaryamount::player} of glowstone dust named "&cGlowstone Dust"
			set slot 19 of {_buyglowstonedust} to green glass named "&a+1"
			set slot 22 of {_buyglowstonedust} to green glass named "&a+5"
			set slot 25 of {_buyglowstonedust} to green glass named "&aSet to 64"
			set slot 28 of {_buyglowstonedust} to red glass named "&c-1"
			set slot 31 of {_buyglowstonedust} to red glass named "&c-5"
			set slot 34 of {_buyglowstonedust} to red glass named "&cSet to 1"
			set slot 49 of {_buyglowstonedust} to green concrete named "&2Buy"
			close player's inventory
			open {_buyglowstonedust} to player
		if index of event-slot = 25:
			set {temporaryamount::player} to 64
			set {_buyglowstonedust} to a new chest inventory with 6 rows with name "&cBuy Glowstone Dust"
			set slot 4 of {_buyglowstonedust} to {temporaryamount::player} of glowstone dust named "&cGlowstone Dust"
			set slot 19 of {_buyglowstonedust} to green glass named "&a+1"
			set slot 22 of {_buyglowstonedust} to green glass named "&a+5"
			set slot 25 of {_buyglowstonedust} to green glass named "&aSet to 64"
			set slot 28 of {_buyglowstonedust} to red glass named "&c-1"
			set slot 31 of {_buyglowstonedust} to red glass named "&c-5"
			set slot 34 of {_buyglowstonedust} to red glass named "&cSet to 1"
			set slot 49 of {_buyglowstonedust} to green concrete named "&2Buy"
			close player's inventory
			open {_buyglowstonedust} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buyglowstonedust} to a new chest inventory with 6 rows with name "&cBuy Glowstone Dust"
			set slot 4 of {_buyglowstonedust} to {temporaryamount::player} of glowstone dust named "&cGlowstone Dust"
			set slot 19 of {_buyglowstonedust} to green glass named "&a+1"
			set slot 22 of {_buyglowstonedust} to green glass named "&a+5"
			set slot 25 of {_buyglowstonedust} to green glass named "&aSet to 64"
			set slot 28 of {_buyglowstonedust} to red glass named "&c-1"
			set slot 31 of {_buyglowstonedust} to red glass named "&c-5"
			set slot 34 of {_buyglowstonedust} to red glass named "&cSet to 1"
			set slot 49 of {_buyglowstonedust} to green concrete named "&2Buy"
			close player's inventory
			open {_buyglowstonedust} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buyglowstonedust} to a new chest inventory with 6 rows with name "&cBuy Glowstone Dust"
			set slot 4 of {_buyglowstonedust} to {temporaryamount::player} of glowstone dust named "&cGlowstone Dust"
			set slot 19 of {_buyglowstonedust} to green glass named "&a+1"
			set slot 22 of {_buyglowstonedust} to green glass named "&a+5"
			set slot 25 of {_buyglowstonedust} to green glass named "&aSet to 64"
			set slot 28 of {_buyglowstonedust} to red glass named "&c-1"
			set slot 31 of {_buyglowstonedust} to red glass named "&c-5"
			set slot 34 of {_buyglowstonedust} to red glass named "&cSet to 1"
			set slot 49 of {_buyglowstonedust} to green concrete named "&2Buy"
			close player's inventory
			open {_buyglowstonedust} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_buyglowstonedust} to a new chest inventory with 6 rows with name "&cBuy Glowstone Dust"
			set slot 4 of {_buyglowstonedust} to {temporaryamount::player} of glowstone dust named "&cGlowstone Dust"
			set slot 19 of {_buyglowstonedust} to green glass named "&a+1"
			set slot 22 of {_buyglowstonedust} to green glass named "&a+5"
			set slot 25 of {_buyglowstonedust} to green glass named "&aSet to 64"
			set slot 28 of {_buyglowstonedust} to red glass named "&c-1"
			set slot 31 of {_buyglowstonedust} to red glass named "&c-5"
			set slot 34 of {_buyglowstonedust} to red glass named "&cSet to 1"
			set slot 49 of {_buyglowstonedust} to green concrete named "&2Buy"
			close player's inventory
			open {_buyglowstonedust} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {glowstonedustprice}
			if player's balance >= {payment::player}:
				give {temporaryamount::player} of glowstone dust to player
				if {temporaryamount::player} is more than 1:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c glowstone dust for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c glowstone dust for &6%{payment::player}%&c coin!"
				else:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c glowstone dust for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c glowstone dust for &6%{payment::player}%&c coin!"
				set {_money} to player's balance
				set player's balance to {_money} - {payment::player}
			else:
				send "&cYou don't have enough money, baka!"
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
	if name of event-inventory is "&cSell Glowstone Dust":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_sellglowstonedust} to a new chest inventory with 6 rows with name "&cSell Glowstone Dust"
			set slot 4 of {_sellglowstonedust} to {temporaryamount::player} of glowstone dust named "&cGlowstone Dust"
			set slot 19 of {_sellglowstonedust} to green glass named "&a+1"
			set slot 22 of {_sellglowstonedust} to green glass named "&a+5"
			set slot 25 of {_sellglowstonedust} to green glass named "&aSelect all"
			set slot 28 of {_sellglowstonedust} to red glass named "&c-1"
			set slot 31 of {_sellglowstonedust} to red glass named "&c-5"
			set slot 34 of {_sellglowstonedust} to red glass named "&cSet to 1"
			set slot 49 of {_sellglowstonedust} to green concrete named "&2Sell"
			close player's inventory
			open {_sellglowstonedust} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_sellglowstonedust} to a new chest inventory with 6 rows with name "&cSell Glowstone Dust"
			set slot 4 of {_sellglowstonedust} to {temporaryamount::player} of glowstone dust named "&cGlowstone Dust"
			set slot 19 of {_sellglowstonedust} to green glass named "&a+1"
			set slot 22 of {_sellglowstonedust} to green glass named "&a+5"
			set slot 25 of {_sellglowstonedust} to green glass named "&aSelect all"
			set slot 28 of {_sellglowstonedust} to red glass named "&c-1"
			set slot 31 of {_sellglowstonedust} to red glass named "&c-5"
			set slot 34 of {_sellglowstonedust} to red glass named "&cSet to 1"
			set slot 49 of {_sellglowstonedust} to green concrete named "&2Sell"
			close player's inventory
			open {_sellglowstonedust} to player
		if index of event-slot = 25:
			set {itemamount::player} to 0
			set {itemamount::player} to number of glowstone dust in player's inventory
			set {temporaryamount::player} to {itemamount::player}
			set {_sellglowstonedust} to a new chest inventory with 6 rows with name "&cSell Glowstone Dust"
			set slot 4 of {_sellglowstonedust} to {temporaryamount::player} of glowstone dust named "&cGlowstone Dust"
			set slot 19 of {_sellglowstonedust} to green glass named "&a+1"
			set slot 22 of {_sellglowstonedust} to green glass named "&a+5"
			set slot 25 of {_sellglowstonedust} to green glass named "&aSelect all"
			set slot 28 of {_sellglowstonedust} to red glass named "&c-1"
			set slot 31 of {_sellglowstonedust} to red glass named "&c-5"
			set slot 34 of {_sellglowstonedust} to red glass named "&cSet to 1"
			set slot 49 of {_sellglowstonedust} to green concrete named "&2Sell"
			close player's inventory
			open {_sellglowstonedust} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_sellglowstonedust} to a new chest inventory with 6 rows with name "&cSell Glowstone Dust"
			set slot 4 of {_sellglowstonedust} to {temporaryamount::player} of glowstone dust named "&cGlowstone Dust"
			set slot 19 of {_sellglowstonedust} to green glass named "&a+1"
			set slot 22 of {_sellglowstonedust} to green glass named "&a+5"
			set slot 25 of {_sellglowstonedust} to green glass named "&aSelect all"
			set slot 28 of {_sellglowstonedust} to red glass named "&c-1"
			set slot 31 of {_sellglowstonedust} to red glass named "&c-5"
			set slot 34 of {_sellglowstonedust} to red glass named "&cSet to 1"
			set slot 49 of {_sellglowstonedust} to green concrete named "&2Sell"
			close player's inventory
			open {_sellglowstonedust} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_sellglowstonedust} to a new chest inventory with 6 rows with name "&cSell Glowstone Dust"
			set slot 4 of {_sellglowstonedust} to {temporaryamount::player} of glowstone dust named "&cGlowstone Dust"
			set slot 19 of {_sellglowstonedust} to green glass named "&a+1"
			set slot 22 of {_sellglowstonedust} to green glass named "&a+5"
			set slot 25 of {_sellglowstonedust} to green glass named "&aSelect all"
			set slot 28 of {_sellglowstonedust} to red glass named "&c-1"
			set slot 31 of {_sellglowstonedust} to red glass named "&c-5"
			set slot 34 of {_sellglowstonedust} to red glass named "&cSet to 1"
			set slot 49 of {_sellglowstonedust} to green concrete named "&2Sell"
			close player's inventory
			open {_sellglowstonedust} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_sellglowstonedust} to a new chest inventory with 6 rows with name "&cSell Glowstone Dust"
			set slot 4 of {_sellglowstonedust} to {temporaryamount::player} of glowstone dust named "&cGlowstone Dust"
			set slot 19 of {_sellglowstonedust} to green glass named "&a+1"
			set slot 22 of {_sellglowstonedust} to green glass named "&a+5"
			set slot 25 of {_sellglowstonedust} to green glass named "&aSelect all"
			set slot 28 of {_sellglowstonedust} to red glass named "&c-1"
			set slot 31 of {_sellglowstonedust} to red glass named "&c-5"
			set slot 34 of {_sellglowstonedust} to red glass named "&cSet to 1"
			set slot 49 of {_sellglowstonedust} to green concrete named "&2Sell"
			close player's inventory
			open {_sellglowstonedust} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {glowstonedustsellprice}
			set {itemamount::player} to 0
			set {itemamount::player} to number of glowstone dust in player's inventory
			if {itemamount::player} >= {temporaryamount::player} :
				remove {temporaryamount::player} of glowstone dust from player's inventory
				if {temporaryamount::player} is more than 1:
					if {payment::player} is more than 1:
						send "&cYou sold &6%{temporaryamount::player}%&c glowstone dust for &6%{payment::player}%&c coins!"
					else:
						send "&cYou sold &6%{temporaryamount::player}%&c glowstone dust for &6%{payment::player}%&c coin!"
				else:
					if {payment::player} is more than 1:
						send "&cYou sold &6%{temporaryamount::player}%&c glowstone dust for &6%{payment::player}%&c coins!"
					else:
						send "&cYou sold &6%{temporaryamount::player}%&c glowstone dust for &6%{payment::player}%&c coin!"
				set {_money} to player's balance
				set player's balance to {_money} + {payment::player}
			else:
				send "&cYou selected more items than the ones you have!"
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
			delete {itemamount::player}
	if name of event-inventory is "&cGhast Tears":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 11:
			set {_buyghasttears} to a new chest inventory with 6 rows with name "&cBuy Ghast Tears"
			set {temporaryamount::player} to 1
			set slot 4 of {_buyghasttears} to ghast tear named "&cGhast Tear"
			set slot 19 of {_buyghasttears} to green glass named "&a+1"
			set slot 22 of {_buyghasttears} to green glass named "&a+5"
			set slot 25 of {_buyghasttears} to green glass named "&aSet to 64"
			set slot 28 of {_buyghasttears} to red glass named "&c-1"
			set slot 31 of {_buyghasttears} to red glass named "&c-5"
			set slot 34 of {_buyghasttears} to red glass named "&cSet to 1"
			set slot 49 of {_buyghasttears} to green concrete named "&2Buy"
			close player's inventory
			open {_buyghasttears} to player
		if index of event-slot = 15:
			set {_sellghasttears} to a new chest inventory with 6 rows with name "&cSell Ghast Tears"
			set {temporaryamount::player} to 1
			set slot 4 of {_sellghasttears} to ghast tear named "&cGhast Tear"
			set slot 19 of {_sellghasttears} to green glass named "&a+1"
			set slot 22 of {_sellghasttears} to green glass named "&a+5"
			set slot 25 of {_sellghasttears} to green glass named "&aSelect all"
			set slot 28 of {_sellghasttears} to red glass named "&c-1"
			set slot 31 of {_sellghasttears} to red glass named "&c-5"
			set slot 34 of {_sellghasttears} to red glass named "&cSet to 1"
			set slot 49 of {_sellghasttears} to green concrete named "&2Sell"
			close player's inventory
			open {_sellghasttears} to player
	if name of event-inventory is "&cBuy Ghast Tears":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buyghasttears} to a new chest inventory with 6 rows with name "&cBuy Ghast Tears"
			set slot 4 of {_buyghasttears} to {temporaryamount::player} of ghast tear named "&cGhast Tear"
			set slot 19 of {_buyghasttears} to green glass named "&a+1"
			set slot 22 of {_buyghasttears} to green glass named "&a+5"
			set slot 25 of {_buyghasttears} to green glass named "&aSet to 64"
			set slot 28 of {_buyghasttears} to red glass named "&c-1"
			set slot 31 of {_buyghasttears} to red glass named "&c-5"
			set slot 34 of {_buyghasttears} to red glass named "&cSet to 1"
			set slot 49 of {_buyghasttears} to green concrete named "&2Buy"
			close player's inventory
			open {_buyghasttears} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buyghasttears} to a new chest inventory with 6 rows with name "&cBuy Ghast Tears"
			set slot 4 of {_buyghasttears} to {temporaryamount::player} of ghast tear named "&cGhast Tear"
			set slot 19 of {_buyghasttears} to green glass named "&a+1"
			set slot 22 of {_buyghasttears} to green glass named "&a+5"
			set slot 25 of {_buyghasttears} to green glass named "&aSet to 64"
			set slot 28 of {_buyghasttears} to red glass named "&c-1"
			set slot 31 of {_buyghasttears} to red glass named "&c-5"
			set slot 34 of {_buyghasttears} to red glass named "&cSet to 1"
			set slot 49 of {_buyghasttears} to green concrete named "&2Buy"
			close player's inventory
			open {_buyghasttears} to player
		if index of event-slot = 25:
			set {temporaryamount::player} to 64
			set {_buyghasttears} to a new chest inventory with 6 rows with name "&cBuy Ghast Tears"
			set slot 4 of {_buyghasttears} to {temporaryamount::player} of ghast tear named "&cGhast Tear"
			set slot 19 of {_buyghasttears} to green glass named "&a+1"
			set slot 22 of {_buyghasttears} to green glass named "&a+5"
			set slot 25 of {_buyghasttears} to green glass named "&aSet to 64"
			set slot 28 of {_buyghasttears} to red glass named "&c-1"
			set slot 31 of {_buyghasttears} to red glass named "&c-5"
			set slot 34 of {_buyghasttears} to red glass named "&cSet to 1"
			set slot 49 of {_buyghasttears} to green concrete named "&2Buy"
			close player's inventory
			open {_buyghasttears} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buyghasttears} to a new chest inventory with 6 rows with name "&cBuy Ghast Tears"
			set slot 4 of {_buyghasttears} to {temporaryamount::player} of ghast tear named "&cGhast Tear"
			set slot 19 of {_buyghasttears} to green glass named "&a+1"
			set slot 22 of {_buyghasttears} to green glass named "&a+5"
			set slot 25 of {_buyghasttears} to green glass named "&aSet to 64"
			set slot 28 of {_buyghasttears} to red glass named "&c-1"
			set slot 31 of {_buyghasttears} to red glass named "&c-5"
			set slot 34 of {_buyghasttears} to red glass named "&cSet to 1"
			set slot 49 of {_buyghasttears} to green concrete named "&2Buy"
			close player's inventory
			open {_buyghasttears} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buyghasttears} to a new chest inventory with 6 rows with name "&cBuy Ghast Tears"
			set slot 4 of {_buyghasttears} to {temporaryamount::player} of ghast tear named "&cGhast Tear"
			set slot 19 of {_buyghasttears} to green glass named "&a+1"
			set slot 22 of {_buyghasttears} to green glass named "&a+5"
			set slot 25 of {_buyghasttears} to green glass named "&aSet to 64"
			set slot 28 of {_buyghasttears} to red glass named "&c-1"
			set slot 31 of {_buyghasttears} to red glass named "&c-5"
			set slot 34 of {_buyghasttears} to red glass named "&cSet to 1"
			set slot 49 of {_buyghasttears} to green concrete named "&2Buy"
			close player's inventory
			open {_buyghasttears} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_buyghasttears} to a new chest inventory with 6 rows with name "&cBuy Ghast Tears"
			set slot 4 of {_buyghasttears} to {temporaryamount::player} of ghast tear named "&cGhast Tear"
			set slot 19 of {_buyghasttears} to green glass named "&a+1"
			set slot 22 of {_buyghasttears} to green glass named "&a+5"
			set slot 25 of {_buyghasttears} to green glass named "&aSet to 64"
			set slot 28 of {_buyghasttears} to red glass named "&c-1"
			set slot 31 of {_buyghasttears} to red glass named "&c-5"
			set slot 34 of {_buyghasttears} to red glass named "&cSet to 1"
			set slot 49 of {_buyghasttears} to green concrete named "&2Buy"
			close player's inventory
			open {_buyghasttears} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {ghasttearprice}
			if player's balance >= {payment::player}:
				give {temporaryamount::player} of ghast tears to player
				if {temporaryamount::player} is more than 1:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c ghast tears for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c ghast tears for &6%{payment::player}%&c coin!"
				else:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c ghast tear for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c ghast tear for &6%{payment::player}%&c coin!"
				set {_money} to player's balance
				set player's balance to {_money} - {payment::player}
			else:
				send "&cYou don't have enough money, baka!"
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
	if name of event-inventory is "&cSell Ghast Tears":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_sellghasttears} to a new chest inventory with 6 rows with name "&cSell Ghast Tears"
			set slot 4 of {_sellghasttears} to {temporaryamount::player} of ghast tear named "&cGhast Tear"
			set slot 19 of {_sellghasttears} to green glass named "&a+1"
			set slot 22 of {_sellghasttears} to green glass named "&a+5"
			set slot 25 of {_sellghasttears} to green glass named "&aSelect all"
			set slot 28 of {_sellghasttears} to red glass named "&c-1"
			set slot 31 of {_sellghasttears} to red glass named "&c-5"
			set slot 34 of {_sellghasttears} to red glass named "&cSet to 1"
			set slot 49 of {_sellghasttears} to green concrete named "&2Sell"
			close player's inventory
			open {_sellghasttears} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_sellghasttears} to a new chest inventory with 6 rows with name "&cSell Ghast Tears"
			set slot 4 of {_sellghasttears} to {temporaryamount::player} of ghast tear named "&cGhast Tear"
			set slot 19 of {_sellghasttears} to green glass named "&a+1"
			set slot 22 of {_sellghasttears} to green glass named "&a+5"
			set slot 25 of {_sellghasttears} to green glass named "&aSelect all"
			set slot 28 of {_sellghasttears} to red glass named "&c-1"
			set slot 31 of {_sellghasttears} to red glass named "&c-5"
			set slot 34 of {_sellghasttears} to red glass named "&cSet to 1"
			set slot 49 of {_sellghasttears} to green concrete named "&2Sell"
			close player's inventory
			open {_sellghasttears} to player
		if index of event-slot = 25:
			set {itemamount::player} to 0
			set {itemamount::player} to number of ghast tears in player's inventory
			set {temporaryamount::player} to {itemamount::player}
			set {_sellghasttears} to a new chest inventory with 6 rows with name "&cSell Ghast Tears"
			set slot 4 of {_sellghasttears} to {temporaryamount::player} of ghast tear named "&cGhast Tear"
			set slot 19 of {_sellghasttears} to green glass named "&a+1"
			set slot 22 of {_sellghasttears} to green glass named "&a+5"
			set slot 25 of {_sellghasttears} to green glass named "&aSelect all"
			set slot 28 of {_sellghasttears} to red glass named "&c-1"
			set slot 31 of {_sellghasttears} to red glass named "&c-5"
			set slot 34 of {_sellghasttears} to red glass named "&cSet to 1"
			set slot 49 of {_sellghasttears} to green concrete named "&2Sell"
			close player's inventory
			open {_sellghasttears} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_sellghasttears} to a new chest inventory with 6 rows with name "&cSell Ghast Tears"
			set slot 4 of {_sellghasttears} to {temporaryamount::player} of ghast tear named "&cGhast Tear"
			set slot 19 of {_sellghasttears} to green glass named "&a+1"
			set slot 22 of {_sellghasttears} to green glass named "&a+5"
			set slot 25 of {_sellghasttears} to green glass named "&aSelect all"
			set slot 28 of {_sellghasttears} to red glass named "&c-1"
			set slot 31 of {_sellghasttears} to red glass named "&c-5"
			set slot 34 of {_sellghasttears} to red glass named "&cSet to 1"
			set slot 49 of {_sellghasttears} to green concrete named "&2Sell"
			close player's inventory
			open {_sellghasttears} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_sellghasttears} to a new chest inventory with 6 rows with name "&cSell Ghast Tears"
			set slot 4 of {_sellghasttears} to {temporaryamount::player} of ghast tear named "&cGhast Tear"
			set slot 19 of {_sellghasttears} to green glass named "&a+1"
			set slot 22 of {_sellghasttears} to green glass named "&a+5"
			set slot 25 of {_sellghasttears} to green glass named "&aSelect all"
			set slot 28 of {_sellghasttears} to red glass named "&c-1"
			set slot 31 of {_sellghasttears} to red glass named "&c-5"
			set slot 34 of {_sellghasttears} to red glass named "&cSet to 1"
			set slot 49 of {_sellghasttears} to green concrete named "&2Sell"
			close player's inventory
			open {_sellghasttears} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_sellghasttears} to a new chest inventory with 6 rows with name "&cSell Ghast Tears"
			set slot 4 of {_sellghasttears} to {temporaryamount::player} of ghast tear named "&cGhast Tear"
			set slot 19 of {_sellghasttears} to green glass named "&a+1"
			set slot 22 of {_sellghasttears} to green glass named "&a+5"
			set slot 25 of {_sellghasttears} to green glass named "&aSelect all"
			set slot 28 of {_sellghasttears} to red glass named "&c-1"
			set slot 31 of {_sellghasttears} to red glass named "&c-5"
			set slot 34 of {_sellghasttears} to red glass named "&cSet to 1"
			set slot 49 of {_sellghasttears} to green concrete named "&2Sell"
			close player's inventory
			open {_sellghasttears} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {ghasttearsellprice}
			set {itemamount::player} to 0
			set {itemamount::player} to number of ghast tears in player's inventory
			if {itemamount::player} >= {temporaryamount::player} :
				remove {temporaryamount::player} of ghast tear from player's inventory
				if {temporaryamount::player} is more than 1:
					if {payment::player} is more than 1:
						send "&cYou sold &6%{temporaryamount::player}%&c ghast tears for &6%{payment::player}%&c coins!"
					else:
						send "&cYou sold &6%{temporaryamount::player}%&c ghast tears for &6%{payment::player}%&c coin!"
				else:
					if {payment::player} is more than 1:
						send "&cYou sold &6%{temporaryamount::player}%&c ghast tear for &6%{payment::player}%&c coins!"
					else:
						send "&cYou sold &6%{temporaryamount::player}%&c ghast tear for &6%{payment::player}%&c coin!"
				set {_money} to player's balance
				set player's balance to {_money} + {payment::player}
			else:
				send "&cYou selected more items than the ones you have!"
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
			delete {itemamount::player}
	if name of event-inventory is "&l<##006afb>O<##1f9cfb>R<##3ecdfb>E<##5dfffb>S":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 9:
			set {_buyorsellironingots} to a new chest inventory with 3 rows with name "&bIron Ingots"
			set slot 4 of {_buyorsellironingots} to iron ingot named "&bIron Ingots" with lore {_ironingotlore::*}
			set slot 11 of {_buyorsellironingots} to green concrete named "&aBuy"
			set slot 15 of {_buyorsellironingots} to red concrete named "&cSell"
			set slot 22 of {_buyorsellironingots} to barrier named "&cBack"
			close player's inventory
			open {_buyorsellironingots} to player
		if index of event-slot = 11:
			set {_buyorsellgoldingots} to a new chest inventory with 3 rows with name "&bGold Ingots"
			set slot 4 of {_buyorsellgoldingots} to gold ingot named "&bGold Ingots" with lore {_goldingotlore::*}
			set slot 11 of {_buyorsellgoldingots} to green concrete named "&aBuy"
			set slot 15 of {_buyorsellgoldingots} to red concrete named "&cSell"
			set slot 22 of {_buyorsellgoldingots} to barrier named "&cBack"
			close player's inventory
			open {_buyorsellgoldingots} to player
		if index of event-slot = 13:
			set {_buyorsellemeralds} to a new chest inventory with 3 rows with name "&bEmeralds"
			set slot 4 of {_buyorsellemeralds} to emerald named "&bEmeralds" with lore {_emeraldlore::*}
			set slot 11 of {_buyorsellemeralds} to green concrete named "&aBuy"
			set slot 15 of {_buyorsellemeralds} to red concrete named "&cSell"
			set slot 22 of {_buyorsellemeralds} to barrier named "&cBack"
			close player's inventory
			open {_buyorsellemeralds} to player
		if index of event-slot = 15:
			set {_buyorselldiamonds} to a new chest inventory with 3 rows with name "&bDiamonds"
			set slot 4 of {_buyorselldiamonds} to diamond named "&bDiamonds" with lore {_diamondlore::*}
			set slot 11 of {_buyorselldiamonds} to green concrete named "&aBuy"
			set slot 15 of {_buyorselldiamonds} to red concrete named "&cSell"
			set slot 22 of {_buyorselldiamonds} to barrier named "&cBack"
			close player's inventory
			open {_buyorselldiamonds} to player
		if index of event-slot = 17:
			set {_buyorsellnetheriteingots} to a new chest inventory with 3 rows with name "&bNetherite Ingots"
			set slot 4 of {_buyorsellnetheriteingots} to netherite ingot named "&bNetherite Ingots" with lore {_netheriteingotlore::*}
			set slot 11 of {_buyorsellnetheriteingots} to green concrete named "&aBuy"
			set slot 15 of {_buyorsellnetheriteingots} to red concrete named "&cSell"
			set slot 22 of {_buyorsellnetheriteingots} to barrier named "&cBack"
			close player's inventory
			open {_buyorsellnetheriteingots} to player
		if index of event-slot = 18:
			set {_buyorsellironblocks} to a new chest inventory with 3 rows with name "&bIron Blocks"
			set slot 4 of {_buyorsellironblocks} to iron block named "&bIron Blocks" with lore {_ironblocklore::*}
			set slot 11 of {_buyorsellironblocks} to green concrete named "&aBuy"
			set slot 15 of {_buyorsellironblocks} to red concrete named "&cSell"
			set slot 22 of {_buyorsellironblocks} to barrier named "&cBack"
			close player's inventory
			open {_buyorsellironblocks} to player
		if index of event-slot = 20:
			set {_buyorsellgoldblocks} to a new chest inventory with 3 rows with name "&bGold Blocks"
			set slot 4 of {_buyorsellgoldblocks} to gold block named "&bGold Blocks" with lore {_goldblocklore::*}
			set slot 11 of {_buyorsellgoldblocks} to green concrete named "&aBuy"
			set slot 15 of {_buyorsellgoldblocks} to red concrete named "&cSell"
			set slot 22 of {_buyorsellgoldblocks} to barrier named "&cBack"
			close player's inventory
			open {_buyorsellgoldblocks} to player
		if index of event-slot = 22:
			set {_buyorsellemeraldblocks} to a new chest inventory with 3 rows with name "&bEmerald Blocks"
			set slot 4 of {_buyorsellemeraldblocks} to emerald block named "&bEmerald Blocks" with lore {_emeraldblocklore::*}
			set slot 11 of {_buyorsellemeraldblocks} to green concrete named "&aBuy"
			set slot 15 of {_buyorsellemeraldblocks} to red concrete named "&cSell"
			set slot 22 of {_buyorsellemeraldblocks} to barrier named "&cBack"
			close player's inventory
			open {_buyorsellemeraldblocks} to player
		if index of event-slot = 24:
			set {_buyorselldiamondblocks} to a new chest inventory with 3 rows with name "&bDiamond Blocks"
			set slot 4 of {_buyorselldiamondblocks} to diamond block named "&bDiamond Blocks" with lore {_diamondblocklore::*}
			set slot 11 of {_buyorselldiamondblocks} to green concrete named "&aBuy"
			set slot 15 of {_buyorselldiamondblocks} to red concrete named "&cSell"
			set slot 22 of {_buyorselldiamondblocks} to barrier named "&cBack"
			close player's inventory
			open {_buyorselldiamondblocks} to player
		if index of event-slot = 26:
			set {_buyorsellnetheriteblocks} to a new chest inventory with 3 rows with name "&bNetherite Blocks"
			set slot 4 of {_buyorsellnetheriteblocks} to netherite block named "&bNetherite Blocks" with lore {_netheriteblocklore::*}
			set slot 11 of {_buyorsellnetheriteblocks} to green concrete named "&aBuy"
			set slot 15 of {_buyorsellnetheriteblocks} to red concrete named "&cSell"
			set slot 22 of {_buyorsellnetheriteblocks} to barrier named "&cBack"
			close player's inventory
			open {_buyorsellnetheriteblocks} to player
	if name of event-inventory is "&bIron Ingots":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 11:
			set {_buyironingots} to a new chest inventory with 6 rows with name "&bBuy Iron Ingots"
			set {temporaryamount::player} to 1
			set slot 4 of {_buyironingots} to iron ingot named "&bIron Ingot"
			set slot 19 of {_buyironingots} to green glass named "&a+1"
			set slot 22 of {_buyironingots} to green glass named "&a+5"
			set slot 25 of {_buyironingots} to green glass named "&aSet to 64"
			set slot 28 of {_buyironingots} to red glass named "&c-1"
			set slot 31 of {_buyironingots} to red glass named "&c-5"
			set slot 34 of {_buyironingots} to red glass named "&cSet to 1"
			set slot 49 of {_buyironingots} to green concrete named "&2Buy"
			close player's inventory
			open {_buyironingots} to player
		if index of event-slot = 15:
			set {_sellironingots} to a new chest inventory with 6 rows with name "&bSell Iron Ingots"
			set {temporaryamount::player} to 1
			set slot 4 of {_sellironingots} to iron ingot named "&bIron Ingot"
			set slot 19 of {_sellironingots} to green glass named "&a+1"
			set slot 22 of {_sellironingots} to green glass named "&a+5"
			set slot 25 of {_sellironingots} to green glass named "&aSelect all"
			set slot 28 of {_sellironingots} to red glass named "&c-1"
			set slot 31 of {_sellironingots} to red glass named "&c-5"
			set slot 34 of {_sellironingots} to red glass named "&cSet to 1"
			set slot 49 of {_sellironingots} to green concrete named "&2Sell"
			close player's inventory
			open {_sellironingots} to player
	if name of event-inventory is "&bBuy Iron Ingots":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buyironingots} to a new chest inventory with 6 rows with name "&bBuy Iron Ingots"
			set slot 4 of {_buyironingots} to {temporaryamount::player} of iron ingot named "&bIron Ingot"
			set slot 19 of {_buyironingots} to green glass named "&a+1"
			set slot 22 of {_buyironingots} to green glass named "&a+5"
			set slot 25 of {_buyironingots} to green glass named "&aSet to 64"
			set slot 28 of {_buyironingots} to red glass named "&c-1"
			set slot 31 of {_buyironingots} to red glass named "&c-5"
			set slot 34 of {_buyironingots} to red glass named "&cSet to 1"
			set slot 49 of {_buyironingots} to green concrete named "&2Buy"
			close player's inventory
			open {_buyironingots} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buyironingots} to a new chest inventory with 6 rows with name "&bBuy Iron Ingots"
			set slot 4 of {_buyironingots} to {temporaryamount::player} of iron ingot named "&bIron Ingot"
			set slot 19 of {_buyironingots} to green glass named "&a+1"
			set slot 22 of {_buyironingots} to green glass named "&a+5"
			set slot 25 of {_buyironingots} to green glass named "&aSet to 64"
			set slot 28 of {_buyironingots} to red glass named "&c-1"
			set slot 31 of {_buyironingots} to red glass named "&c-5"
			set slot 34 of {_buyironingots} to red glass named "&cSet to 1"
			set slot 49 of {_buyironingots} to green concrete named "&2Buy"
			close player's inventory
			open {_buyironingots} to player
		if index of event-slot = 25:
			set {temporaryamount::player} to 64
			set {_buyironingots} to a new chest inventory with 6 rows with name "&bBuy Iron Ingots"
			set slot 4 of {_buyironingots} to {temporaryamount::player} of iron ingot named "&bIron Ingot"
			set slot 19 of {_buyironingots} to green glass named "&a+1"
			set slot 22 of {_buyironingots} to green glass named "&a+5"
			set slot 25 of {_buyironingots} to green glass named "&aSet to 64"
			set slot 28 of {_buyironingots} to red glass named "&c-1"
			set slot 31 of {_buyironingots} to red glass named "&c-5"
			set slot 34 of {_buyironingots} to red glass named "&cSet to 1"
			set slot 49 of {_buyironingots} to green concrete named "&2Buy"
			close player's inventory
			open {_buyironingots} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buyironingots} to a new chest inventory with 6 rows with name "&bBuy Iron Ingots"
			set slot 4 of {_buyironingots} to {temporaryamount::player} of iron ingot named "&bIron Ingot"
			set slot 19 of {_buyironingots} to green glass named "&a+1"
			set slot 22 of {_buyironingots} to green glass named "&a+5"
			set slot 25 of {_buyironingots} to green glass named "&aSet to 64"
			set slot 28 of {_buyironingots} to red glass named "&c-1"
			set slot 31 of {_buyironingots} to red glass named "&c-5"
			set slot 34 of {_buyironingots} to red glass named "&cSet to 1"
			set slot 49 of {_buyironingots} to green concrete named "&2Buy"
			close player's inventory
			open {_buyironingots} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buyironingots} to a new chest inventory with 6 rows with name "&bBuy Iron Ingots"
			set slot 4 of {_buyironingots} to {temporaryamount::player} of iron ingot named "&bIron Ingot"
			set slot 19 of {_buyironingots} to green glass named "&a+1"
			set slot 22 of {_buyironingots} to green glass named "&a+5"
			set slot 25 of {_buyironingots} to green glass named "&aSet to 64"
			set slot 28 of {_buyironingots} to red glass named "&c-1"
			set slot 31 of {_buyironingots} to red glass named "&c-5"
			set slot 34 of {_buyironingots} to red glass named "&cSet to 1"
			set slot 49 of {_buyironingots} to green concrete named "&2Buy"
			close player's inventory
			open {_buyironingots} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_buyironingots} to a new chest inventory with 6 rows with name "&bBuy Iron Ingots"
			set slot 4 of {_buyironingots} to {temporaryamount::player} of iron ingot named "&bIron Ingot"
			set slot 19 of {_buyironingots} to green glass named "&a+1"
			set slot 22 of {_buyironingots} to green glass named "&a+5"
			set slot 25 of {_buyironingots} to green glass named "&aSet to 64"
			set slot 28 of {_buyironingots} to red glass named "&c-1"
			set slot 31 of {_buyironingots} to red glass named "&c-5"
			set slot 34 of {_buyironingots} to red glass named "&cSet to 1"
			set slot 49 of {_buyironingots} to green concrete named "&2Buy"
			close player's inventory
			open {_buyironingots} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {ironingotprice}
			if player's balance >= {payment::player}:
				give {temporaryamount::player} of iron ingots to player
				if {temporaryamount::player} is more than 1:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c iron ingots for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c iron ingots for &6%{payment::player}%&c coin!"
				else:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c iron ingot for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c iron ingot for &6%{payment::player}%&c coin!"
				set {_money} to player's balance
				set player's balance to {_money} - {payment::player}
			else:
				send "&cYou don't have enough money, baka!"
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
	if name of event-inventory is "&bSell Iron Ingots":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_sellironingots} to a new chest inventory with 6 rows with name "&bSell Iron Ingots"
			set slot 4 of {_sellironingots} to {temporaryamount::player} of iron ingot named "&bIron Ingot"
			set slot 19 of {_sellironingots} to green glass named "&a+1"
			set slot 22 of {_sellironingots} to green glass named "&a+5"
			set slot 25 of {_sellironingots} to green glass named "&aSelect all"
			set slot 28 of {_sellironingots} to red glass named "&c-1"
			set slot 31 of {_sellironingots} to red glass named "&c-5"
			set slot 34 of {_sellironingots} to red glass named "&cSet to 1"
			set slot 49 of {_sellironingots} to green concrete named "&2Sell"
			close player's inventory
			open {_sellironingots} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_sellironingots} to a new chest inventory with 6 rows with name "&bSell Iron Ingots"
			set slot 4 of {_sellironingots} to {temporaryamount::player} of iron ingot named "&bIron Ingot"
			set slot 19 of {_sellironingots} to green glass named "&a+1"
			set slot 22 of {_sellironingots} to green glass named "&a+5"
			set slot 25 of {_sellironingots} to green glass named "&aSelect all"
			set slot 28 of {_sellironingots} to red glass named "&c-1"
			set slot 31 of {_sellironingots} to red glass named "&c-5"
			set slot 34 of {_sellironingots} to red glass named "&cSet to 1"
			set slot 49 of {_sellironingots} to green concrete named "&2Sell"
			close player's inventory
			open {_sellironingots} to player
		if index of event-slot = 25:
			set {itemamount::player} to 0
			set {itemamount::player} to number of iron ingots in player's inventory
			set {temporaryamount::player} to {itemamount::player}
			set {_sellironingots} to a new chest inventory with 6 rows with name "&bSell Iron Ingots"
			set slot 4 of {_sellironingots} to {temporaryamount::player} of iron ingot named "&bIron Ingot"
			set slot 19 of {_sellironingots} to green glass named "&a+1"
			set slot 22 of {_sellironingots} to green glass named "&a+5"
			set slot 25 of {_sellironingots} to green glass named "&aSelect all"
			set slot 28 of {_sellironingots} to red glass named "&c-1"
			set slot 31 of {_sellironingots} to red glass named "&c-5"
			set slot 34 of {_sellironingots} to red glass named "&cSet to 1"
			set slot 49 of {_sellironingots} to green concrete named "&2Sell"
			close player's inventory
			open {_sellironingots} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_sellironingots} to a new chest inventory with 6 rows with name "&bSell Iron Ingots"
			set slot 4 of {_sellironingots} to {temporaryamount::player} of iron ingot named "&bIron Ingot"
			set slot 19 of {_sellironingots} to green glass named "&a+1"
			set slot 22 of {_sellironingots} to green glass named "&a+5"
			set slot 25 of {_sellironingots} to green glass named "&aSelect all"
			set slot 28 of {_sellironingots} to red glass named "&c-1"
			set slot 31 of {_sellironingots} to red glass named "&c-5"
			set slot 34 of {_sellironingots} to red glass named "&cSet to 1"
			set slot 49 of {_sellironingots} to green concrete named "&2Sell"
			close player's inventory
			open {_sellironingots} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_sellironingots} to a new chest inventory with 6 rows with name "&bSell Iron Ingots"
			set slot 4 of {_sellironingots} to {temporaryamount::player} of iron ingot named "&bIron Ingot"
			set slot 19 of {_sellironingots} to green glass named "&a+1"
			set slot 22 of {_sellironingots} to green glass named "&a+5"
			set slot 25 of {_sellironingots} to green glass named "&aSelect all"
			set slot 28 of {_sellironingots} to red glass named "&c-1"
			set slot 31 of {_sellironingots} to red glass named "&c-5"
			set slot 34 of {_sellironingots} to red glass named "&cSet to 1"
			set slot 49 of {_sellironingots} to green concrete named "&2Sell"
			close player's inventory
			open {_sellironingots} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_sellironingots} to a new chest inventory with 6 rows with name "&bSell Iron Ingots"
			set slot 4 of {_sellironingots} to {temporaryamount::player} of iron ingot named "&bIron Ingot"
			set slot 19 of {_sellironingots} to green glass named "&a+1"
			set slot 22 of {_sellironingots} to green glass named "&a+5"
			set slot 25 of {_sellironingots} to green glass named "&aSelect all"
			set slot 28 of {_sellironingots} to red glass named "&c-1"
			set slot 31 of {_sellironingots} to red glass named "&c-5"
			set slot 34 of {_sellironingots} to red glass named "&cSet to 1"
			set slot 49 of {_sellironingots} to green concrete named "&2Sell"
			close player's inventory
			open {_sellironingots} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {ironingotsellprice}
			set {itemamount::player} to 0
			set {itemamount::player} to number of iron ingots in player's inventory
			if {itemamount::player} >= {temporaryamount::player} :
				remove {temporaryamount::player} of iron ingot from player's inventory
				if {temporaryamount::player} is more than 1:
					if {payment::player} is more than 1:
						send "&cYou sold &6%{temporaryamount::player}%&c iron ingots for &6%{payment::player}%&c coins!"
					else:
						send "&cYou sold &6%{temporaryamount::player}%&c iron ingots for &6%{payment::player}%&c coin!"
				else:
					if {payment::player} is more than 1:
						send "&cYou sold &6%{temporaryamount::player}%&c iron ingot for &6%{payment::player}%&c coins!"
					else:
						send "&cYou sold &6%{temporaryamount::player}%&c iron ingot for &6%{payment::player}%&c coin!"
				set {_money} to player's balance
				set player's balance to {_money} + {payment::player}
			else:
				send "&cYou selected more items than the ones you have!"
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
			delete {itemamount::player}
	if name of event-inventory is "&bGold Ingots":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 11:
			set {_buygoldingots} to a new chest inventory with 6 rows with name "&bBuy Gold Ingots"
			set {temporaryamount::player} to 1
			set slot 4 of {_buygoldingots} to gold ingot named "&bGold Ingot"
			set slot 19 of {_buygoldingots} to green glass named "&a+1"
			set slot 22 of {_buygoldingots} to green glass named "&a+5"
			set slot 25 of {_buygoldingots} to green glass named "&aSet to 64"
			set slot 28 of {_buygoldingots} to red glass named "&c-1"
			set slot 31 of {_buygoldingots} to red glass named "&c-5"
			set slot 34 of {_buygoldingots} to red glass named "&cSet to 1"
			set slot 49 of {_buygoldingots} to green concrete named "&2Buy"
			close player's inventory
			open {_buygoldingots} to player
		if index of event-slot = 15:
			set {_sellgoldingots} to a new chest inventory with 6 rows with name "&bSell Gold Ingots"
			set {temporaryamount::player} to 1
			set slot 4 of {_sellgoldingots} to gold ingot named "&bGold Ingot"
			set slot 19 of {_sellgoldingots} to green glass named "&a+1"
			set slot 22 of {_sellgoldingots} to green glass named "&a+5"
			set slot 25 of {_sellgoldingots} to green glass named "&aSelect all"
			set slot 28 of {_sellgoldingots} to red glass named "&c-1"
			set slot 31 of {_sellgoldingots} to red glass named "&c-5"
			set slot 34 of {_sellgoldingots} to red glass named "&cSet to 1"
			set slot 49 of {_sellgoldingots} to green concrete named "&2Sell"
			close player's inventory
			open {_sellgoldingots} to player
	if name of event-inventory is "&bBuy Gold Ingots":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buygoldingots} to a new chest inventory with 6 rows with name "&bBuy Gold Ingots"
			set slot 4 of {_buygoldingots} to {temporaryamount::player} of gold ingot named "&bGold Ingot"
			set slot 19 of {_buygoldingots} to green glass named "&a+1"
			set slot 22 of {_buygoldingots} to green glass named "&a+5"
			set slot 25 of {_buygoldingots} to green glass named "&aSet to 64"
			set slot 28 of {_buygoldingots} to red glass named "&c-1"
			set slot 31 of {_buygoldingots} to red glass named "&c-5"
			set slot 34 of {_buygoldingots} to red glass named "&cSet to 1"
			set slot 49 of {_buygoldingots} to green concrete named "&2Buy"
			close player's inventory
			open {_buygoldingots} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buygoldingots} to a new chest inventory with 6 rows with name "&bBuy Gold Ingots"
			set slot 4 of {_buygoldingots} to {temporaryamount::player} of gold ingot named "&bGold Ingot"
			set slot 19 of {_buygoldingots} to green glass named "&a+1"
			set slot 22 of {_buygoldingots} to green glass named "&a+5"
			set slot 25 of {_buygoldingots} to green glass named "&aSet to 64"
			set slot 28 of {_buygoldingots} to red glass named "&c-1"
			set slot 31 of {_buygoldingots} to red glass named "&c-5"
			set slot 34 of {_buygoldingots} to red glass named "&cSet to 1"
			set slot 49 of {_buygoldingots} to green concrete named "&2Buy"
			close player's inventory
			open {_buygoldingots} to player
		if index of event-slot = 25:
			set {temporaryamount::player} to 64
			set {_buygoldingots} to a new chest inventory with 6 rows with name "&bBuy Gold Ingots"
			set slot 4 of {_buygoldingots} to {temporaryamount::player} of gold ingot named "&bGold Ingot"
			set slot 19 of {_buygoldingots} to green glass named "&a+1"
			set slot 22 of {_buygoldingots} to green glass named "&a+5"
			set slot 25 of {_buygoldingots} to green glass named "&aSet to 64"
			set slot 28 of {_buygoldingots} to red glass named "&c-1"
			set slot 31 of {_buygoldingots} to red glass named "&c-5"
			set slot 34 of {_buygoldingots} to red glass named "&cSet to 1"
			set slot 49 of {_buygoldingots} to green concrete named "&2Buy"
			close player's inventory
			open {_buygoldingots} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buygoldingots} to a new chest inventory with 6 rows with name "&bBuy Gold Ingots"
			set slot 4 of {_buygoldingots} to {temporaryamount::player} of gold ingot named "&bGold Ingot"
			set slot 19 of {_buygoldingots} to green glass named "&a+1"
			set slot 22 of {_buygoldingots} to green glass named "&a+5"
			set slot 25 of {_buygoldingots} to green glass named "&aSet to 64"
			set slot 28 of {_buygoldingots} to red glass named "&c-1"
			set slot 31 of {_buygoldingots} to red glass named "&c-5"
			set slot 34 of {_buygoldingots} to red glass named "&cSet to 1"
			set slot 49 of {_buygoldingots} to green concrete named "&2Buy"
			close player's inventory
			open {_buygoldingots} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buygoldingots} to a new chest inventory with 6 rows with name "&bBuy Gold Ingots"
			set slot 4 of {_buygoldingots} to {temporaryamount::player} of gold ingot named "&bGold Ingot"
			set slot 19 of {_buygoldingots} to green glass named "&a+1"
			set slot 22 of {_buygoldingots} to green glass named "&a+5"
			set slot 25 of {_buygoldingots} to green glass named "&aSet to 64"
			set slot 28 of {_buygoldingots} to red glass named "&c-1"
			set slot 31 of {_buygoldingots} to red glass named "&c-5"
			set slot 34 of {_buygoldingots} to red glass named "&cSet to 1"
			set slot 49 of {_buygoldingots} to green concrete named "&2Buy"
			close player's inventory
			open {_buygoldingots} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_buygoldingots} to a new chest inventory with 6 rows with name "&bBuy Gold Ingots"
			set slot 4 of {_buygoldingots} to {temporaryamount::player} of gold ingot named "&bGold Ingot"
			set slot 19 of {_buygoldingots} to green glass named "&a+1"
			set slot 22 of {_buygoldingots} to green glass named "&a+5"
			set slot 25 of {_buygoldingots} to green glass named "&aSet to 64"
			set slot 28 of {_buygoldingots} to red glass named "&c-1"
			set slot 31 of {_buygoldingots} to red glass named "&c-5"
			set slot 34 of {_buygoldingots} to red glass named "&cSet to 1"
			set slot 49 of {_buygoldingots} to green concrete named "&2Buy"
			close player's inventory
			open {_buygoldingots} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {goldingotprice}
			if player's balance >= {payment::player}:
				give {temporaryamount::player} of gold ingots to player
				if {temporaryamount::player} is more than 1:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c gold ingots for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c gold ingots for &6%{payment::player}%&c coin!"
				else:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c gold ingot for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c gold ingot for &6%{payment::player}%&c coin!"
				set {_money} to player's balance
				set player's balance to {_money} - {payment::player}
			else:
				send "&cYou don't have enough money, baka!"
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
	if name of event-inventory is "&bSell Gold Ingots":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_sellgoldingots} to a new chest inventory with 6 rows with name "&bSell Gold Ingots"
			set slot 4 of {_sellgoldingots} to {temporaryamount::player} of gold ingot named "&bGold Ingot"
			set slot 19 of {_sellgoldingots} to green glass named "&a+1"
			set slot 22 of {_sellgoldingots} to green glass named "&a+5"
			set slot 25 of {_sellgoldingots} to green glass named "&aSelect all"
			set slot 28 of {_sellgoldingots} to red glass named "&c-1"
			set slot 31 of {_sellgoldingots} to red glass named "&c-5"
			set slot 34 of {_sellgoldingots} to red glass named "&cSet to 1"
			set slot 49 of {_sellgoldingots} to green concrete named "&2Sell"
			close player's inventory
			open {_sellgoldingots} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_sellgoldingots} to a new chest inventory with 6 rows with name "&bSell Gold Ingots"
			set slot 4 of {_sellgoldingots} to {temporaryamount::player} of gold ingot named "&bGold Ingot"
			set slot 19 of {_sellgoldingots} to green glass named "&a+1"
			set slot 22 of {_sellgoldingots} to green glass named "&a+5"
			set slot 25 of {_sellgoldingots} to green glass named "&aSelect all"
			set slot 28 of {_sellgoldingots} to red glass named "&c-1"
			set slot 31 of {_sellgoldingots} to red glass named "&c-5"
			set slot 34 of {_sellgoldingots} to red glass named "&cSet to 1"
			set slot 49 of {_sellgoldingots} to green concrete named "&2Sell"
			close player's inventory
			open {_sellgoldingots} to player
		if index of event-slot = 25:
			set {itemamount::player} to 0
			set {itemamount::player} to number of gold ingots in player's inventory
			set {temporaryamount::player} to {itemamount::player}
			set {_sellgoldingots} to a new chest inventory with 6 rows with name "&bSell Gold Ingots"
			set slot 4 of {_sellgoldingots} to {temporaryamount::player} of gold ingot named "&bGold Ingot"
			set slot 19 of {_sellgoldingots} to green glass named "&a+1"
			set slot 22 of {_sellgoldingots} to green glass named "&a+5"
			set slot 25 of {_sellgoldingots} to green glass named "&aSelect all"
			set slot 28 of {_sellgoldingots} to red glass named "&c-1"
			set slot 31 of {_sellgoldingots} to red glass named "&c-5"
			set slot 34 of {_sellgoldingots} to red glass named "&cSet to 1"
			set slot 49 of {_sellgoldingots} to green concrete named "&2Sell"
			close player's inventory
			open {_sellgoldingots} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_sellgoldingots} to a new chest inventory with 6 rows with name "&bSell Gold Ingots"
			set slot 4 of {_sellgoldingots} to {temporaryamount::player} of gold ingot named "&bGold Ingot"
			set slot 19 of {_sellgoldingots} to green glass named "&a+1"
			set slot 22 of {_sellgoldingots} to green glass named "&a+5"
			set slot 25 of {_sellgoldingots} to green glass named "&aSelect all"
			set slot 28 of {_sellgoldingots} to red glass named "&c-1"
			set slot 31 of {_sellgoldingots} to red glass named "&c-5"
			set slot 34 of {_sellgoldingots} to red glass named "&cSet to 1"
			set slot 49 of {_sellgoldingots} to green concrete named "&2Sell"
			close player's inventory
			open {_sellgoldingots} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_sellgoldingots} to a new chest inventory with 6 rows with name "&bSell Gold Ingots"
			set slot 4 of {_sellgoldingots} to {temporaryamount::player} of gold ingot named "&bGold Ingot"
			set slot 19 of {_sellgoldingots} to green glass named "&a+1"
			set slot 22 of {_sellgoldingots} to green glass named "&a+5"
			set slot 25 of {_sellgoldingots} to green glass named "&aSelect all"
			set slot 28 of {_sellgoldingots} to red glass named "&c-1"
			set slot 31 of {_sellgoldingots} to red glass named "&c-5"
			set slot 34 of {_sellgoldingots} to red glass named "&cSet to 1"
			set slot 49 of {_sellgoldingots} to green concrete named "&2Sell"
			close player's inventory
			open {_sellgoldingots} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_sellgoldingots} to a new chest inventory with 6 rows with name "&bSell Gold Ingots"
			set slot 4 of {_sellgoldingots} to {temporaryamount::player} of gold ingot named "&bGold Ingot"
			set slot 19 of {_sellgoldingots} to green glass named "&a+1"
			set slot 22 of {_sellgoldingots} to green glass named "&a+5"
			set slot 25 of {_sellgoldingots} to green glass named "&aSelect all"
			set slot 28 of {_sellgoldingots} to red glass named "&c-1"
			set slot 31 of {_sellgoldingots} to red glass named "&c-5"
			set slot 34 of {_sellgoldingots} to red glass named "&cSet to 1"
			set slot 49 of {_sellgoldingots} to green concrete named "&2Sell"
			close player's inventory
			open {_sellgoldingots} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {goldingotsellprice}
			set {itemamount::player} to 0
			set {itemamount::player} to number of gold ingots in player's inventory
			if {itemamount::player} >= {temporaryamount::player} :
				remove {temporaryamount::player} of gold ingot from player's inventory
				if {temporaryamount::player} is more than 1:
					if {payment::player} is more than 1:
						send "&cYou sold &6%{temporaryamount::player}%&c gold ingots for &6%{payment::player}%&c coins!"
					else:
						send "&cYou sold &6%{temporaryamount::player}%&c gold ingots for &6%{payment::player}%&c coin!"
				else:
					if {payment::player} is more than 1:
						send "&cYou sold &6%{temporaryamount::player}%&c gold ingot for &6%{payment::player}%&c coins!"
					else:
						send "&cYou sold &6%{temporaryamount::player}%&c gold ingot for &6%{payment::player}%&c coin!"
				set {_money} to player's balance
				set player's balance to {_money} + {payment::player}
			else:
				send "&cYou selected more items than the ones you have!"
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
			delete {itemamount::player}
	if name of event-inventory is "&bNetherite Ingots":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 11:
			set {_buynetheriteingots} to a new chest inventory with 6 rows with name "&bBuy Netherite Ingots"
			set {temporaryamount::player} to 1
			set slot 4 of {_buynetheriteingots} to netherite ingot named "&bNetherite Ingot"
			set slot 19 of {_buynetheriteingots} to green glass named "&a+1"
			set slot 22 of {_buynetheriteingots} to green glass named "&a+5"
			set slot 25 of {_buynetheriteingots} to green glass named "&aSet to 64"
			set slot 28 of {_buynetheriteingots} to red glass named "&c-1"
			set slot 31 of {_buynetheriteingots} to red glass named "&c-5"
			set slot 34 of {_buynetheriteingots} to red glass named "&cSet to 1"
			set slot 49 of {_buynetheriteingots} to green concrete named "&2Buy"
			close player's inventory
			open {_buynetheriteingots} to player
		if index of event-slot = 15:
			set {_sellnetheriteingots} to a new chest inventory with 6 rows with name "&bSell Netherite Ingots"
			set {temporaryamount::player} to 1
			set slot 4 of {_sellnetheriteingots} to netherite ingot named "&bNetherite Ingot"
			set slot 19 of {_sellnetheriteingots} to green glass named "&a+1"
			set slot 22 of {_sellnetheriteingots} to green glass named "&a+5"
			set slot 25 of {_sellnetheriteingots} to green glass named "&aSelect all"
			set slot 28 of {_sellnetheriteingots} to red glass named "&c-1"
			set slot 31 of {_sellnetheriteingots} to red glass named "&c-5"
			set slot 34 of {_sellnetheriteingots} to red glass named "&cSet to 1"
			set slot 49 of {_sellnetheriteingots} to green concrete named "&2Sell"
			close player's inventory
			open {_sellnetheriteingots} to player
	if name of event-inventory is "&bBuy Netherite Ingots":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buynetheriteingots} to a new chest inventory with 6 rows with name "&bBuy Netherite Ingots"
			set slot 4 of {_buynetheriteingots} to {temporaryamount::player} of netherite ingot named "&bNetherite Ingot"
			set slot 19 of {_buynetheriteingots} to green glass named "&a+1"
			set slot 22 of {_buynetheriteingots} to green glass named "&a+5"
			set slot 25 of {_buynetheriteingots} to green glass named "&aSet to 64"
			set slot 28 of {_buynetheriteingots} to red glass named "&c-1"
			set slot 31 of {_buynetheriteingots} to red glass named "&c-5"
			set slot 34 of {_buynetheriteingots} to red glass named "&cSet to 1"
			set slot 49 of {_buynetheriteingots} to green concrete named "&2Buy"
			close player's inventory
			open {_buynetheriteingots} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buynetheriteingots} to a new chest inventory with 6 rows with name "&bBuy Netherite Ingots"
			set slot 4 of {_buynetheriteingots} to {temporaryamount::player} of netherite ingot named "&bNetherite Ingot"
			set slot 19 of {_buynetheriteingots} to green glass named "&a+1"
			set slot 22 of {_buynetheriteingots} to green glass named "&a+5"
			set slot 25 of {_buynetheriteingots} to green glass named "&aSet to 64"
			set slot 28 of {_buynetheriteingots} to red glass named "&c-1"
			set slot 31 of {_buynetheriteingots} to red glass named "&c-5"
			set slot 34 of {_buynetheriteingots} to red glass named "&cSet to 1"
			set slot 49 of {_buynetheriteingots} to green concrete named "&2Buy"
			close player's inventory
			open {_buynetheriteingots} to player
		if index of event-slot = 25:
			set {temporaryamount::player} to 64
			set {_buynetheriteingots} to a new chest inventory with 6 rows with name "&bBuy Netherite Ingots"
			set slot 4 of {_buynetheriteingots} to {temporaryamount::player} of netherite ingot named "&bNetherite Ingot"
			set slot 19 of {_buynetheriteingots} to green glass named "&a+1"
			set slot 22 of {_buynetheriteingots} to green glass named "&a+5"
			set slot 25 of {_buynetheriteingots} to green glass named "&aSet to 64"
			set slot 28 of {_buynetheriteingots} to red glass named "&c-1"
			set slot 31 of {_buynetheriteingots} to red glass named "&c-5"
			set slot 34 of {_buynetheriteingots} to red glass named "&cSet to 1"
			set slot 49 of {_buynetheriteingots} to green concrete named "&2Buy"
			close player's inventory
			open {_buynetheriteingots} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buynetheriteingots} to a new chest inventory with 6 rows with name "&bBuy Netherite Ingots"
			set slot 4 of {_buynetheriteingots} to {temporaryamount::player} of netherite ingot named "&bNetherite Ingot"
			set slot 19 of {_buynetheriteingots} to green glass named "&a+1"
			set slot 22 of {_buynetheriteingots} to green glass named "&a+5"
			set slot 25 of {_buynetheriteingots} to green glass named "&aSet to 64"
			set slot 28 of {_buynetheriteingots} to red glass named "&c-1"
			set slot 31 of {_buynetheriteingots} to red glass named "&c-5"
			set slot 34 of {_buynetheriteingots} to red glass named "&cSet to 1"
			set slot 49 of {_buynetheriteingots} to green concrete named "&2Buy"
			close player's inventory
			open {_buynetheriteingots} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buynetheriteingots} to a new chest inventory with 6 rows with name "&bBuy Netherite Ingots"
			set slot 4 of {_buynetheriteingots} to {temporaryamount::player} of netherite ingot named "&bNetherite Ingot"
			set slot 19 of {_buynetheriteingots} to green glass named "&a+1"
			set slot 22 of {_buynetheriteingots} to green glass named "&a+5"
			set slot 25 of {_buynetheriteingots} to green glass named "&aSet to 64"
			set slot 28 of {_buynetheriteingots} to red glass named "&c-1"
			set slot 31 of {_buynetheriteingots} to red glass named "&c-5"
			set slot 34 of {_buynetheriteingots} to red glass named "&cSet to 1"
			set slot 49 of {_buynetheriteingots} to green concrete named "&2Buy"
			close player's inventory
			open {_buynetheriteingots} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_buynetheriteingots} to a new chest inventory with 6 rows with name "&bBuy Netherite Ingots"
			set slot 4 of {_buynetheriteingots} to {temporaryamount::player} of netherite ingot named "&bNetherite Ingot"
			set slot 19 of {_buynetheriteingots} to green glass named "&a+1"
			set slot 22 of {_buynetheriteingots} to green glass named "&a+5"
			set slot 25 of {_buynetheriteingots} to green glass named "&aSet to 64"
			set slot 28 of {_buynetheriteingots} to red glass named "&c-1"
			set slot 31 of {_buynetheriteingots} to red glass named "&c-5"
			set slot 34 of {_buynetheriteingots} to red glass named "&cSet to 1"
			set slot 49 of {_buynetheriteingots} to green concrete named "&2Buy"
			close player's inventory
			open {_buynetheriteingots} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {netheriteingotprice}
			if player's balance >= {payment::player}:
				give {temporaryamount::player} of netherite ingots to player
				if {temporaryamount::player} is more than 1:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c netherite ingots for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c netherite ingots for &6%{payment::player}%&c coin!"
				else:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c netherite ingot for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c netherite ingot for &6%{payment::player}%&c coin!"
				set {_money} to player's balance
				set player's balance to {_money} - {payment::player}
			else:
				send "&cYou don't have enough money, baka!"
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
	if name of event-inventory is "&bSell Netherite Ingots":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_sellnetheriteingots} to a new chest inventory with 6 rows with name "&bSell Netherite Ingots"
			set slot 4 of {_sellnetheriteingots} to {temporaryamount::player} of netherite ingot named "&bNetherite Ingot"
			set slot 19 of {_sellnetheriteingots} to green glass named "&a+1"
			set slot 22 of {_sellnetheriteingots} to green glass named "&a+5"
			set slot 25 of {_sellnetheriteingots} to green glass named "&aSelect all"
			set slot 28 of {_sellnetheriteingots} to red glass named "&c-1"
			set slot 31 of {_sellnetheriteingots} to red glass named "&c-5"
			set slot 34 of {_sellnetheriteingots} to red glass named "&cSet to 1"
			set slot 49 of {_sellnetheriteingots} to green concrete named "&2Sell"
			close player's inventory
			open {_sellnetheriteingots} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_sellnetheriteingots} to a new chest inventory with 6 rows with name "&bSell Netherite Ingots"
			set slot 4 of {_sellnetheriteingots} to {temporaryamount::player} of netherite ingot named "&bNetherite Ingot"
			set slot 19 of {_sellnetheriteingots} to green glass named "&a+1"
			set slot 22 of {_sellnetheriteingots} to green glass named "&a+5"
			set slot 25 of {_sellnetheriteingots} to green glass named "&aSelect all"
			set slot 28 of {_sellnetheriteingots} to red glass named "&c-1"
			set slot 31 of {_sellnetheriteingots} to red glass named "&c-5"
			set slot 34 of {_sellnetheriteingots} to red glass named "&cSet to 1"
			set slot 49 of {_sellnetheriteingots} to green concrete named "&2Sell"
			close player's inventory
			open {_sellnetheriteingots} to player
		if index of event-slot = 25:
			set {itemamount::player} to 0
			set {itemamount::player} to number of netherite ingots in player's inventory
			set {temporaryamount::player} to {itemamount::player}
			set {_sellnetheriteingots} to a new chest inventory with 6 rows with name "&bSell Netherite Ingots"
			set slot 4 of {_sellnetheriteingots} to {temporaryamount::player} of netherite ingot named "&bNetherite Ingot"
			set slot 19 of {_sellnetheriteingots} to green glass named "&a+1"
			set slot 22 of {_sellnetheriteingots} to green glass named "&a+5"
			set slot 25 of {_sellnetheriteingots} to green glass named "&aSelect all"
			set slot 28 of {_sellnetheriteingots} to red glass named "&c-1"
			set slot 31 of {_sellnetheriteingots} to red glass named "&c-5"
			set slot 34 of {_sellnetheriteingots} to red glass named "&cSet to 1"
			set slot 49 of {_sellnetheriteingots} to green concrete named "&2Sell"
			close player's inventory
			open {_sellnetheriteingots} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_sellnetheriteingots} to a new chest inventory with 6 rows with name "&bSell Netherite Ingots"
			set slot 4 of {_sellnetheriteingots} to {temporaryamount::player} of netherite ingot named "&bNetherite Ingot"
			set slot 19 of {_sellnetheriteingots} to green glass named "&a+1"
			set slot 22 of {_sellnetheriteingots} to green glass named "&a+5"
			set slot 25 of {_sellnetheriteingots} to green glass named "&aSelect all"
			set slot 28 of {_sellnetheriteingots} to red glass named "&c-1"
			set slot 31 of {_sellnetheriteingots} to red glass named "&c-5"
			set slot 34 of {_sellnetheriteingots} to red glass named "&cSet to 1"
			set slot 49 of {_sellnetheriteingots} to green concrete named "&2Sell"
			close player's inventory
			open {_sellnetheriteingots} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_sellnetheriteingots} to a new chest inventory with 6 rows with name "&bSell Netherite Ingots"
			set slot 4 of {_sellnetheriteingots} to {temporaryamount::player} of netherite ingot named "&bNetherite Ingot"
			set slot 19 of {_sellnetheriteingots} to green glass named "&a+1"
			set slot 22 of {_sellnetheriteingots} to green glass named "&a+5"
			set slot 25 of {_sellnetheriteingots} to green glass named "&aSelect all"
			set slot 28 of {_sellnetheriteingots} to red glass named "&c-1"
			set slot 31 of {_sellnetheriteingots} to red glass named "&c-5"
			set slot 34 of {_sellnetheriteingots} to red glass named "&cSet to 1"
			set slot 49 of {_sellnetheriteingots} to green concrete named "&2Sell"
			close player's inventory
			open {_sellnetheriteingots} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_sellnetheriteingots} to a new chest inventory with 6 rows with name "&bSell Netherite Ingots"
			set slot 4 of {_sellnetheriteingots} to {temporaryamount::player} of netherite ingot named "&bNetherite Ingot"
			set slot 19 of {_sellnetheriteingots} to green glass named "&a+1"
			set slot 22 of {_sellnetheriteingots} to green glass named "&a+5"
			set slot 25 of {_sellnetheriteingots} to green glass named "&aSelect all"
			set slot 28 of {_sellnetheriteingots} to red glass named "&c-1"
			set slot 31 of {_sellnetheriteingots} to red glass named "&c-5"
			set slot 34 of {_sellnetheriteingots} to red glass named "&cSet to 1"
			set slot 49 of {_sellnetheriteingots} to green concrete named "&2Sell"
			close player's inventory
			open {_sellnetheriteingots} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {netheriteingotsellprice}
			set {itemamount::player} to 0
			set {itemamount::player} to number of netherite ingots in player's inventory
			if {itemamount::player} >= {temporaryamount::player} :
				remove {temporaryamount::player} of netherite ingot from player's inventory
				if {temporaryamount::player} is more than 1:
					if {payment::player} is more than 1:
						send "&cYou sold &6%{temporaryamount::player}%&c netherite ingots for &6%{payment::player}%&c coins!"
					else:
						send "&cYou sold &6%{temporaryamount::player}%&c netherite ingots for &6%{payment::player}%&c coin!"
				else:
					if {payment::player} is more than 1:
						send "&cYou sold &6%{temporaryamount::player}%&c netherite ingot for &6%{payment::player}%&c coins!"
					else:
						send "&cYou sold &6%{temporaryamount::player}%&c netherite ingot for &6%{payment::player}%&c coin!"
				set {_money} to player's balance
				set player's balance to {_money} + {payment::player}
			else:
				send "&cYou selected more items than the ones you have!"
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
			delete {itemamount::player}
	if name of event-inventory is "&bNetherite Blocks":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 11:
			set {_buynetheriteblocks} to a new chest inventory with 6 rows with name "&bBuy Netherite Blocks"
			set {temporaryamount::player} to 1
			set slot 4 of {_buynetheriteblocks} to netherite block named "&bNetherite Block"
			set slot 19 of {_buynetheriteblocks} to green glass named "&a+1"
			set slot 22 of {_buynetheriteblocks} to green glass named "&a+5"
			set slot 25 of {_buynetheriteblocks} to green glass named "&aSet to 64"
			set slot 28 of {_buynetheriteblocks} to red glass named "&c-1"
			set slot 31 of {_buynetheriteblocks} to red glass named "&c-5"
			set slot 34 of {_buynetheriteblocks} to red glass named "&cSet to 1"
			set slot 49 of {_buynetheriteblocks} to green concrete named "&2Buy"
			close player's inventory
			open {_buynetheriteblocks} to player
		if index of event-slot = 15:
			set {_sellnetheriteblocks} to a new chest inventory with 6 rows with name "&bSell Netherite Blocks"
			set {temporaryamount::player} to 1
			set slot 4 of {_sellnetheriteblocks} to netherite block named "&bNetherite Block"
			set slot 19 of {_sellnetheriteblocks} to green glass named "&a+1"
			set slot 22 of {_sellnetheriteblocks} to green glass named "&a+5"
			set slot 25 of {_sellnetheriteblocks} to green glass named "&aSelect all"
			set slot 28 of {_sellnetheriteblocks} to red glass named "&c-1"
			set slot 31 of {_sellnetheriteblocks} to red glass named "&c-5"
			set slot 34 of {_sellnetheriteblocks} to red glass named "&cSet to 1"
			set slot 49 of {_sellnetheriteblocks} to green concrete named "&2Sell"
			close player's inventory
			open {_sellnetheriteblocks} to player
	if name of event-inventory is "&bBuy Netherite Blocks":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buynetheriteblocks} to a new chest inventory with 6 rows with name "&bBuy Netherite Blocks"
			set slot 4 of {_buynetheriteblocks} to {temporaryamount::player} of netherite block named "&bNetherite Block"
			set slot 19 of {_buynetheriteblocks} to green glass named "&a+1"
			set slot 22 of {_buynetheriteblocks} to green glass named "&a+5"
			set slot 25 of {_buynetheriteblocks} to green glass named "&aSet to 64"
			set slot 28 of {_buynetheriteblocks} to red glass named "&c-1"
			set slot 31 of {_buynetheriteblocks} to red glass named "&c-5"
			set slot 34 of {_buynetheriteblocks} to red glass named "&cSet to 1"
			set slot 49 of {_buynetheriteblocks} to green concrete named "&2Buy"
			close player's inventory
			open {_buynetheriteblocks} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buynetheriteblocks} to a new chest inventory with 6 rows with name "&bBuy Netherite Blocks"
			set slot 4 of {_buynetheriteblocks} to {temporaryamount::player} of netherite block named "&bNetherite Block"
			set slot 19 of {_buynetheriteblocks} to green glass named "&a+1"
			set slot 22 of {_buynetheriteblocks} to green glass named "&a+5"
			set slot 25 of {_buynetheriteblocks} to green glass named "&aSet to 64"
			set slot 28 of {_buynetheriteblocks} to red glass named "&c-1"
			set slot 31 of {_buynetheriteblocks} to red glass named "&c-5"
			set slot 34 of {_buynetheriteblocks} to red glass named "&cSet to 1"
			set slot 49 of {_buynetheriteblocks} to green concrete named "&2Buy"
			close player's inventory
			open {_buynetheriteblocks} to player
		if index of event-slot = 25:
			set {temporaryamount::player} to 64
			set {_buynetheriteblocks} to a new chest inventory with 6 rows with name "&bBuy Netherite Blocks"
			set slot 4 of {_buynetheriteblocks} to {temporaryamount::player} of netherite block named "&bNetherite Block"
			set slot 19 of {_buynetheriteblocks} to green glass named "&a+1"
			set slot 22 of {_buynetheriteblocks} to green glass named "&a+5"
			set slot 25 of {_buynetheriteblocks} to green glass named "&aSet to 64"
			set slot 28 of {_buynetheriteblocks} to red glass named "&c-1"
			set slot 31 of {_buynetheriteblocks} to red glass named "&c-5"
			set slot 34 of {_buynetheriteblocks} to red glass named "&cSet to 1"
			set slot 49 of {_buynetheriteblocks} to green concrete named "&2Buy"
			close player's inventory
			open {_buynetheriteblocks} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buynetheriteblocks} to a new chest inventory with 6 rows with name "&bBuy Netherite Blocks"
			set slot 4 of {_buynetheriteblocks} to {temporaryamount::player} of netherite block named "&bNetherite Block"
			set slot 19 of {_buynetheriteblocks} to green glass named "&a+1"
			set slot 22 of {_buynetheriteblocks} to green glass named "&a+5"
			set slot 25 of {_buynetheriteblocks} to green glass named "&aSet to 64"
			set slot 28 of {_buynetheriteblocks} to red glass named "&c-1"
			set slot 31 of {_buynetheriteblocks} to red glass named "&c-5"
			set slot 34 of {_buynetheriteblocks} to red glass named "&cSet to 1"
			set slot 49 of {_buynetheriteblocks} to green concrete named "&2Buy"
			close player's inventory
			open {_buynetheriteblocks} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buynetheriteblocks} to a new chest inventory with 6 rows with name "&bBuy Netherite Blocks"
			set slot 4 of {_buynetheriteblocks} to {temporaryamount::player} of netherite block named "&bNetherite Block"
			set slot 19 of {_buynetheriteblocks} to green glass named "&a+1"
			set slot 22 of {_buynetheriteblocks} to green glass named "&a+5"
			set slot 25 of {_buynetheriteblocks} to green glass named "&aSet to 64"
			set slot 28 of {_buynetheriteblocks} to red glass named "&c-1"
			set slot 31 of {_buynetheriteblocks} to red glass named "&c-5"
			set slot 34 of {_buynetheriteblocks} to red glass named "&cSet to 1"
			set slot 49 of {_buynetheriteblocks} to green concrete named "&2Buy"
			close player's inventory
			open {_buynetheriteblocks} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_buynetheriteblocks} to a new chest inventory with 6 rows with name "&bBuy Netherite Blocks"
			set slot 4 of {_buynetheriteblocks} to {temporaryamount::player} of netherite block named "&bNetherite Block"
			set slot 19 of {_buynetheriteblocks} to green glass named "&a+1"
			set slot 22 of {_buynetheriteblocks} to green glass named "&a+5"
			set slot 25 of {_buynetheriteblocks} to green glass named "&aSet to 64"
			set slot 28 of {_buynetheriteblocks} to red glass named "&c-1"
			set slot 31 of {_buynetheriteblocks} to red glass named "&c-5"
			set slot 34 of {_buynetheriteblocks} to red glass named "&cSet to 1"
			set slot 49 of {_buynetheriteblocks} to green concrete named "&2Buy"
			close player's inventory
			open {_buynetheriteblocks} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {netheriteblockprice}
			if player's balance >= {payment::player}:
				give {temporaryamount::player} of netherite blocks to player
				if {temporaryamount::player} is more than 1:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c netherite blocks for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c netherite blocks for &6%{payment::player}%&c coin!"
				else:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c netherite block for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c netherite block for &6%{payment::player}%&c coin!"
				set {_money} to player's balance
				set player's balance to {_money} - {payment::player}
			else:
				send "&cYou don't have enough money, baka!"
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
	if name of event-inventory is "&bSell Netherite Blocks":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_sellnetheriteblocks} to a new chest inventory with 6 rows with name "&bSell Netherite Blocks"
			set slot 4 of {_sellnetheriteblocks} to {temporaryamount::player} of netherite block named "&bNetherite Block"
			set slot 19 of {_sellnetheriteblocks} to green glass named "&a+1"
			set slot 22 of {_sellnetheriteblocks} to green glass named "&a+5"
			set slot 25 of {_sellnetheriteblocks} to green glass named "&aSelect all"
			set slot 28 of {_sellnetheriteblocks} to red glass named "&c-1"
			set slot 31 of {_sellnetheriteblocks} to red glass named "&c-5"
			set slot 34 of {_sellnetheriteblocks} to red glass named "&cSet to 1"
			set slot 49 of {_sellnetheriteblocks} to green concrete named "&2Sell"
			close player's inventory
			open {_sellnetheriteblocks} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_sellnetheriteblocks} to a new chest inventory with 6 rows with name "&bSell Netherite Blocks"
			set slot 4 of {_sellnetheriteblocks} to {temporaryamount::player} of netherite block named "&bNetherite Block"
			set slot 19 of {_sellnetheriteblocks} to green glass named "&a+1"
			set slot 22 of {_sellnetheriteblocks} to green glass named "&a+5"
			set slot 25 of {_sellnetheriteblocks} to green glass named "&aSelect all"
			set slot 28 of {_sellnetheriteblocks} to red glass named "&c-1"
			set slot 31 of {_sellnetheriteblocks} to red glass named "&c-5"
			set slot 34 of {_sellnetheriteblocks} to red glass named "&cSet to 1"
			set slot 49 of {_sellnetheriteblocks} to green concrete named "&2Sell"
			close player's inventory
			open {_sellnetheriteblocks} to player
		if index of event-slot = 25:
			set {itemamount::player} to 0
			set {itemamount::player} to number of netherite blocks in player's inventory
			set {temporaryamount::player} to {itemamount::player}
			set {_sellnetheriteblocks} to a new chest inventory with 6 rows with name "&bSell Netherite Blocks"
			set slot 4 of {_sellnetheriteblocks} to {temporaryamount::player} of netherite block named "&bNetherite Block"
			set slot 19 of {_sellnetheriteblocks} to green glass named "&a+1"
			set slot 22 of {_sellnetheriteblocks} to green glass named "&a+5"
			set slot 25 of {_sellnetheriteblocks} to green glass named "&aSelect all"
			set slot 28 of {_sellnetheriteblocks} to red glass named "&c-1"
			set slot 31 of {_sellnetheriteblocks} to red glass named "&c-5"
			set slot 34 of {_sellnetheriteblocks} to red glass named "&cSet to 1"
			set slot 49 of {_sellnetheriteblocks} to green concrete named "&2Sell"
			close player's inventory
			open {_sellnetheriteblocks} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_sellnetheriteblocks} to a new chest inventory with 6 rows with name "&bSell Netherite Blocks"
			set slot 4 of {_sellnetheriteblocks} to {temporaryamount::player} of netherite block named "&bNetherite Block"
			set slot 19 of {_sellnetheriteblocks} to green glass named "&a+1"
			set slot 22 of {_sellnetheriteblocks} to green glass named "&a+5"
			set slot 25 of {_sellnetheriteblocks} to green glass named "&aSelect all"
			set slot 28 of {_sellnetheriteblocks} to red glass named "&c-1"
			set slot 31 of {_sellnetheriteblocks} to red glass named "&c-5"
			set slot 34 of {_sellnetheriteblocks} to red glass named "&cSet to 1"
			set slot 49 of {_sellnetheriteblocks} to green concrete named "&2Sell"
			close player's inventory
			open {_sellnetheriteblocks} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_sellnetheriteblocks} to a new chest inventory with 6 rows with name "&bSell Netherite Blocks"
			set slot 4 of {_sellnetheriteblocks} to {temporaryamount::player} of netherite block named "&bNetherite Block"
			set slot 19 of {_sellnetheriteblocks} to green glass named "&a+1"
			set slot 22 of {_sellnetheriteblocks} to green glass named "&a+5"
			set slot 25 of {_sellnetheriteblocks} to green glass named "&aSelect all"
			set slot 28 of {_sellnetheriteblocks} to red glass named "&c-1"
			set slot 31 of {_sellnetheriteblocks} to red glass named "&c-5"
			set slot 34 of {_sellnetheriteblocks} to red glass named "&cSet to 1"
			set slot 49 of {_sellnetheriteblocks} to green concrete named "&2Sell"
			close player's inventory
			open {_sellnetheriteblocks} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_sellnetheriteblocks} to a new chest inventory with 6 rows with name "&bSell Netherite Blocks"
			set slot 4 of {_sellnetheriteblocks} to {temporaryamount::player} of netherite block named "&bNetherite Block"
			set slot 19 of {_sellnetheriteblocks} to green glass named "&a+1"
			set slot 22 of {_sellnetheriteblocks} to green glass named "&a+5"
			set slot 25 of {_sellnetheriteblocks} to green glass named "&aSelect all"
			set slot 28 of {_sellnetheriteblocks} to red glass named "&c-1"
			set slot 31 of {_sellnetheriteblocks} to red glass named "&c-5"
			set slot 34 of {_sellnetheriteblocks} to red glass named "&cSet to 1"
			set slot 49 of {_sellnetheriteblocks} to green concrete named "&2Sell"
			close player's inventory
			open {_sellnetheriteblocks} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {netheriteblocksellprice}
			set {itemamount::player} to 0
			set {itemamount::player} to number of netherite blocks in player's inventory
			if {itemamount::player} >= {temporaryamount::player} :
				remove {temporaryamount::player} of netherite block from player's inventory
				if {temporaryamount::player} is more than 1:
					if {payment::player} is more than 1:
						send "&cYou sold &6%{temporaryamount::player}%&c netherite blocks for &6%{payment::player}%&c coins!"
					else:
						send "&cYou sold &6%{temporaryamount::player}%&c netherite blocks for &6%{payment::player}%&c coin!"
				else:
					if {payment::player} is more than 1:
						send "&cYou sold &6%{temporaryamount::player}%&c netherite block for &6%{payment::player}%&c coins!"
					else:
						send "&cYou sold &6%{temporaryamount::player}%&c netherite block for &6%{payment::player}%&c coin!"
				set {_money} to player's balance
				set player's balance to {_money} + {payment::player}
			else:
				send "&cYou selected more items than the ones you have!"
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
			delete {itemamount::player}
	if name of event-inventory is "&bIron Blocks":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 11:
			set {_buyironblocks} to a new chest inventory with 6 rows with name "&bBuy Iron Blocks"
			set {temporaryamount::player} to 1
			set slot 4 of {_buyironblocks} to iron block named "&bIron Block"
			set slot 19 of {_buyironblocks} to green glass named "&a+1"
			set slot 22 of {_buyironblocks} to green glass named "&a+5"
			set slot 25 of {_buyironblocks} to green glass named "&aSet to 64"
			set slot 28 of {_buyironblocks} to red glass named "&c-1"
			set slot 31 of {_buyironblocks} to red glass named "&c-5"
			set slot 34 of {_buyironblocks} to red glass named "&cSet to 1"
			set slot 49 of {_buyironblocks} to green concrete named "&2Buy"
			close player's inventory
			open {_buyironblocks} to player
		if index of event-slot = 15:
			set {_sellironblocks} to a new chest inventory with 6 rows with name "&bSell Iron Blocks"
			set {temporaryamount::player} to 1
			set slot 4 of {_sellironblocks} to iron block named "&bIron Block"
			set slot 19 of {_sellironblocks} to green glass named "&a+1"
			set slot 22 of {_sellironblocks} to green glass named "&a+5"
			set slot 25 of {_sellironblocks} to green glass named "&aSelect all"
			set slot 28 of {_sellironblocks} to red glass named "&c-1"
			set slot 31 of {_sellironblocks} to red glass named "&c-5"
			set slot 34 of {_sellironblocks} to red glass named "&cSet to 1"
			set slot 49 of {_sellironblocks} to green concrete named "&2Sell"
			close player's inventory
			open {_sellironblocks} to player
	if name of event-inventory is "&bBuy Iron Blocks":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buyironblocks} to a new chest inventory with 6 rows with name "&bBuy Iron Blocks"
			set slot 4 of {_buyironblocks} to {temporaryamount::player} of iron block named "&bIron Block"
			set slot 19 of {_buyironblocks} to green glass named "&a+1"
			set slot 22 of {_buyironblocks} to green glass named "&a+5"
			set slot 25 of {_buyironblocks} to green glass named "&aSet to 64"
			set slot 28 of {_buyironblocks} to red glass named "&c-1"
			set slot 31 of {_buyironblocks} to red glass named "&c-5"
			set slot 34 of {_buyironblocks} to red glass named "&cSet to 1"
			set slot 49 of {_buyironblocks} to green concrete named "&2Buy"
			close player's inventory
			open {_buyironblocks} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buyironblocks} to a new chest inventory with 6 rows with name "&bBuy Iron Blocks"
			set slot 4 of {_buyironblocks} to {temporaryamount::player} of iron block named "&bIron Block"
			set slot 19 of {_buyironblocks} to green glass named "&a+1"
			set slot 22 of {_buyironblocks} to green glass named "&a+5"
			set slot 25 of {_buyironblocks} to green glass named "&aSet to 64"
			set slot 28 of {_buyironblocks} to red glass named "&c-1"
			set slot 31 of {_buyironblocks} to red glass named "&c-5"
			set slot 34 of {_buyironblocks} to red glass named "&cSet to 1"
			set slot 49 of {_buyironblocks} to green concrete named "&2Buy"
			close player's inventory
			open {_buyironblocks} to player
		if index of event-slot = 25:
			set {temporaryamount::player} to 64
			set {_buyironblocks} to a new chest inventory with 6 rows with name "&bBuy Iron Blocks"
			set slot 4 of {_buyironblocks} to {temporaryamount::player} of iron block named "&bIron Block"
			set slot 19 of {_buyironblocks} to green glass named "&a+1"
			set slot 22 of {_buyironblocks} to green glass named "&a+5"
			set slot 25 of {_buyironblocks} to green glass named "&aSet to 64"
			set slot 28 of {_buyironblocks} to red glass named "&c-1"
			set slot 31 of {_buyironblocks} to red glass named "&c-5"
			set slot 34 of {_buyironblocks} to red glass named "&cSet to 1"
			set slot 49 of {_buyironblocks} to green concrete named "&2Buy"
			close player's inventory
			open {_buyironblocks} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buyironblocks} to a new chest inventory with 6 rows with name "&bBuy Iron Blocks"
			set slot 4 of {_buyironblocks} to {temporaryamount::player} of iron block named "&bIron Block"
			set slot 19 of {_buyironblocks} to green glass named "&a+1"
			set slot 22 of {_buyironblocks} to green glass named "&a+5"
			set slot 25 of {_buyironblocks} to green glass named "&aSet to 64"
			set slot 28 of {_buyironblocks} to red glass named "&c-1"
			set slot 31 of {_buyironblocks} to red glass named "&c-5"
			set slot 34 of {_buyironblocks} to red glass named "&cSet to 1"
			set slot 49 of {_buyironblocks} to green concrete named "&2Buy"
			close player's inventory
			open {_buyironblocks} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buyironblocks} to a new chest inventory with 6 rows with name "&bBuy Iron Blocks"
			set slot 4 of {_buyironblocks} to {temporaryamount::player} of iron block named "&bIron Block"
			set slot 19 of {_buyironblocks} to green glass named "&a+1"
			set slot 22 of {_buyironblocks} to green glass named "&a+5"
			set slot 25 of {_buyironblocks} to green glass named "&aSet to 64"
			set slot 28 of {_buyironblocks} to red glass named "&c-1"
			set slot 31 of {_buyironblocks} to red glass named "&c-5"
			set slot 34 of {_buyironblocks} to red glass named "&cSet to 1"
			set slot 49 of {_buyironblocks} to green concrete named "&2Buy"
			close player's inventory
			open {_buyironblocks} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_buyironblocks} to a new chest inventory with 6 rows with name "&bBuy Iron Blocks"
			set slot 4 of {_buyironblocks} to {temporaryamount::player} of iron block named "&bIron Block"
			set slot 19 of {_buyironblocks} to green glass named "&a+1"
			set slot 22 of {_buyironblocks} to green glass named "&a+5"
			set slot 25 of {_buyironblocks} to green glass named "&aSet to 64"
			set slot 28 of {_buyironblocks} to red glass named "&c-1"
			set slot 31 of {_buyironblocks} to red glass named "&c-5"
			set slot 34 of {_buyironblocks} to red glass named "&cSet to 1"
			set slot 49 of {_buyironblocks} to green concrete named "&2Buy"
			close player's inventory
			open {_buyironblocks} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {ironblockprice}
			if player's balance >= {payment::player}:
				give {temporaryamount::player} of iron blocks to player
				if {temporaryamount::player} is more than 1:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c iron blocks for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c iron blocks for &6%{payment::player}%&c coin!"
				else:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c iron block for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c iron block for &6%{payment::player}%&c coin!"
				set {_money} to player's balance
				set player's balance to {_money} - {payment::player}
			else:
				send "&cYou don't have enough money, baka!"
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
	if name of event-inventory is "&bSell Iron Blocks":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_sellironblocks} to a new chest inventory with 6 rows with name "&bSell Iron Blocks"
			set slot 4 of {_sellironblocks} to {temporaryamount::player} of iron block named "&bIron Block"
			set slot 19 of {_sellironblocks} to green glass named "&a+1"
			set slot 22 of {_sellironblocks} to green glass named "&a+5"
			set slot 25 of {_sellironblocks} to green glass named "&aSelect all"
			set slot 28 of {_sellironblocks} to red glass named "&c-1"
			set slot 31 of {_sellironblocks} to red glass named "&c-5"
			set slot 34 of {_sellironblocks} to red glass named "&cSet to 1"
			set slot 49 of {_sellironblocks} to green concrete named "&2Sell"
			close player's inventory
			open {_sellironblocks} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_sellironblocks} to a new chest inventory with 6 rows with name "&bSell Iron Blocks"
			set slot 4 of {_sellironblocks} to {temporaryamount::player} of iron block named "&bIron Block"
			set slot 19 of {_sellironblocks} to green glass named "&a+1"
			set slot 22 of {_sellironblocks} to green glass named "&a+5"
			set slot 25 of {_sellironblocks} to green glass named "&aSelect all"
			set slot 28 of {_sellironblocks} to red glass named "&c-1"
			set slot 31 of {_sellironblocks} to red glass named "&c-5"
			set slot 34 of {_sellironblocks} to red glass named "&cSet to 1"
			set slot 49 of {_sellironblocks} to green concrete named "&2Sell"
			close player's inventory
			open {_sellironblocks} to player
		if index of event-slot = 25:
			set {itemamount::player} to 0
			set {itemamount::player} to number of iron blocks in player's inventory
			set {temporaryamount::player} to {itemamount::player}
			set {_sellironblocks} to a new chest inventory with 6 rows with name "&bSell Iron Blocks"
			set slot 4 of {_sellironblocks} to {temporaryamount::player} of iron block named "&bIron Block"
			set slot 19 of {_sellironblocks} to green glass named "&a+1"
			set slot 22 of {_sellironblocks} to green glass named "&a+5"
			set slot 25 of {_sellironblocks} to green glass named "&aSelect all"
			set slot 28 of {_sellironblocks} to red glass named "&c-1"
			set slot 31 of {_sellironblocks} to red glass named "&c-5"
			set slot 34 of {_sellironblocks} to red glass named "&cSet to 1"
			set slot 49 of {_sellironblocks} to green concrete named "&2Sell"
			close player's inventory
			open {_sellironblocks} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_sellironblocks} to a new chest inventory with 6 rows with name "&bSell Iron Blocks"
			set slot 4 of {_sellironblocks} to {temporaryamount::player} of iron block named "&bIron Block"
			set slot 19 of {_sellironblocks} to green glass named "&a+1"
			set slot 22 of {_sellironblocks} to green glass named "&a+5"
			set slot 25 of {_sellironblocks} to green glass named "&aSelect all"
			set slot 28 of {_sellironblocks} to red glass named "&c-1"
			set slot 31 of {_sellironblocks} to red glass named "&c-5"
			set slot 34 of {_sellironblocks} to red glass named "&cSet to 1"
			set slot 49 of {_sellironblocks} to green concrete named "&2Sell"
			close player's inventory
			open {_sellironblocks} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_sellironblocks} to a new chest inventory with 6 rows with name "&bSell Iron Blocks"
			set slot 4 of {_sellironblocks} to {temporaryamount::player} of iron block named "&bIron Block"
			set slot 19 of {_sellironblocks} to green glass named "&a+1"
			set slot 22 of {_sellironblocks} to green glass named "&a+5"
			set slot 25 of {_sellironblocks} to green glass named "&aSelect all"
			set slot 28 of {_sellironblocks} to red glass named "&c-1"
			set slot 31 of {_sellironblocks} to red glass named "&c-5"
			set slot 34 of {_sellironblocks} to red glass named "&cSet to 1"
			set slot 49 of {_sellironblocks} to green concrete named "&2Sell"
			close player's inventory
			open {_sellironblocks} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_sellironblocks} to a new chest inventory with 6 rows with name "&bSell Iron Blocks"
			set slot 4 of {_sellironblocks} to {temporaryamount::player} of iron block named "&bIron Block"
			set slot 19 of {_sellironblocks} to green glass named "&a+1"
			set slot 22 of {_sellironblocks} to green glass named "&a+5"
			set slot 25 of {_sellironblocks} to green glass named "&aSelect all"
			set slot 28 of {_sellironblocks} to red glass named "&c-1"
			set slot 31 of {_sellironblocks} to red glass named "&c-5"
			set slot 34 of {_sellironblocks} to red glass named "&cSet to 1"
			set slot 49 of {_sellironblocks} to green concrete named "&2Sell"
			close player's inventory
			open {_sellironblocks} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {ironblocksellprice}
			set {itemamount::player} to 0
			set {itemamount::player} to number of iron blocks in player's inventory
			if {itemamount::player} >= {temporaryamount::player} :
				remove {temporaryamount::player} of iron block from player's inventory
				if {temporaryamount::player} is more than 1:
					if {payment::player} is more than 1:
						send "&cYou sold &6%{temporaryamount::player}%&c iron blocks for &6%{payment::player}%&c coins!"
					else:
						send "&cYou sold &6%{temporaryamount::player}%&c iron blocks for &6%{payment::player}%&c coin!"
				else:
					if {payment::player} is more than 1:
						send "&cYou sold &6%{temporaryamount::player}%&c iron block for &6%{payment::player}%&c coins!"
					else:
						send "&cYou sold &6%{temporaryamount::player}%&c iron block for &6%{payment::player}%&c coin!"
				set {_money} to player's balance
				set player's balance to {_money} + {payment::player}
			else:
				send "&cYou selected more items than the ones you have!"
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
			delete {itemamount::player}
	if name of event-inventory is "&bGold Blocks":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 11:
			set {_buygoldblocks} to a new chest inventory with 6 rows with name "&bBuy Gold Blocks"
			set {temporaryamount::player} to 1
			set slot 4 of {_buygoldblocks} to gold block named "&bGold Block"
			set slot 19 of {_buygoldblocks} to green glass named "&a+1"
			set slot 22 of {_buygoldblocks} to green glass named "&a+5"
			set slot 25 of {_buygoldblocks} to green glass named "&aSet to 64"
			set slot 28 of {_buygoldblocks} to red glass named "&c-1"
			set slot 31 of {_buygoldblocks} to red glass named "&c-5"
			set slot 34 of {_buygoldblocks} to red glass named "&cSet to 1"
			set slot 49 of {_buygoldblocks} to green concrete named "&2Buy"
			close player's inventory
			open {_buygoldblocks} to player
		if index of event-slot = 15:
			set {_sellgoldblocks} to a new chest inventory with 6 rows with name "&bSell Gold Blocks"
			set {temporaryamount::player} to 1
			set slot 4 of {_sellgoldblocks} to gold block named "&bGold Block"
			set slot 19 of {_sellgoldblocks} to green glass named "&a+1"
			set slot 22 of {_sellgoldblocks} to green glass named "&a+5"
			set slot 25 of {_sellgoldblocks} to green glass named "&aSelect all"
			set slot 28 of {_sellgoldblocks} to red glass named "&c-1"
			set slot 31 of {_sellgoldblocks} to red glass named "&c-5"
			set slot 34 of {_sellgoldblocks} to red glass named "&cSet to 1"
			set slot 49 of {_sellgoldblocks} to green concrete named "&2Sell"
			close player's inventory
			open {_sellgoldblocks} to player
	if name of event-inventory is "&bBuy Gold Blocks":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buygoldblocks} to a new chest inventory with 6 rows with name "&bBuy Gold Blocks"
			set slot 4 of {_buygoldblocks} to {temporaryamount::player} of gold block named "&bGold Block"
			set slot 19 of {_buygoldblocks} to green glass named "&a+1"
			set slot 22 of {_buygoldblocks} to green glass named "&a+5"
			set slot 25 of {_buygoldblocks} to green glass named "&aSet to 64"
			set slot 28 of {_buygoldblocks} to red glass named "&c-1"
			set slot 31 of {_buygoldblocks} to red glass named "&c-5"
			set slot 34 of {_buygoldblocks} to red glass named "&cSet to 1"
			set slot 49 of {_buygoldblocks} to green concrete named "&2Buy"
			close player's inventory
			open {_buygoldblocks} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buygoldblocks} to a new chest inventory with 6 rows with name "&bBuy Gold Blocks"
			set slot 4 of {_buygoldblocks} to {temporaryamount::player} of gold block named "&bGold Block"
			set slot 19 of {_buygoldblocks} to green glass named "&a+1"
			set slot 22 of {_buygoldblocks} to green glass named "&a+5"
			set slot 25 of {_buygoldblocks} to green glass named "&aSet to 64"
			set slot 28 of {_buygoldblocks} to red glass named "&c-1"
			set slot 31 of {_buygoldblocks} to red glass named "&c-5"
			set slot 34 of {_buygoldblocks} to red glass named "&cSet to 1"
			set slot 49 of {_buygoldblocks} to green concrete named "&2Buy"
			close player's inventory
			open {_buygoldblocks} to player
		if index of event-slot = 25:
			set {temporaryamount::player} to 64
			set {_buygoldblocks} to a new chest inventory with 6 rows with name "&bBuy Gold Blocks"
			set slot 4 of {_buygoldblocks} to {temporaryamount::player} of gold block named "&bGold Block"
			set slot 19 of {_buygoldblocks} to green glass named "&a+1"
			set slot 22 of {_buygoldblocks} to green glass named "&a+5"
			set slot 25 of {_buygoldblocks} to green glass named "&aSet to 64"
			set slot 28 of {_buygoldblocks} to red glass named "&c-1"
			set slot 31 of {_buygoldblocks} to red glass named "&c-5"
			set slot 34 of {_buygoldblocks} to red glass named "&cSet to 1"
			set slot 49 of {_buygoldblocks} to green concrete named "&2Buy"
			close player's inventory
			open {_buygoldblocks} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buygoldblocks} to a new chest inventory with 6 rows with name "&bBuy Gold Blocks"
			set slot 4 of {_buygoldblocks} to {temporaryamount::player} of gold block named "&bGold Block"
			set slot 19 of {_buygoldblocks} to green glass named "&a+1"
			set slot 22 of {_buygoldblocks} to green glass named "&a+5"
			set slot 25 of {_buygoldblocks} to green glass named "&aSet to 64"
			set slot 28 of {_buygoldblocks} to red glass named "&c-1"
			set slot 31 of {_buygoldblocks} to red glass named "&c-5"
			set slot 34 of {_buygoldblocks} to red glass named "&cSet to 1"
			set slot 49 of {_buygoldblocks} to green concrete named "&2Buy"
			close player's inventory
			open {_buygoldblocks} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buygoldblocks} to a new chest inventory with 6 rows with name "&bBuy Gold Blocks"
			set slot 4 of {_buygoldblocks} to {temporaryamount::player} of gold block named "&bGold Block"
			set slot 19 of {_buygoldblocks} to green glass named "&a+1"
			set slot 22 of {_buygoldblocks} to green glass named "&a+5"
			set slot 25 of {_buygoldblocks} to green glass named "&aSet to 64"
			set slot 28 of {_buygoldblocks} to red glass named "&c-1"
			set slot 31 of {_buygoldblocks} to red glass named "&c-5"
			set slot 34 of {_buygoldblocks} to red glass named "&cSet to 1"
			set slot 49 of {_buygoldblocks} to green concrete named "&2Buy"
			close player's inventory
			open {_buygoldblocks} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_buygoldblocks} to a new chest inventory with 6 rows with name "&bBuy Gold Blocks"
			set slot 4 of {_buygoldblocks} to {temporaryamount::player} of gold block named "&bGold Block"
			set slot 19 of {_buygoldblocks} to green glass named "&a+1"
			set slot 22 of {_buygoldblocks} to green glass named "&a+5"
			set slot 25 of {_buygoldblocks} to green glass named "&aSet to 64"
			set slot 28 of {_buygoldblocks} to red glass named "&c-1"
			set slot 31 of {_buygoldblocks} to red glass named "&c-5"
			set slot 34 of {_buygoldblocks} to red glass named "&cSet to 1"
			set slot 49 of {_buygoldblocks} to green concrete named "&2Buy"
			close player's inventory
			open {_buygoldblocks} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {goldblockprice}
			if player's balance >= {payment::player}:
				give {temporaryamount::player} of gold blocks to player
				if {temporaryamount::player} is more than 1:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c gold blocks for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c gold blocks for &6%{payment::player}%&c coin!"
				else:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c gold block for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c gold block for &6%{payment::player}%&c coin!"
				set {_money} to player's balance
				set player's balance to {_money} - {payment::player}
			else:
				send "&cYou don't have enough money, baka!"
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
	if name of event-inventory is "&bSell Gold Blocks":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_sellgoldblocks} to a new chest inventory with 6 rows with name "&bSell Gold Blocks"
			set slot 4 of {_sellgoldblocks} to {temporaryamount::player} of gold block named "&bGold Block"
			set slot 19 of {_sellgoldblocks} to green glass named "&a+1"
			set slot 22 of {_sellgoldblocks} to green glass named "&a+5"
			set slot 25 of {_sellgoldblocks} to green glass named "&aSelect all"
			set slot 28 of {_sellgoldblocks} to red glass named "&c-1"
			set slot 31 of {_sellgoldblocks} to red glass named "&c-5"
			set slot 34 of {_sellgoldblocks} to red glass named "&cSet to 1"
			set slot 49 of {_sellgoldblocks} to green concrete named "&2Sell"
			close player's inventory
			open {_sellgoldblocks} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_sellgoldblocks} to a new chest inventory with 6 rows with name "&bSell Gold Blocks"
			set slot 4 of {_sellgoldblocks} to {temporaryamount::player} of gold block named "&bGold Block"
			set slot 19 of {_sellgoldblocks} to green glass named "&a+1"
			set slot 22 of {_sellgoldblocks} to green glass named "&a+5"
			set slot 25 of {_sellgoldblocks} to green glass named "&aSelect all"
			set slot 28 of {_sellgoldblocks} to red glass named "&c-1"
			set slot 31 of {_sellgoldblocks} to red glass named "&c-5"
			set slot 34 of {_sellgoldblocks} to red glass named "&cSet to 1"
			set slot 49 of {_sellgoldblocks} to green concrete named "&2Sell"
			close player's inventory
			open {_sellgoldblocks} to player
		if index of event-slot = 25:
			set {itemamount::player} to 0
			set {itemamount::player} to number of gold blocks in player's inventory
			set {temporaryamount::player} to {itemamount::player}
			set {_sellgoldblocks} to a new chest inventory with 6 rows with name "&bSell Gold Blocks"
			set slot 4 of {_sellgoldblocks} to {temporaryamount::player} of gold block named "&bGold Block"
			set slot 19 of {_sellgoldblocks} to green glass named "&a+1"
			set slot 22 of {_sellgoldblocks} to green glass named "&a+5"
			set slot 25 of {_sellgoldblocks} to green glass named "&aSelect all"
			set slot 28 of {_sellgoldblocks} to red glass named "&c-1"
			set slot 31 of {_sellgoldblocks} to red glass named "&c-5"
			set slot 34 of {_sellgoldblocks} to red glass named "&cSet to 1"
			set slot 49 of {_sellgoldblocks} to green concrete named "&2Sell"
			close player's inventory
			open {_sellgoldblocks} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_sellgoldblocks} to a new chest inventory with 6 rows with name "&bSell Gold Blocks"
			set slot 4 of {_sellgoldblocks} to {temporaryamount::player} of gold block named "&bGold Block"
			set slot 19 of {_sellgoldblocks} to green glass named "&a+1"
			set slot 22 of {_sellgoldblocks} to green glass named "&a+5"
			set slot 25 of {_sellgoldblocks} to green glass named "&aSelect all"
			set slot 28 of {_sellgoldblocks} to red glass named "&c-1"
			set slot 31 of {_sellgoldblocks} to red glass named "&c-5"
			set slot 34 of {_sellgoldblocks} to red glass named "&cSet to 1"
			set slot 49 of {_sellgoldblocks} to green concrete named "&2Sell"
			close player's inventory
			open {_sellgoldblocks} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_sellgoldblocks} to a new chest inventory with 6 rows with name "&bSell Gold Blocks"
			set slot 4 of {_sellgoldblocks} to {temporaryamount::player} of gold block named "&bGold Block"
			set slot 19 of {_sellgoldblocks} to green glass named "&a+1"
			set slot 22 of {_sellgoldblocks} to green glass named "&a+5"
			set slot 25 of {_sellgoldblocks} to green glass named "&aSelect all"
			set slot 28 of {_sellgoldblocks} to red glass named "&c-1"
			set slot 31 of {_sellgoldblocks} to red glass named "&c-5"
			set slot 34 of {_sellgoldblocks} to red glass named "&cSet to 1"
			set slot 49 of {_sellgoldblocks} to green concrete named "&2Sell"
			close player's inventory
			open {_sellgoldblocks} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_sellgoldblocks} to a new chest inventory with 6 rows with name "&bSell Gold Blocks"
			set slot 4 of {_sellgoldblocks} to {temporaryamount::player} of gold block named "&bGold Block"
			set slot 19 of {_sellgoldblocks} to green glass named "&a+1"
			set slot 22 of {_sellgoldblocks} to green glass named "&a+5"
			set slot 25 of {_sellgoldblocks} to green glass named "&aSelect all"
			set slot 28 of {_sellgoldblocks} to red glass named "&c-1"
			set slot 31 of {_sellgoldblocks} to red glass named "&c-5"
			set slot 34 of {_sellgoldblocks} to red glass named "&cSet to 1"
			set slot 49 of {_sellgoldblocks} to green concrete named "&2Sell"
			close player's inventory
			open {_sellgoldblocks} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {goldblocksellprice}
			set {itemamount::player} to 0
			set {itemamount::player} to number of gold blocks in player's inventory
			if {itemamount::player} >= {temporaryamount::player} :
				remove {temporaryamount::player} of gold block from player's inventory
				if {temporaryamount::player} is more than 1:
					if {payment::player} is more than 1:
						send "&cYou sold &6%{temporaryamount::player}%&c gold blocks for &6%{payment::player}%&c coins!"
					else:
						send "&cYou sold &6%{temporaryamount::player}%&c gold blocks for &6%{payment::player}%&c coin!"
				else:
					if {payment::player} is more than 1:
						send "&cYou sold &6%{temporaryamount::player}%&c gold block for &6%{payment::player}%&c coins!"
					else:
						send "&cYou sold &6%{temporaryamount::player}%&c gold block for &6%{payment::player}%&c coin!"
				set {_money} to player's balance
				set player's balance to {_money} + {payment::player}
			else:
				send "&cYou selected more items than the ones you have!"
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
			delete {itemamount::player}
	if name of event-inventory is "&bEmerald Blocks":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 11:
			set {_buyemeraldblocks} to a new chest inventory with 6 rows with name "&bBuy Emerald Blocks"
			set {temporaryamount::player} to 1
			set slot 4 of {_buyemeraldblocks} to emerald block named "&bEmerald Block"
			set slot 19 of {_buyemeraldblocks} to green glass named "&a+1"
			set slot 22 of {_buyemeraldblocks} to green glass named "&a+5"
			set slot 25 of {_buyemeraldblocks} to green glass named "&aSet to 64"
			set slot 28 of {_buyemeraldblocks} to red glass named "&c-1"
			set slot 31 of {_buyemeraldblocks} to red glass named "&c-5"
			set slot 34 of {_buyemeraldblocks} to red glass named "&cSet to 1"
			set slot 49 of {_buyemeraldblocks} to green concrete named "&2Buy"
			close player's inventory
			open {_buyemeraldblocks} to player
		if index of event-slot = 15:
			set {_sellemeraldblocks} to a new chest inventory with 6 rows with name "&bSell Emerald Blocks"
			set {temporaryamount::player} to 1
			set slot 4 of {_sellemeraldblocks} to emerald block named "&bEmerald Block"
			set slot 19 of {_sellemeraldblocks} to green glass named "&a+1"
			set slot 22 of {_sellemeraldblocks} to green glass named "&a+5"
			set slot 25 of {_sellemeraldblocks} to green glass named "&aSelect all"
			set slot 28 of {_sellemeraldblocks} to red glass named "&c-1"
			set slot 31 of {_sellemeraldblocks} to red glass named "&c-5"
			set slot 34 of {_sellemeraldblocks} to red glass named "&cSet to 1"
			set slot 49 of {_sellemeraldblocks} to green concrete named "&2Sell"
			close player's inventory
			open {_sellemeraldblocks} to player
	if name of event-inventory is "&bBuy Emerald Blocks":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buyemeraldblocks} to a new chest inventory with 6 rows with name "&bBuy Emerald Blocks"
			set slot 4 of {_buyemeraldblocks} to {temporaryamount::player} of emerald block named "&bEmerald Block"
			set slot 19 of {_buyemeraldblocks} to green glass named "&a+1"
			set slot 22 of {_buyemeraldblocks} to green glass named "&a+5"
			set slot 25 of {_buyemeraldblocks} to green glass named "&aSet to 64"
			set slot 28 of {_buyemeraldblocks} to red glass named "&c-1"
			set slot 31 of {_buyemeraldblocks} to red glass named "&c-5"
			set slot 34 of {_buyemeraldblocks} to red glass named "&cSet to 1"
			set slot 49 of {_buyemeraldblocks} to green concrete named "&2Buy"
			close player's inventory
			open {_buyemeraldblocks} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buyemeraldblocks} to a new chest inventory with 6 rows with name "&bBuy Emerald Blocks"
			set slot 4 of {_buyemeraldblocks} to {temporaryamount::player} of emerald block named "&bEmerald Block"
			set slot 19 of {_buyemeraldblocks} to green glass named "&a+1"
			set slot 22 of {_buyemeraldblocks} to green glass named "&a+5"
			set slot 25 of {_buyemeraldblocks} to green glass named "&aSet to 64"
			set slot 28 of {_buyemeraldblocks} to red glass named "&c-1"
			set slot 31 of {_buyemeraldblocks} to red glass named "&c-5"
			set slot 34 of {_buyemeraldblocks} to red glass named "&cSet to 1"
			set slot 49 of {_buyemeraldblocks} to green concrete named "&2Buy"
			close player's inventory
			open {_buyemeraldblocks} to player
		if index of event-slot = 25:
			set {temporaryamount::player} to 64
			set {_buyemeraldblocks} to a new chest inventory with 6 rows with name "&bBuy Emerald Blocks"
			set slot 4 of {_buyemeraldblocks} to {temporaryamount::player} of emerald block named "&bEmerald Block"
			set slot 19 of {_buyemeraldblocks} to green glass named "&a+1"
			set slot 22 of {_buyemeraldblocks} to green glass named "&a+5"
			set slot 25 of {_buyemeraldblocks} to green glass named "&aSet to 64"
			set slot 28 of {_buyemeraldblocks} to red glass named "&c-1"
			set slot 31 of {_buyemeraldblocks} to red glass named "&c-5"
			set slot 34 of {_buyemeraldblocks} to red glass named "&cSet to 1"
			set slot 49 of {_buyemeraldblocks} to green concrete named "&2Buy"
			close player's inventory
			open {_buyemeraldblocks} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buyemeraldblocks} to a new chest inventory with 6 rows with name "&bBuy Emerald Blocks"
			set slot 4 of {_buyemeraldblocks} to {temporaryamount::player} of emerald block named "&bEmerald Block"
			set slot 19 of {_buyemeraldblocks} to green glass named "&a+1"
			set slot 22 of {_buyemeraldblocks} to green glass named "&a+5"
			set slot 25 of {_buyemeraldblocks} to green glass named "&aSet to 64"
			set slot 28 of {_buyemeraldblocks} to red glass named "&c-1"
			set slot 31 of {_buyemeraldblocks} to red glass named "&c-5"
			set slot 34 of {_buyemeraldblocks} to red glass named "&cSet to 1"
			set slot 49 of {_buyemeraldblocks} to green concrete named "&2Buy"
			close player's inventory
			open {_buyemeraldblocks} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buyemeraldblocks} to a new chest inventory with 6 rows with name "&bBuy Emerald Blocks"
			set slot 4 of {_buyemeraldblocks} to {temporaryamount::player} of emerald block named "&bEmerald Block"
			set slot 19 of {_buyemeraldblocks} to green glass named "&a+1"
			set slot 22 of {_buyemeraldblocks} to green glass named "&a+5"
			set slot 25 of {_buyemeraldblocks} to green glass named "&aSet to 64"
			set slot 28 of {_buyemeraldblocks} to red glass named "&c-1"
			set slot 31 of {_buyemeraldblocks} to red glass named "&c-5"
			set slot 34 of {_buyemeraldblocks} to red glass named "&cSet to 1"
			set slot 49 of {_buyemeraldblocks} to green concrete named "&2Buy"
			close player's inventory
			open {_buyemeraldblocks} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_buyemeraldblocks} to a new chest inventory with 6 rows with name "&bBuy Emerald Blocks"
			set slot 4 of {_buyemeraldblocks} to {temporaryamount::player} of emerald block named "&bEmerald Block"
			set slot 19 of {_buyemeraldblocks} to green glass named "&a+1"
			set slot 22 of {_buyemeraldblocks} to green glass named "&a+5"
			set slot 25 of {_buyemeraldblocks} to green glass named "&aSet to 64"
			set slot 28 of {_buyemeraldblocks} to red glass named "&c-1"
			set slot 31 of {_buyemeraldblocks} to red glass named "&c-5"
			set slot 34 of {_buyemeraldblocks} to red glass named "&cSet to 1"
			set slot 49 of {_buyemeraldblocks} to green concrete named "&2Buy"
			close player's inventory
			open {_buyemeraldblocks} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {emeraldblockprice}
			if player's balance >= {payment::player}:
				give {temporaryamount::player} of emerald blocks to player
				if {temporaryamount::player} is more than 1:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c emerald blocks for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c emerald blocks for &6%{payment::player}%&c coin!"
				else:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c emerald block for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c emerald block for &6%{payment::player}%&c coin!"
				set {_money} to player's balance
				set player's balance to {_money} - {payment::player}
			else:
				send "&cYou don't have enough money, baka!"
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
	if name of event-inventory is "&bSell Emerald Blocks":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_sellemeraldblocks} to a new chest inventory with 6 rows with name "&bSell Emerald Blocks"
			set slot 4 of {_sellemeraldblocks} to {temporaryamount::player} of emerald block named "&bEmerald Block"
			set slot 19 of {_sellemeraldblocks} to green glass named "&a+1"
			set slot 22 of {_sellemeraldblocks} to green glass named "&a+5"
			set slot 25 of {_sellemeraldblocks} to green glass named "&aSelect all"
			set slot 28 of {_sellemeraldblocks} to red glass named "&c-1"
			set slot 31 of {_sellemeraldblocks} to red glass named "&c-5"
			set slot 34 of {_sellemeraldblocks} to red glass named "&cSet to 1"
			set slot 49 of {_sellemeraldblocks} to green concrete named "&2Sell"
			close player's inventory
			open {_sellemeraldblocks} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_sellemeraldblocks} to a new chest inventory with 6 rows with name "&bSell Emerald Blocks"
			set slot 4 of {_sellemeraldblocks} to {temporaryamount::player} of emerald block named "&bEmerald Block"
			set slot 19 of {_sellemeraldblocks} to green glass named "&a+1"
			set slot 22 of {_sellemeraldblocks} to green glass named "&a+5"
			set slot 25 of {_sellemeraldblocks} to green glass named "&aSelect all"
			set slot 28 of {_sellemeraldblocks} to red glass named "&c-1"
			set slot 31 of {_sellemeraldblocks} to red glass named "&c-5"
			set slot 34 of {_sellemeraldblocks} to red glass named "&cSet to 1"
			set slot 49 of {_sellemeraldblocks} to green concrete named "&2Sell"
			close player's inventory
			open {_sellemeraldblocks} to player
		if index of event-slot = 25:
			set {itemamount::player} to 0
			set {itemamount::player} to number of emerald blocks in player's inventory
			set {temporaryamount::player} to {itemamount::player}
			set {_sellemeraldblocks} to a new chest inventory with 6 rows with name "&bSell Emerald Blocks"
			set slot 4 of {_sellemeraldblocks} to {temporaryamount::player} of emerald block named "&bEmerald Block"
			set slot 19 of {_sellemeraldblocks} to green glass named "&a+1"
			set slot 22 of {_sellemeraldblocks} to green glass named "&a+5"
			set slot 25 of {_sellemeraldblocks} to green glass named "&aSelect all"
			set slot 28 of {_sellemeraldblocks} to red glass named "&c-1"
			set slot 31 of {_sellemeraldblocks} to red glass named "&c-5"
			set slot 34 of {_sellemeraldblocks} to red glass named "&cSet to 1"
			set slot 49 of {_sellemeraldblocks} to green concrete named "&2Sell"
			close player's inventory
			open {_sellemeraldblocks} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_sellemeraldblocks} to a new chest inventory with 6 rows with name "&bSell Emerald Blocks"
			set slot 4 of {_sellemeraldblocks} to {temporaryamount::player} of emerald block named "&bEmerald Block"
			set slot 19 of {_sellemeraldblocks} to green glass named "&a+1"
			set slot 22 of {_sellemeraldblocks} to green glass named "&a+5"
			set slot 25 of {_sellemeraldblocks} to green glass named "&aSelect all"
			set slot 28 of {_sellemeraldblocks} to red glass named "&c-1"
			set slot 31 of {_sellemeraldblocks} to red glass named "&c-5"
			set slot 34 of {_sellemeraldblocks} to red glass named "&cSet to 1"
			set slot 49 of {_sellemeraldblocks} to green concrete named "&2Sell"
			close player's inventory
			open {_sellemeraldblocks} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_sellemeraldblocks} to a new chest inventory with 6 rows with name "&bSell Emerald Blocks"
			set slot 4 of {_sellemeraldblocks} to {temporaryamount::player} of emerald block named "&bEmerald Block"
			set slot 19 of {_sellemeraldblocks} to green glass named "&a+1"
			set slot 22 of {_sellemeraldblocks} to green glass named "&a+5"
			set slot 25 of {_sellemeraldblocks} to green glass named "&aSelect all"
			set slot 28 of {_sellemeraldblocks} to red glass named "&c-1"
			set slot 31 of {_sellemeraldblocks} to red glass named "&c-5"
			set slot 34 of {_sellemeraldblocks} to red glass named "&cSet to 1"
			set slot 49 of {_sellemeraldblocks} to green concrete named "&2Sell"
			close player's inventory
			open {_sellemeraldblocks} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_sellemeraldblocks} to a new chest inventory with 6 rows with name "&bSell Emerald Blocks"
			set slot 4 of {_sellemeraldblocks} to {temporaryamount::player} of emerald block named "&bEmerald Block"
			set slot 19 of {_sellemeraldblocks} to green glass named "&a+1"
			set slot 22 of {_sellemeraldblocks} to green glass named "&a+5"
			set slot 25 of {_sellemeraldblocks} to green glass named "&aSelect all"
			set slot 28 of {_sellemeraldblocks} to red glass named "&c-1"
			set slot 31 of {_sellemeraldblocks} to red glass named "&c-5"
			set slot 34 of {_sellemeraldblocks} to red glass named "&cSet to 1"
			set slot 49 of {_sellemeraldblocks} to green concrete named "&2Sell"
			close player's inventory
			open {_sellemeraldblocks} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {emeraldblocksellprice}
			set {itemamount::player} to 0
			set {itemamount::player} to number of emerald blocks in player's inventory
			if {itemamount::player} >= {temporaryamount::player} :
				remove {temporaryamount::player} of emerald block from player's inventory
				if {temporaryamount::player} is more than 1:
					if {payment::player} is more than 1:
						send "&cYou sold &6%{temporaryamount::player}%&c emerald blocks for &6%{payment::player}%&c coins!"
					else:
						send "&cYou sold &6%{temporaryamount::player}%&c emerald blocks for &6%{payment::player}%&c coin!"
				else:
					if {payment::player} is more than 1:
						send "&cYou sold &6%{temporaryamount::player}%&c emerald block for &6%{payment::player}%&c coins!"
					else:
						send "&cYou sold &6%{temporaryamount::player}%&c emerald block for &6%{payment::player}%&c coin!"
				set {_money} to player's balance
				set player's balance to {_money} + {payment::player}
			else:
				send "&cYou selected more items than the ones you have!"
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
			delete {itemamount::player}
	if name of event-inventory is "&bDiamond Blocks":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 11:
			set {_buydiamondblocks} to a new chest inventory with 6 rows with name "&bBuy Diamond Blocks"
			set {temporaryamount::player} to 1
			set slot 4 of {_buydiamondblocks} to diamond block named "&bDiamond Block"
			set slot 19 of {_buydiamondblocks} to green glass named "&a+1"
			set slot 22 of {_buydiamondblocks} to green glass named "&a+5"
			set slot 25 of {_buydiamondblocks} to green glass named "&aSet to 64"
			set slot 28 of {_buydiamondblocks} to red glass named "&c-1"
			set slot 31 of {_buydiamondblocks} to red glass named "&c-5"
			set slot 34 of {_buydiamondblocks} to red glass named "&cSet to 1"
			set slot 49 of {_buydiamondblocks} to green concrete named "&2Buy"
			close player's inventory
			open {_buydiamondblocks} to player
		if index of event-slot = 15:
			set {_selldiamondblocks} to a new chest inventory with 6 rows with name "&bSell Diamond Blocks"
			set {temporaryamount::player} to 1
			set slot 4 of {_selldiamondblocks} to diamond block named "&bDiamond Block"
			set slot 19 of {_selldiamondblocks} to green glass named "&a+1"
			set slot 22 of {_selldiamondblocks} to green glass named "&a+5"
			set slot 25 of {_selldiamondblocks} to green glass named "&aSelect all"
			set slot 28 of {_selldiamondblocks} to red glass named "&c-1"
			set slot 31 of {_selldiamondblocks} to red glass named "&c-5"
			set slot 34 of {_selldiamondblocks} to red glass named "&cSet to 1"
			set slot 49 of {_selldiamondblocks} to green concrete named "&2Sell"
			close player's inventory
			open {_selldiamondblocks} to player
	if name of event-inventory is "&bBuy Diamond Blocks":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buydiamondblocks} to a new chest inventory with 6 rows with name "&bBuy Diamond Blocks"
			set slot 4 of {_buydiamondblocks} to {temporaryamount::player} of diamond block named "&bDiamond Block"
			set slot 19 of {_buydiamondblocks} to green glass named "&a+1"
			set slot 22 of {_buydiamondblocks} to green glass named "&a+5"
			set slot 25 of {_buydiamondblocks} to green glass named "&aSet to 64"
			set slot 28 of {_buydiamondblocks} to red glass named "&c-1"
			set slot 31 of {_buydiamondblocks} to red glass named "&c-5"
			set slot 34 of {_buydiamondblocks} to red glass named "&cSet to 1"
			set slot 49 of {_buydiamondblocks} to green concrete named "&2Buy"
			close player's inventory
			open {_buydiamondblocks} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buydiamondblocks} to a new chest inventory with 6 rows with name "&bBuy Diamond Blocks"
			set slot 4 of {_buydiamondblocks} to {temporaryamount::player} of diamond block named "&bDiamond Block"
			set slot 19 of {_buydiamondblocks} to green glass named "&a+1"
			set slot 22 of {_buydiamondblocks} to green glass named "&a+5"
			set slot 25 of {_buydiamondblocks} to green glass named "&aSet to 64"
			set slot 28 of {_buydiamondblocks} to red glass named "&c-1"
			set slot 31 of {_buydiamondblocks} to red glass named "&c-5"
			set slot 34 of {_buydiamondblocks} to red glass named "&cSet to 1"
			set slot 49 of {_buydiamondblocks} to green concrete named "&2Buy"
			close player's inventory
			open {_buydiamondblocks} to player
		if index of event-slot = 25:
			set {temporaryamount::player} to 64
			set {_buydiamondblocks} to a new chest inventory with 6 rows with name "&bBuy Diamond Blocks"
			set slot 4 of {_buydiamondblocks} to {temporaryamount::player} of diamond block named "&bDiamond Block"
			set slot 19 of {_buydiamondblocks} to green glass named "&a+1"
			set slot 22 of {_buydiamondblocks} to green glass named "&a+5"
			set slot 25 of {_buydiamondblocks} to green glass named "&aSet to 64"
			set slot 28 of {_buydiamondblocks} to red glass named "&c-1"
			set slot 31 of {_buydiamondblocks} to red glass named "&c-5"
			set slot 34 of {_buydiamondblocks} to red glass named "&cSet to 1"
			set slot 49 of {_buydiamondblocks} to green concrete named "&2Buy"
			close player's inventory
			open {_buydiamondblocks} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buydiamondblocks} to a new chest inventory with 6 rows with name "&bBuy Diamond Blocks"
			set slot 4 of {_buydiamondblocks} to {temporaryamount::player} of diamond block named "&bDiamond Block"
			set slot 19 of {_buydiamondblocks} to green glass named "&a+1"
			set slot 22 of {_buydiamondblocks} to green glass named "&a+5"
			set slot 25 of {_buydiamondblocks} to green glass named "&aSet to 64"
			set slot 28 of {_buydiamondblocks} to red glass named "&c-1"
			set slot 31 of {_buydiamondblocks} to red glass named "&c-5"
			set slot 34 of {_buydiamondblocks} to red glass named "&cSet to 1"
			set slot 49 of {_buydiamondblocks} to green concrete named "&2Buy"
			close player's inventory
			open {_buydiamondblocks} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buydiamondblocks} to a new chest inventory with 6 rows with name "&bBuy Diamond Blocks"
			set slot 4 of {_buydiamondblocks} to {temporaryamount::player} of diamond block named "&bDiamond Block"
			set slot 19 of {_buydiamondblocks} to green glass named "&a+1"
			set slot 22 of {_buydiamondblocks} to green glass named "&a+5"
			set slot 25 of {_buydiamondblocks} to green glass named "&aSet to 64"
			set slot 28 of {_buydiamondblocks} to red glass named "&c-1"
			set slot 31 of {_buydiamondblocks} to red glass named "&c-5"
			set slot 34 of {_buydiamondblocks} to red glass named "&cSet to 1"
			set slot 49 of {_buydiamondblocks} to green concrete named "&2Buy"
			close player's inventory
			open {_buydiamondblocks} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_buydiamondblocks} to a new chest inventory with 6 rows with name "&bBuy Diamond Blocks"
			set slot 4 of {_buydiamondblocks} to {temporaryamount::player} of diamond block named "&bDiamond Block"
			set slot 19 of {_buydiamondblocks} to green glass named "&a+1"
			set slot 22 of {_buydiamondblocks} to green glass named "&a+5"
			set slot 25 of {_buydiamondblocks} to green glass named "&aSet to 64"
			set slot 28 of {_buydiamondblocks} to red glass named "&c-1"
			set slot 31 of {_buydiamondblocks} to red glass named "&c-5"
			set slot 34 of {_buydiamondblocks} to red glass named "&cSet to 1"
			set slot 49 of {_buydiamondblocks} to green concrete named "&2Buy"
			close player's inventory
			open {_buydiamondblocks} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {diamondblockprice}
			if player's balance >= {payment::player}:
				give {temporaryamount::player} of diamond blocks to player
				if {temporaryamount::player} is more than 1:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c diamond blocks for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c diamond blocks for &6%{payment::player}%&c coin!"
				else:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c diamond block for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c diamond block for &6%{payment::player}%&c coin!"
				set {_money} to player's balance
				set player's balance to {_money} - {payment::player}
			else:
				send "&cYou don't have enough money, baka!"
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
	if name of event-inventory is "&bSell Diamond Blocks":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_selldiamondblocks} to a new chest inventory with 6 rows with name "&bSell Diamond Blocks"
			set slot 4 of {_selldiamondblocks} to {temporaryamount::player} of diamond block named "&bDiamond Block"
			set slot 19 of {_selldiamondblocks} to green glass named "&a+1"
			set slot 22 of {_selldiamondblocks} to green glass named "&a+5"
			set slot 25 of {_selldiamondblocks} to green glass named "&aSelect all"
			set slot 28 of {_selldiamondblocks} to red glass named "&c-1"
			set slot 31 of {_selldiamondblocks} to red glass named "&c-5"
			set slot 34 of {_selldiamondblocks} to red glass named "&cSet to 1"
			set slot 49 of {_selldiamondblocks} to green concrete named "&2Sell"
			close player's inventory
			open {_selldiamondblocks} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_selldiamondblocks} to a new chest inventory with 6 rows with name "&bSell Diamond Blocks"
			set slot 4 of {_selldiamondblocks} to {temporaryamount::player} of diamond block named "&bDiamond Block"
			set slot 19 of {_selldiamondblocks} to green glass named "&a+1"
			set slot 22 of {_selldiamondblocks} to green glass named "&a+5"
			set slot 25 of {_selldiamondblocks} to green glass named "&aSelect all"
			set slot 28 of {_selldiamondblocks} to red glass named "&c-1"
			set slot 31 of {_selldiamondblocks} to red glass named "&c-5"
			set slot 34 of {_selldiamondblocks} to red glass named "&cSet to 1"
			set slot 49 of {_selldiamondblocks} to green concrete named "&2Sell"
			close player's inventory
			open {_selldiamondblocks} to player
		if index of event-slot = 25:
			set {itemamount::player} to 0
			set {itemamount::player} to number of diamond blocks in player's inventory
			set {temporaryamount::player} to {itemamount::player}
			set {_selldiamondblocks} to a new chest inventory with 6 rows with name "&bSell Diamond Blocks"
			set slot 4 of {_selldiamondblocks} to {temporaryamount::player} of diamond block named "&bDiamond Block"
			set slot 19 of {_selldiamondblocks} to green glass named "&a+1"
			set slot 22 of {_selldiamondblocks} to green glass named "&a+5"
			set slot 25 of {_selldiamondblocks} to green glass named "&aSelect all"
			set slot 28 of {_selldiamondblocks} to red glass named "&c-1"
			set slot 31 of {_selldiamondblocks} to red glass named "&c-5"
			set slot 34 of {_selldiamondblocks} to red glass named "&cSet to 1"
			set slot 49 of {_selldiamondblocks} to green concrete named "&2Sell"
			close player's inventory
			open {_selldiamondblocks} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_selldiamondblocks} to a new chest inventory with 6 rows with name "&bSell Diamond Blocks"
			set slot 4 of {_selldiamondblocks} to {temporaryamount::player} of diamond block named "&bDiamond Block"
			set slot 19 of {_selldiamondblocks} to green glass named "&a+1"
			set slot 22 of {_selldiamondblocks} to green glass named "&a+5"
			set slot 25 of {_selldiamondblocks} to green glass named "&aSelect all"
			set slot 28 of {_selldiamondblocks} to red glass named "&c-1"
			set slot 31 of {_selldiamondblocks} to red glass named "&c-5"
			set slot 34 of {_selldiamondblocks} to red glass named "&cSet to 1"
			set slot 49 of {_selldiamondblocks} to green concrete named "&2Sell"
			close player's inventory
			open {_selldiamondblocks} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_selldiamondblocks} to a new chest inventory with 6 rows with name "&bSell Diamond Blocks"
			set slot 4 of {_selldiamondblocks} to {temporaryamount::player} of diamond block named "&bDiamond Block"
			set slot 19 of {_selldiamondblocks} to green glass named "&a+1"
			set slot 22 of {_selldiamondblocks} to green glass named "&a+5"
			set slot 25 of {_selldiamondblocks} to green glass named "&aSelect all"
			set slot 28 of {_selldiamondblocks} to red glass named "&c-1"
			set slot 31 of {_selldiamondblocks} to red glass named "&c-5"
			set slot 34 of {_selldiamondblocks} to red glass named "&cSet to 1"
			set slot 49 of {_selldiamondblocks} to green concrete named "&2Sell"
			close player's inventory
			open {_selldiamondblocks} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_selldiamondblocks} to a new chest inventory with 6 rows with name "&bSell Diamond Blocks"
			set slot 4 of {_selldiamondblocks} to {temporaryamount::player} of diamond block named "&bDiamond Block"
			set slot 19 of {_selldiamondblocks} to green glass named "&a+1"
			set slot 22 of {_selldiamondblocks} to green glass named "&a+5"
			set slot 25 of {_selldiamondblocks} to green glass named "&aSelect all"
			set slot 28 of {_selldiamondblocks} to red glass named "&c-1"
			set slot 31 of {_selldiamondblocks} to red glass named "&c-5"
			set slot 34 of {_selldiamondblocks} to red glass named "&cSet to 1"
			set slot 49 of {_selldiamondblocks} to green concrete named "&2Sell"
			close player's inventory
			open {_selldiamondblocks} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {diamondblocksellprice}
			set {itemamount::player} to 0
			set {itemamount::player} to number of diamond blocks in player's inventory
			if {itemamount::player} >= {temporaryamount::player} :
				remove {temporaryamount::player} of diamond block from player's inventory
				if {temporaryamount::player} is more than 1:
					if {payment::player} is more than 1:
						send "&cYou sold &6%{temporaryamount::player}%&c diamond blocks for &6%{payment::player}%&c coins!"
					else:
						send "&cYou sold &6%{temporaryamount::player}%&c diamond blocks for &6%{payment::player}%&c coin!"
				else:
					if {payment::player} is more than 1:
						send "&cYou sold &6%{temporaryamount::player}%&c diamond block for &6%{payment::player}%&c coins!"
					else:
						send "&cYou sold &6%{temporaryamount::player}%&c diamond block for &6%{payment::player}%&c coin!"
				set {_money} to player's balance
				set player's balance to {_money} + {payment::player}
			else:
				send "&cYou selected more items than the ones you have!"
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
			delete {itemamount::player}
	if name of event-inventory is "&bDiamonds":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 11:
			set {_buydiamonds} to a new chest inventory with 6 rows with name "&bBuy Diamonds"
			set {temporaryamount::player} to 1
			set slot 4 of {_buydiamonds} to diamond named "&bDiamonds"
			set slot 19 of {_buydiamonds} to green glass named "&a+1"
			set slot 22 of {_buydiamonds} to green glass named "&a+5"
			set slot 25 of {_buydiamonds} to green glass named "&aSet to 64"
			set slot 28 of {_buydiamonds} to red glass named "&c-1"
			set slot 31 of {_buydiamonds} to red glass named "&c-5"
			set slot 34 of {_buydiamonds} to red glass named "&cSet to 1"
			set slot 49 of {_buydiamonds} to green concrete named "&2Buy"
			close player's inventory
			open {_buydiamonds} to player
		if index of event-slot = 15:
			set {_selldiamonds} to a new chest inventory with 6 rows with name "&bSell Diamonds"
			set {temporaryamount::player} to 1
			set slot 4 of {_selldiamonds} to diamond named "&bDiamonds"
			set slot 19 of {_selldiamonds} to green glass named "&a+1"
			set slot 22 of {_selldiamonds} to green glass named "&a+5"
			set slot 25 of {_selldiamonds} to green glass named "&aSelect all"
			set slot 28 of {_selldiamonds} to red glass named "&c-1"
			set slot 31 of {_selldiamonds} to red glass named "&c-5"
			set slot 34 of {_selldiamonds} to red glass named "&cSet to 1"
			set slot 49 of {_selldiamonds} to green concrete named "&2Sell"
			close player's inventory
			open {_selldiamonds} to player
	if name of event-inventory is "&bBuy Diamonds":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buydiamonds} to a new chest inventory with 6 rows with name "&bBuy Diamonds"
			set slot 4 of {_buydiamonds} to {temporaryamount::player} of diamond named "&bDiamonds"
			set slot 19 of {_buydiamonds} to green glass named "&a+1"
			set slot 22 of {_buydiamonds} to green glass named "&a+5"
			set slot 25 of {_buydiamonds} to green glass named "&aSet to 64"
			set slot 28 of {_buydiamonds} to red glass named "&c-1"
			set slot 31 of {_buydiamonds} to red glass named "&c-5"
			set slot 34 of {_buydiamonds} to red glass named "&cSet to 1"
			set slot 49 of {_buydiamonds} to green concrete named "&2Buy"
			close player's inventory
			open {_buydiamonds} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buydiamonds} to a new chest inventory with 6 rows with name "&bBuy Diamonds"
			set slot 4 of {_buydiamonds} to {temporaryamount::player} of diamond named "&bDiamonds"
			set slot 19 of {_buydiamonds} to green glass named "&a+1"
			set slot 22 of {_buydiamonds} to green glass named "&a+5"
			set slot 25 of {_buydiamonds} to green glass named "&aSet to 64"
			set slot 28 of {_buydiamonds} to red glass named "&c-1"
			set slot 31 of {_buydiamonds} to red glass named "&c-5"
			set slot 34 of {_buydiamonds} to red glass named "&cSet to 1"
			set slot 49 of {_buydiamonds} to green concrete named "&2Buy"
			close player's inventory
			open {_buydiamonds} to player
		if index of event-slot = 25:
			set {temporaryamount::player} to 64
			set {_buydiamonds} to a new chest inventory with 6 rows with name "&bBuy Diamonds"
			set slot 4 of {_buydiamonds} to {temporaryamount::player} of diamond named "&bDiamonds"
			set slot 19 of {_buydiamonds} to green glass named "&a+1"
			set slot 22 of {_buydiamonds} to green glass named "&a+5"
			set slot 25 of {_buydiamonds} to green glass named "&aSet to 64"
			set slot 28 of {_buydiamonds} to red glass named "&c-1"
			set slot 31 of {_buydiamonds} to red glass named "&c-5"
			set slot 34 of {_buydiamonds} to red glass named "&cSet to 1"
			set slot 49 of {_buydiamonds} to green concrete named "&2Buy"
			close player's inventory
			open {_buydiamonds} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buydiamonds} to a new chest inventory with 6 rows with name "&bBuy Diamonds"
			set slot 4 of {_buydiamonds} to {temporaryamount::player} of diamond named "&bDiamonds"
			set slot 19 of {_buydiamonds} to green glass named "&a+1"
			set slot 22 of {_buydiamonds} to green glass named "&a+5"
			set slot 25 of {_buydiamonds} to green glass named "&aSet to 64"
			set slot 28 of {_buydiamonds} to red glass named "&c-1"
			set slot 31 of {_buydiamonds} to red glass named "&c-5"
			set slot 34 of {_buydiamonds} to red glass named "&cSet to 1"
			set slot 49 of {_buydiamonds} to green concrete named "&2Buy"
			close player's inventory
			open {_buydiamonds} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buydiamonds} to a new chest inventory with 6 rows with name "&bBuy Diamonds"
			set slot 4 of {_buydiamonds} to {temporaryamount::player} of diamond named "&bDiamonds"
			set slot 19 of {_buydiamonds} to green glass named "&a+1"
			set slot 22 of {_buydiamonds} to green glass named "&a+5"
			set slot 25 of {_buydiamonds} to green glass named "&aSet to 64"
			set slot 28 of {_buydiamonds} to red glass named "&c-1"
			set slot 31 of {_buydiamonds} to red glass named "&c-5"
			set slot 34 of {_buydiamonds} to red glass named "&cSet to 1"
			set slot 49 of {_buydiamonds} to green concrete named "&2Buy"
			close player's inventory
			open {_buydiamonds} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_buydiamonds} to a new chest inventory with 6 rows with name "&bBuy Diamonds"
			set slot 4 of {_buydiamonds} to {temporaryamount::player} of diamond named "&bDiamonds"
			set slot 19 of {_buydiamonds} to green glass named "&a+1"
			set slot 22 of {_buydiamonds} to green glass named "&a+5"
			set slot 25 of {_buydiamonds} to green glass named "&aSet to 64"
			set slot 28 of {_buydiamonds} to red glass named "&c-1"
			set slot 31 of {_buydiamonds} to red glass named "&c-5"
			set slot 34 of {_buydiamonds} to red glass named "&cSet to 1"
			set slot 49 of {_buydiamonds} to green concrete named "&2Buy"
			close player's inventory
			open {_buydiamonds} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {diamondprice}
			if player's balance >= {payment::player}:
				give {temporaryamount::player} of diamonds to player
				if {temporaryamount::player} is more than 1:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c diamonds for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c diamonds for &6%{payment::player}%&c coin!"
				else:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c diamond for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c diamond for &6%{payment::player}%&c coin!"
				set {_money} to player's balance
				set player's balance to {_money} - {payment::player}
			else:
				send "&cYou don't have enough money, baka!"
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
	if name of event-inventory is "&bSell Diamonds":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_selldiamonds} to a new chest inventory with 6 rows with name "&bSell Diamonds"
			set slot 4 of {_selldiamonds} to {temporaryamount::player} of diamond named "&bDiamonds"
			set slot 19 of {_selldiamonds} to green glass named "&a+1"
			set slot 22 of {_selldiamonds} to green glass named "&a+5"
			set slot 25 of {_selldiamonds} to green glass named "&aSelect all"
			set slot 28 of {_selldiamonds} to red glass named "&c-1"
			set slot 31 of {_selldiamonds} to red glass named "&c-5"
			set slot 34 of {_selldiamonds} to red glass named "&cSet to 1"
			set slot 49 of {_selldiamonds} to green concrete named "&2Sell"
			close player's inventory
			open {_selldiamonds} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_selldiamonds} to a new chest inventory with 6 rows with name "&bSell Diamonds"
			set slot 4 of {_selldiamonds} to {temporaryamount::player} of diamond named "&bDiamonds"
			set slot 19 of {_selldiamonds} to green glass named "&a+1"
			set slot 22 of {_selldiamonds} to green glass named "&a+5"
			set slot 25 of {_selldiamonds} to green glass named "&aSelect all"
			set slot 28 of {_selldiamonds} to red glass named "&c-1"
			set slot 31 of {_selldiamonds} to red glass named "&c-5"
			set slot 34 of {_selldiamonds} to red glass named "&cSet to 1"
			set slot 49 of {_selldiamonds} to green concrete named "&2Sell"
			close player's inventory
			open {_selldiamonds} to player
		if index of event-slot = 25:
			set {itemamount::player} to 0
			set {itemamount::player} to number of diamonds in player's inventory
			set {temporaryamount::player} to {itemamount::player}
			set {_selldiamonds} to a new chest inventory with 6 rows with name "&bSell Diamonds"
			set slot 4 of {_selldiamonds} to {temporaryamount::player} of diamond named "&bDiamonds"
			set slot 19 of {_selldiamonds} to green glass named "&a+1"
			set slot 22 of {_selldiamonds} to green glass named "&a+5"
			set slot 25 of {_selldiamonds} to green glass named "&aSelect all"
			set slot 28 of {_selldiamonds} to red glass named "&c-1"
			set slot 31 of {_selldiamonds} to red glass named "&c-5"
			set slot 34 of {_selldiamonds} to red glass named "&cSet to 1"
			set slot 49 of {_selldiamonds} to green concrete named "&2Sell"
			close player's inventory
			open {_selldiamonds} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_selldiamonds} to a new chest inventory with 6 rows with name "&bSell Diamonds"
			set slot 4 of {_selldiamonds} to {temporaryamount::player} of diamond named "&bDiamonds"
			set slot 19 of {_selldiamonds} to green glass named "&a+1"
			set slot 22 of {_selldiamonds} to green glass named "&a+5"
			set slot 25 of {_selldiamonds} to green glass named "&aSelect all"
			set slot 28 of {_selldiamonds} to red glass named "&c-1"
			set slot 31 of {_selldiamonds} to red glass named "&c-5"
			set slot 34 of {_selldiamonds} to red glass named "&cSet to 1"
			set slot 49 of {_selldiamonds} to green concrete named "&2Sell"
			close player's inventory
			open {_selldiamonds} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_selldiamonds} to a new chest inventory with 6 rows with name "&bSell Diamonds"
			set slot 4 of {_selldiamonds} to {temporaryamount::player} of diamond named "&bDiamonds"
			set slot 19 of {_selldiamonds} to green glass named "&a+1"
			set slot 22 of {_selldiamonds} to green glass named "&a+5"
			set slot 25 of {_selldiamonds} to green glass named "&aSelect all"
			set slot 28 of {_selldiamonds} to red glass named "&c-1"
			set slot 31 of {_selldiamonds} to red glass named "&c-5"
			set slot 34 of {_selldiamonds} to red glass named "&cSet to 1"
			set slot 49 of {_selldiamonds} to green concrete named "&2Sell"
			close player's inventory
			open {_selldiamonds} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_selldiamonds} to a new chest inventory with 6 rows with name "&bSell Diamonds"
			set slot 4 of {_selldiamonds} to {temporaryamount::player} of diamond named "&bDiamonds"
			set slot 19 of {_selldiamonds} to green glass named "&a+1"
			set slot 22 of {_selldiamonds} to green glass named "&a+5"
			set slot 25 of {_selldiamonds} to green glass named "&aSelect all"
			set slot 28 of {_selldiamonds} to red glass named "&c-1"
			set slot 31 of {_selldiamonds} to red glass named "&c-5"
			set slot 34 of {_selldiamonds} to red glass named "&cSet to 1"
			set slot 49 of {_selldiamonds} to green concrete named "&2Sell"
			close player's inventory
			open {_selldiamonds} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {diamondsellprice}
			set {itemamount::player} to 0
			set {itemamount::player} to number of diamonds in player's inventory
			if {itemamount::player} >= {temporaryamount::player} :
				remove {temporaryamount::player} of diamond from player's inventory
				if {temporaryamount::player} is more than 1:
					if {payment::player} is more than 1:
						send "&cYou sold &6%{temporaryamount::player}%&c diamonds for &6%{payment::player}%&c coins!"
					else:
						send "&cYou sold &6%{temporaryamount::player}%&c diamonds for &6%{payment::player}%&c coin!"
				else:
					if {payment::player} is more than 1:
						send "&cYou sold &6%{temporaryamount::player}%&c diamond for &6%{payment::player}%&c coins!"
					else:
						send "&cYou sold &6%{temporaryamount::player}%&c diamond for &6%{payment::player}%&c coin!"
				set {_money} to player's balance
				set player's balance to {_money} + {payment::player}
			else:
				send "&cYou selected more items than the ones you have!"
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
			delete {itemamount::player}
	if name of event-inventory is "&bEmeralds":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 11:
			set {_buyemeralds} to a new chest inventory with 6 rows with name "&bBuy Emeralds"
			set {temporaryamount::player} to 1
			set slot 4 of {_buyemeralds} to emerald named "&bEmeralds"
			set slot 19 of {_buyemeralds} to green glass named "&a+1"
			set slot 22 of {_buyemeralds} to green glass named "&a+5"
			set slot 25 of {_buyemeralds} to green glass named "&aSet to 64"
			set slot 28 of {_buyemeralds} to red glass named "&c-1"
			set slot 31 of {_buyemeralds} to red glass named "&c-5"
			set slot 34 of {_buyemeralds} to red glass named "&cSet to 1"
			set slot 49 of {_buyemeralds} to green concrete named "&2Buy"
			close player's inventory
			open {_buyemeralds} to player
		if index of event-slot = 15:
			set {_sellemeralds} to a new chest inventory with 6 rows with name "&bSell Emeralds"
			set {temporaryamount::player} to 1
			set slot 4 of {_sellemeralds} to emerald named "&bEmeralds"
			set slot 19 of {_sellemeralds} to green glass named "&a+1"
			set slot 22 of {_sellemeralds} to green glass named "&a+5"
			set slot 25 of {_sellemeralds} to green glass named "&aSelect all"
			set slot 28 of {_sellemeralds} to red glass named "&c-1"
			set slot 31 of {_sellemeralds} to red glass named "&c-5"
			set slot 34 of {_sellemeralds} to red glass named "&cSet to 1"
			set slot 49 of {_sellemeralds} to green concrete named "&2Sell"
			close player's inventory
			open {_sellemeralds} to player
	if name of event-inventory is "&bBuy Emeralds":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buyemeralds} to a new chest inventory with 6 rows with name "&bBuy Emeralds"
			set slot 4 of {_buyemeralds} to {temporaryamount::player} of emerald named "&bEmeralds"
			set slot 19 of {_buyemeralds} to green glass named "&a+1"
			set slot 22 of {_buyemeralds} to green glass named "&a+5"
			set slot 25 of {_buyemeralds} to green glass named "&aSet to 64"
			set slot 28 of {_buyemeralds} to red glass named "&c-1"
			set slot 31 of {_buyemeralds} to red glass named "&c-5"
			set slot 34 of {_buyemeralds} to red glass named "&cSet to 1"
			set slot 49 of {_buyemeralds} to green concrete named "&2Buy"
			close player's inventory
			open {_buyemeralds} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buyemeralds} to a new chest inventory with 6 rows with name "&bBuy Emeralds"
			set slot 4 of {_buyemeralds} to {temporaryamount::player} of emerald named "&bEmeralds"
			set slot 19 of {_buyemeralds} to green glass named "&a+1"
			set slot 22 of {_buyemeralds} to green glass named "&a+5"
			set slot 25 of {_buyemeralds} to green glass named "&aSet to 64"
			set slot 28 of {_buyemeralds} to red glass named "&c-1"
			set slot 31 of {_buyemeralds} to red glass named "&c-5"
			set slot 34 of {_buyemeralds} to red glass named "&cSet to 1"
			set slot 49 of {_buyemeralds} to green concrete named "&2Buy"
			close player's inventory
			open {_buyemeralds} to player
		if index of event-slot = 25:
			set {temporaryamount::player} to 64
			set {_buyemeralds} to a new chest inventory with 6 rows with name "&bBuy Emeralds"
			set slot 4 of {_buyemeralds} to {temporaryamount::player} of emerald named "&bEmeralds"
			set slot 19 of {_buyemeralds} to green glass named "&a+1"
			set slot 22 of {_buyemeralds} to green glass named "&a+5"
			set slot 25 of {_buyemeralds} to green glass named "&aSet to 64"
			set slot 28 of {_buyemeralds} to red glass named "&c-1"
			set slot 31 of {_buyemeralds} to red glass named "&c-5"
			set slot 34 of {_buyemeralds} to red glass named "&cSet to 1"
			set slot 49 of {_buyemeralds} to green concrete named "&2Buy"
			close player's inventory
			open {_buyemeralds} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buyemeralds} to a new chest inventory with 6 rows with name "&bBuy Emeralds"
			set slot 4 of {_buyemeralds} to {temporaryamount::player} of emerald named "&bEmeralds"
			set slot 19 of {_buyemeralds} to green glass named "&a+1"
			set slot 22 of {_buyemeralds} to green glass named "&a+5"
			set slot 25 of {_buyemeralds} to green glass named "&aSet to 64"
			set slot 28 of {_buyemeralds} to red glass named "&c-1"
			set slot 31 of {_buyemeralds} to red glass named "&c-5"
			set slot 34 of {_buyemeralds} to red glass named "&cSet to 1"
			set slot 49 of {_buyemeralds} to green concrete named "&2Buy"
			close player's inventory
			open {_buyemeralds} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buyemeralds} to a new chest inventory with 6 rows with name "&bBuy Emeralds"
			set slot 4 of {_buyemeralds} to {temporaryamount::player} of emerald named "&bEmeralds"
			set slot 19 of {_buyemeralds} to green glass named "&a+1"
			set slot 22 of {_buyemeralds} to green glass named "&a+5"
			set slot 25 of {_buyemeralds} to green glass named "&aSet to 64"
			set slot 28 of {_buyemeralds} to red glass named "&c-1"
			set slot 31 of {_buyemeralds} to red glass named "&c-5"
			set slot 34 of {_buyemeralds} to red glass named "&cSet to 1"
			set slot 49 of {_buyemeralds} to green concrete named "&2Buy"
			close player's inventory
			open {_buyemeralds} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_buyemeralds} to a new chest inventory with 6 rows with name "&bBuy Emeralds"
			set slot 4 of {_buyemeralds} to {temporaryamount::player} of emerald named "&bEmeralds"
			set slot 19 of {_buyemeralds} to green glass named "&a+1"
			set slot 22 of {_buyemeralds} to green glass named "&a+5"
			set slot 25 of {_buyemeralds} to green glass named "&aSet to 64"
			set slot 28 of {_buyemeralds} to red glass named "&c-1"
			set slot 31 of {_buyemeralds} to red glass named "&c-5"
			set slot 34 of {_buyemeralds} to red glass named "&cSet to 1"
			set slot 49 of {_buyemeralds} to green concrete named "&2Buy"
			close player's inventory
			open {_buyemeralds} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {emeraldprice}
			if player's balance >= {payment::player}:
				give {temporaryamount::player} of emeralds to player
				if {temporaryamount::player} is more than 1:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c emeralds for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c emeralds for &6%{payment::player}%&c coin!"
				else:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c emerald for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c emerald for &6%{payment::player}%&c coin!"
				set {_money} to player's balance
				set player's balance to {_money} - {payment::player}
			else:
				send "&cYou don't have enough money, baka!"
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
	if name of event-inventory is "&bSell Emeralds":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_sellemeralds} to a new chest inventory with 6 rows with name "&bSell Emeralds"
			set slot 4 of {_sellemeralds} to {temporaryamount::player} of emerald named "&bEmeralds"
			set slot 19 of {_sellemeralds} to green glass named "&a+1"
			set slot 22 of {_sellemeralds} to green glass named "&a+5"
			set slot 25 of {_sellemeralds} to green glass named "&aSelect all"
			set slot 28 of {_sellemeralds} to red glass named "&c-1"
			set slot 31 of {_sellemeralds} to red glass named "&c-5"
			set slot 34 of {_sellemeralds} to red glass named "&cSet to 1"
			set slot 49 of {_sellemeralds} to green concrete named "&2Sell"
			close player's inventory
			open {_sellemeralds} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_sellemeralds} to a new chest inventory with 6 rows with name "&bSell Emeralds"
			set slot 4 of {_sellemeralds} to {temporaryamount::player} of emerald named "&bEmeralds"
			set slot 19 of {_sellemeralds} to green glass named "&a+1"
			set slot 22 of {_sellemeralds} to green glass named "&a+5"
			set slot 25 of {_sellemeralds} to green glass named "&aSelect all"
			set slot 28 of {_sellemeralds} to red glass named "&c-1"
			set slot 31 of {_sellemeralds} to red glass named "&c-5"
			set slot 34 of {_sellemeralds} to red glass named "&cSet to 1"
			set slot 49 of {_sellemeralds} to green concrete named "&2Sell"
			close player's inventory
			open {_sellemeralds} to player
		if index of event-slot = 25:
			set {itemamount::player} to 0
			set {itemamount::player} to number of emeralds in player's inventory
			set {temporaryamount::player} to {itemamount::player}
			set {_sellemeralds} to a new chest inventory with 6 rows with name "&bSell Emeralds"
			set slot 4 of {_sellemeralds} to {temporaryamount::player} of emerald named "&bEmeralds"
			set slot 19 of {_sellemeralds} to green glass named "&a+1"
			set slot 22 of {_sellemeralds} to green glass named "&a+5"
			set slot 25 of {_sellemeralds} to green glass named "&aSelect all"
			set slot 28 of {_sellemeralds} to red glass named "&c-1"
			set slot 31 of {_sellemeralds} to red glass named "&c-5"
			set slot 34 of {_sellemeralds} to red glass named "&cSet to 1"
			set slot 49 of {_sellemeralds} to green concrete named "&2Sell"
			close player's inventory
			open {_sellemeralds} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_sellemeralds} to a new chest inventory with 6 rows with name "&bSell Emeralds"
			set slot 4 of {_sellemeralds} to {temporaryamount::player} of emerald named "&bEmeralds"
			set slot 19 of {_sellemeralds} to green glass named "&a+1"
			set slot 22 of {_sellemeralds} to green glass named "&a+5"
			set slot 25 of {_sellemeralds} to green glass named "&aSelect all"
			set slot 28 of {_sellemeralds} to red glass named "&c-1"
			set slot 31 of {_sellemeralds} to red glass named "&c-5"
			set slot 34 of {_sellemeralds} to red glass named "&cSet to 1"
			set slot 49 of {_sellemeralds} to green concrete named "&2Sell"
			close player's inventory
			open {_sellemeralds} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_sellemeralds} to a new chest inventory with 6 rows with name "&bSell Emeralds"
			set slot 4 of {_sellemeralds} to {temporaryamount::player} of emerald named "&bEmeralds"
			set slot 19 of {_sellemeralds} to green glass named "&a+1"
			set slot 22 of {_sellemeralds} to green glass named "&a+5"
			set slot 25 of {_sellemeralds} to green glass named "&aSelect all"
			set slot 28 of {_sellemeralds} to red glass named "&c-1"
			set slot 31 of {_sellemeralds} to red glass named "&c-5"
			set slot 34 of {_sellemeralds} to red glass named "&cSet to 1"
			set slot 49 of {_sellemeralds} to green concrete named "&2Sell"
			close player's inventory
			open {_sellemeralds} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_sellemeralds} to a new chest inventory with 6 rows with name "&bSell Emeralds"
			set slot 4 of {_sellemeralds} to {temporaryamount::player} of emerald named "&bEmeralds"
			set slot 19 of {_sellemeralds} to green glass named "&a+1"
			set slot 22 of {_sellemeralds} to green glass named "&a+5"
			set slot 25 of {_sellemeralds} to green glass named "&aSelect all"
			set slot 28 of {_sellemeralds} to red glass named "&c-1"
			set slot 31 of {_sellemeralds} to red glass named "&c-5"
			set slot 34 of {_sellemeralds} to red glass named "&cSet to 1"
			set slot 49 of {_sellemeralds} to green concrete named "&2Sell"
			close player's inventory
			open {_sellemeralds} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {emeraldsellprice}
			set {itemamount::player} to 0
			set {itemamount::player} to number of emeralds in player's inventory
			if {itemamount::player} >= {temporaryamount::player} :
				remove {temporaryamount::player} of emerald from player's inventory
				if {temporaryamount::player} is more than 1:
					if {payment::player} is more than 1:
						send "&cYou sold &6%{temporaryamount::player}%&c emeralds for &6%{payment::player}%&c coins!"
					else:
						send "&cYou sold &6%{temporaryamount::player}%&c emeralds for &6%{payment::player}%&c coin!"
				else:
					if {payment::player} is more than 1:
						send "&cYou sold &6%{temporaryamount::player}%&c emerald for &6%{payment::player}%&c coins!"
					else:
						send "&cYou sold &6%{temporaryamount::player}%&c emerald for &6%{payment::player}%&c coin!"
				set {_money} to player's balance
				set player's balance to {_money} + {payment::player}
			else:
				send "&cYou selected more items than the ones you have!"
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
			delete {itemamount::player}
	if name of event-inventory is "&l<##8700fb>G<##a600fc>E<##c500fe>A<##e400ff>R":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 9:
			set {_buyorsellrespawnanchors} to a new chest inventory with 3 rows with name "&3Respawn Anchors"
			set slot 4 of {_buyorsellrespawnanchors} to respawn anchor named "&3Respawn Anchors" with lore {_respawnanchorlore::*}
			set slot 11 of {_buyorsellrespawnanchors} to green concrete named "&aBuy"
			set slot 15 of {_buyorsellrespawnanchors} to red concrete named "&cSell"
			set slot 22 of {_buyorsellrespawnanchors} to barrier named "&cBack"
			close player's inventory
			open {_buyorsellrespawnanchors} to player
		if index of event-slot = 11:
			set {_buyorsellglowstone} to a new chest inventory with 3 rows with name "&3Glowstone Blocks"
			set slot 4 of {_buyorsellglowstone} to glowstone named "&3Glowstone Blocks" with lore {_glowstoneblocklore::*}
			set slot 11 of {_buyorsellglowstone} to green concrete named "&aBuy"
			set slot 15 of {_buyorsellglowstone} to red concrete named "&cSell"
			set slot 22 of {_buyorsellglowstone} to barrier named "&cBack"
			close player's inventory
			open {_buyorsellglowstone} to player
		if index of event-slot = 13:
			set {_buyorsellobsidian} to a new chest inventory with 3 rows with name "&3Obsidian"
			set slot 4 of {_buyorsellobsidian} to obsidian named "&3Obsidian" with lore {_obsidianlore::*}
			set slot 11 of {_buyorsellobsidian} to green concrete named "&aBuy"
			set slot 15 of {_buyorsellobsidian} to red concrete named "&cSell"
			set slot 22 of {_buyorsellobsidian} to barrier named "&cBack"
			close player's inventory
			open {_buyorsellobsidian} to player
		if index of event-slot = 15:
			set {_buyorsellendercrystal} to a new chest inventory with 3 rows with name "&3Ender Crystals"
			set slot 4 of {_buyorsellendercrystal} to ender crystal named "&3Ender Crystals" with lore {_endercrystallore::*}
			set slot 11 of {_buyorsellendercrystal} to green concrete named "&aBuy"
			set slot 15 of {_buyorsellendercrystal} to red concrete named "&cSell"
			set slot 22 of {_buyorsellendercrystal} to barrier named "&cBack"
			close player's inventory
			open {_buyorsellendercrystal} to player
		if index of event-slot = 17:
			set {_buyorselltotems} to a new chest inventory with 3 rows with name "&3Totems Of Undying"
			set slot 4 of {_buyorselltotems} to totem of undying named "&3Totems Of Undying" with lore {_totemlore::*}
			set slot 11 of {_buyorselltotems} to green concrete named "&aBuy"
			set slot 15 of {_buyorselltotems} to red concrete named "&cSell"
			set slot 22 of {_buyorselltotems} to barrier named "&cBack"
			close player's inventory
			open {_buyorselltotems} to player
		if index of event-slot = 22:
			set {_buyorsellexpbottle} to a new chest inventory with 3 rows with name "&3Experience Bottles"
			set slot 4 of {_buyorsellexpbottle} to experience bottle named "&3Experience Bottles" with lore {_expbottlelore::*}
			set slot 11 of {_buyorsellexpbottle} to green concrete named "&aBuy"
			set slot 15 of {_buyorsellexpbottle} to red concrete named "&cSell"
			set slot 22 of {_buyorsellexpbottle} to barrier named "&cBack"
			close player's inventory
			open {_buyorsellexpbottle} to player
	if name of event-inventory is "&3Respawn Anchors":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 11:
			set {_buyrespawnanchors} to a new chest inventory with 6 rows with name "&3Buy Respawn Anchors"
			set {temporaryamount::player} to 1
			set slot 4 of {_buyrespawnanchors} to respawn anchor named "&3Respawn Anchor"
			set slot 19 of {_buyrespawnanchors} to green glass named "&a+1"
			set slot 22 of {_buyrespawnanchors} to green glass named "&a+5"
			set slot 25 of {_buyrespawnanchors} to green glass named "&aSet to 64"
			set slot 28 of {_buyrespawnanchors} to red glass named "&c-1"
			set slot 31 of {_buyrespawnanchors} to red glass named "&c-5"
			set slot 34 of {_buyrespawnanchors} to red glass named "&cSet to 1"
			set slot 49 of {_buyrespawnanchors} to green concrete named "&2Buy"
			close player's inventory
			open {_buyrespawnanchors} to player
		if index of event-slot = 15:
			set {_sellrespawnanchors} to a new chest inventory with 6 rows with name "&3Sell Respawn Anchors"
			set {temporaryamount::player} to 1
			set slot 4 of {_sellrespawnanchors} to respawn anchor named "&3Respawn Anchor"
			set slot 19 of {_sellrespawnanchors} to green glass named "&a+1"
			set slot 22 of {_sellrespawnanchors} to green glass named "&a+5"
			set slot 25 of {_sellrespawnanchors} to green glass named "&aSelect all"
			set slot 28 of {_sellrespawnanchors} to red glass named "&c-1"
			set slot 31 of {_sellrespawnanchors} to red glass named "&c-5"
			set slot 34 of {_sellrespawnanchors} to red glass named "&cSet to 1"
			set slot 49 of {_sellrespawnanchors} to green concrete named "&2Sell"
			close player's inventory
			open {_sellrespawnanchors} to player
	if name of event-inventory is "&3Buy Respawn Anchors":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buyrespawnanchors} to a new chest inventory with 6 rows with name "&3Buy Respawn Anchors"
			set slot 4 of {_buyrespawnanchors} to {temporaryamount::player} of respawn anchor named "&3Respawn Anchor"
			set slot 19 of {_buyrespawnanchors} to green glass named "&a+1"
			set slot 22 of {_buyrespawnanchors} to green glass named "&a+5"
			set slot 25 of {_buyrespawnanchors} to green glass named "&aSet to 64"
			set slot 28 of {_buyrespawnanchors} to red glass named "&c-1"
			set slot 31 of {_buyrespawnanchors} to red glass named "&c-5"
			set slot 34 of {_buyrespawnanchors} to red glass named "&cSet to 1"
			set slot 49 of {_buyrespawnanchors} to green concrete named "&2Buy"
			close player's inventory
			open {_buyrespawnanchors} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buyrespawnanchors} to a new chest inventory with 6 rows with name "&3Buy Respawn Anchors"
			set slot 4 of {_buyrespawnanchors} to {temporaryamount::player} of respawn anchor named "&3Respawn Anchor"
			set slot 19 of {_buyrespawnanchors} to green glass named "&a+1"
			set slot 22 of {_buyrespawnanchors} to green glass named "&a+5"
			set slot 25 of {_buyrespawnanchors} to green glass named "&aSet to 64"
			set slot 28 of {_buyrespawnanchors} to red glass named "&c-1"
			set slot 31 of {_buyrespawnanchors} to red glass named "&c-5"
			set slot 34 of {_buyrespawnanchors} to red glass named "&cSet to 1"
			set slot 49 of {_buyrespawnanchors} to green concrete named "&2Buy"
			close player's inventory
			open {_buyrespawnanchors} to player
		if index of event-slot = 25:
			set {temporaryamount::player} to 64
			set {_buyrespawnanchors} to a new chest inventory with 6 rows with name "&3Buy Respawn Anchors"
			set slot 4 of {_buyrespawnanchors} to {temporaryamount::player} of respawn anchor named "&3Respawn Anchor"
			set slot 19 of {_buyrespawnanchors} to green glass named "&a+1"
			set slot 22 of {_buyrespawnanchors} to green glass named "&a+5"
			set slot 25 of {_buyrespawnanchors} to green glass named "&aSet to 64"
			set slot 28 of {_buyrespawnanchors} to red glass named "&c-1"
			set slot 31 of {_buyrespawnanchors} to red glass named "&c-5"
			set slot 34 of {_buyrespawnanchors} to red glass named "&cSet to 1"
			set slot 49 of {_buyrespawnanchors} to green concrete named "&2Buy"
			close player's inventory
			open {_buyrespawnanchors} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buyrespawnanchors} to a new chest inventory with 6 rows with name "&3Buy Respawn Anchors"
			set slot 4 of {_buyrespawnanchors} to {temporaryamount::player} of respawn anchor named "&3Respawn Anchor"
			set slot 19 of {_buyrespawnanchors} to green glass named "&a+1"
			set slot 22 of {_buyrespawnanchors} to green glass named "&a+5"
			set slot 25 of {_buyrespawnanchors} to green glass named "&aSet to 64"
			set slot 28 of {_buyrespawnanchors} to red glass named "&c-1"
			set slot 31 of {_buyrespawnanchors} to red glass named "&c-5"
			set slot 34 of {_buyrespawnanchors} to red glass named "&cSet to 1"
			set slot 49 of {_buyrespawnanchors} to green concrete named "&2Buy"
			close player's inventory
			open {_buyrespawnanchors} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buyrespawnanchors} to a new chest inventory with 6 rows with name "&3Buy Respawn Anchors"
			set slot 4 of {_buyrespawnanchors} to {temporaryamount::player} of respawn anchor named "&3Respawn Anchor"
			set slot 19 of {_buyrespawnanchors} to green glass named "&a+1"
			set slot 22 of {_buyrespawnanchors} to green glass named "&a+5"
			set slot 25 of {_buyrespawnanchors} to green glass named "&aSet to 64"
			set slot 28 of {_buyrespawnanchors} to red glass named "&c-1"
			set slot 31 of {_buyrespawnanchors} to red glass named "&c-5"
			set slot 34 of {_buyrespawnanchors} to red glass named "&cSet to 1"
			set slot 49 of {_buyrespawnanchors} to green concrete named "&2Buy"
			close player's inventory
			open {_buyrespawnanchors} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_buyrespawnanchors} to a new chest inventory with 6 rows with name "&3Buy Respawn Anchors"
			set slot 4 of {_buyrespawnanchors} to {temporaryamount::player} of respawn anchor named "&3Respawn Anchor"
			set slot 19 of {_buyrespawnanchors} to green glass named "&a+1"
			set slot 22 of {_buyrespawnanchors} to green glass named "&a+5"
			set slot 25 of {_buyrespawnanchors} to green glass named "&aSet to 64"
			set slot 28 of {_buyrespawnanchors} to red glass named "&c-1"
			set slot 31 of {_buyrespawnanchors} to red glass named "&c-5"
			set slot 34 of {_buyrespawnanchors} to red glass named "&cSet to 1"
			set slot 49 of {_buyrespawnanchors} to green concrete named "&2Buy"
			close player's inventory
			open {_buyrespawnanchors} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {respawnanchorprice}
			if player's balance >= {payment::player}:
				give {temporaryamount::player} of respawn anchors to player
				if {temporaryamount::player} is more than 1:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c respawn anchors for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c respawn anchors for &6%{payment::player}%&c coin!"
				else:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c respawn anchor for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c respawn anchor for &6%{payment::player}%&c coin!"
				set {_money} to player's balance
				set player's balance to {_money} - {payment::player}
			else:
				send "&cYou don't have enough money, baka!"
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
	if name of event-inventory is "&3Sell Respawn Anchors":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_sellrespawnanchors} to a new chest inventory with 6 rows with name "&3Sell Respawn Anchors"
			set slot 4 of {_sellrespawnanchors} to {temporaryamount::player} of respawn anchor named "&3Respawn Anchor"
			set slot 19 of {_sellrespawnanchors} to green glass named "&a+1"
			set slot 22 of {_sellrespawnanchors} to green glass named "&a+5"
			set slot 25 of {_sellrespawnanchors} to green glass named "&aSelect all"
			set slot 28 of {_sellrespawnanchors} to red glass named "&c-1"
			set slot 31 of {_sellrespawnanchors} to red glass named "&c-5"
			set slot 34 of {_sellrespawnanchors} to red glass named "&cSet to 1"
			set slot 49 of {_sellrespawnanchors} to green concrete named "&2Sell"
			close player's inventory
			open {_sellrespawnanchors} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_sellrespawnanchors} to a new chest inventory with 6 rows with name "&3Sell Respawn Anchors"
			set slot 4 of {_sellrespawnanchors} to {temporaryamount::player} of respawn anchor named "&3Respawn Anchor"
			set slot 19 of {_sellrespawnanchors} to green glass named "&a+1"
			set slot 22 of {_sellrespawnanchors} to green glass named "&a+5"
			set slot 25 of {_sellrespawnanchors} to green glass named "&aSelect all"
			set slot 28 of {_sellrespawnanchors} to red glass named "&c-1"
			set slot 31 of {_sellrespawnanchors} to red glass named "&c-5"
			set slot 34 of {_sellrespawnanchors} to red glass named "&cSet to 1"
			set slot 49 of {_sellrespawnanchors} to green concrete named "&2Sell"
			close player's inventory
			open {_sellrespawnanchors} to player
		if index of event-slot = 25:
			set {itemamount::player} to 0
			set {itemamount::player} to number of respawn anchors in player's inventory
			set {temporaryamount::player} to {itemamount::player}
			set {_sellrespawnanchors} to a new chest inventory with 6 rows with name "&3Sell Respawn Anchors"
			set slot 4 of {_sellrespawnanchors} to {temporaryamount::player} of respawn anchor named "&3Respawn Anchor"
			set slot 19 of {_sellrespawnanchors} to green glass named "&a+1"
			set slot 22 of {_sellrespawnanchors} to green glass named "&a+5"
			set slot 25 of {_sellrespawnanchors} to green glass named "&aSelect all"
			set slot 28 of {_sellrespawnanchors} to red glass named "&c-1"
			set slot 31 of {_sellrespawnanchors} to red glass named "&c-5"
			set slot 34 of {_sellrespawnanchors} to red glass named "&cSet to 1"
			set slot 49 of {_sellrespawnanchors} to green concrete named "&2Sell"
			close player's inventory
			open {_sellrespawnanchors} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_sellrespawnanchors} to a new chest inventory with 6 rows with name "&3Sell Respawn Anchors"
			set slot 4 of {_sellrespawnanchors} to {temporaryamount::player} of respawn anchor named "&3Respawn Anchor"
			set slot 19 of {_sellrespawnanchors} to green glass named "&a+1"
			set slot 22 of {_sellrespawnanchors} to green glass named "&a+5"
			set slot 25 of {_sellrespawnanchors} to green glass named "&aSelect all"
			set slot 28 of {_sellrespawnanchors} to red glass named "&c-1"
			set slot 31 of {_sellrespawnanchors} to red glass named "&c-5"
			set slot 34 of {_sellrespawnanchors} to red glass named "&cSet to 1"
			set slot 49 of {_sellrespawnanchors} to green concrete named "&2Sell"
			close player's inventory
			open {_sellrespawnanchors} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_sellrespawnanchors} to a new chest inventory with 6 rows with name "&3Sell Respawn Anchors"
			set slot 4 of {_sellrespawnanchors} to {temporaryamount::player} of respawn anchor named "&3Respawn Anchor"
			set slot 19 of {_sellrespawnanchors} to green glass named "&a+1"
			set slot 22 of {_sellrespawnanchors} to green glass named "&a+5"
			set slot 25 of {_sellrespawnanchors} to green glass named "&aSelect all"
			set slot 28 of {_sellrespawnanchors} to red glass named "&c-1"
			set slot 31 of {_sellrespawnanchors} to red glass named "&c-5"
			set slot 34 of {_sellrespawnanchors} to red glass named "&cSet to 1"
			set slot 49 of {_sellrespawnanchors} to green concrete named "&2Sell"
			close player's inventory
			open {_sellrespawnanchors} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_sellrespawnanchors} to a new chest inventory with 6 rows with name "&3Sell Respawn Anchors"
			set slot 4 of {_sellrespawnanchors} to {temporaryamount::player} of respawn anchor named "&3Respawn Anchor"
			set slot 19 of {_sellrespawnanchors} to green glass named "&a+1"
			set slot 22 of {_sellrespawnanchors} to green glass named "&a+5"
			set slot 25 of {_sellrespawnanchors} to green glass named "&aSelect all"
			set slot 28 of {_sellrespawnanchors} to red glass named "&c-1"
			set slot 31 of {_sellrespawnanchors} to red glass named "&c-5"
			set slot 34 of {_sellrespawnanchors} to red glass named "&cSet to 1"
			set slot 49 of {_sellrespawnanchors} to green concrete named "&2Sell"
			close player's inventory
			open {_sellrespawnanchors} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {respawnanchorsellprice}
			set {itemamount::player} to 0
			set {itemamount::player} to number of respawn anchors in player's inventory
			if {itemamount::player} >= {temporaryamount::player} :
				remove {temporaryamount::player} of respawn anchor from player's inventory
				if {temporaryamount::player} is more than 1:
					if {payment::player} is more than 1:
						send "&cYou sold &6%{temporaryamount::player}%&c respawn anchors for &6%{payment::player}%&c coins!"
					else:
						send "&cYou sold &6%{temporaryamount::player}%&c respawn anchors for &6%{payment::player}%&c coin!"
				else:
					if {payment::player} is more than 1:
						send "&cYou sold &6%{temporaryamount::player}%&c respawn anchor for &6%{payment::player}%&c coins!"
					else:
						send "&cYou sold &6%{temporaryamount::player}%&c respawn anchor for &6%{payment::player}%&c coin!"
				set {_money} to player's balance
				set player's balance to {_money} + {payment::player}
			else:
				send "&cYou selected more items than the ones you have!"
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
			delete {itemamount::player}
	if name of event-inventory is "&3Glowstone Blocks":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 11:
			set {_buyglowstoneblocks} to a new chest inventory with 6 rows with name "&3Buy Glowstone Blocks"
			set {temporaryamount::player} to 1
			set slot 4 of {_buyglowstoneblocks} to glowstone block named "&3Glowstone Block"
			set slot 19 of {_buyglowstoneblocks} to green glass named "&a+1"
			set slot 22 of {_buyglowstoneblocks} to green glass named "&a+5"
			set slot 25 of {_buyglowstoneblocks} to green glass named "&aSet to 64"
			set slot 28 of {_buyglowstoneblocks} to red glass named "&c-1"
			set slot 31 of {_buyglowstoneblocks} to red glass named "&c-5"
			set slot 34 of {_buyglowstoneblocks} to red glass named "&cSet to 1"
			set slot 49 of {_buyglowstoneblocks} to green concrete named "&2Buy"
			close player's inventory
			open {_buyglowstoneblocks} to player
		if index of event-slot = 15:
			set {_sellglowstoneblocks} to a new chest inventory with 6 rows with name "&3Sell Glowstone Blocks"
			set {temporaryamount::player} to 1
			set slot 4 of {_sellglowstoneblocks} to glowstone block named "&3Glowstone Block"
			set slot 19 of {_sellglowstoneblocks} to green glass named "&a+1"
			set slot 22 of {_sellglowstoneblocks} to green glass named "&a+5"
			set slot 25 of {_sellglowstoneblocks} to green glass named "&aSelect all"
			set slot 28 of {_sellglowstoneblocks} to red glass named "&c-1"
			set slot 31 of {_sellglowstoneblocks} to red glass named "&c-5"
			set slot 34 of {_sellglowstoneblocks} to red glass named "&cSet to 1"
			set slot 49 of {_sellglowstoneblocks} to green concrete named "&2Sell"
			close player's inventory
			open {_sellglowstoneblocks} to player
	if name of event-inventory is "&3Buy Glowstone Blocks":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buyglowstoneblocks} to a new chest inventory with 6 rows with name "&3Buy Glowstone Blocks"
			set slot 4 of {_buyglowstoneblocks} to {temporaryamount::player} of glowstone block named "&3Glowstone Block"
			set slot 19 of {_buyglowstoneblocks} to green glass named "&a+1"
			set slot 22 of {_buyglowstoneblocks} to green glass named "&a+5"
			set slot 25 of {_buyglowstoneblocks} to green glass named "&aSet to 64"
			set slot 28 of {_buyglowstoneblocks} to red glass named "&c-1"
			set slot 31 of {_buyglowstoneblocks} to red glass named "&c-5"
			set slot 34 of {_buyglowstoneblocks} to red glass named "&cSet to 1"
			set slot 49 of {_buyglowstoneblocks} to green concrete named "&2Buy"
			close player's inventory
			open {_buyglowstoneblocks} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buyglowstoneblocks} to a new chest inventory with 6 rows with name "&3Buy Glowstone Blocks"
			set slot 4 of {_buyglowstoneblocks} to {temporaryamount::player} of glowstone block named "&3Glowstone Block"
			set slot 19 of {_buyglowstoneblocks} to green glass named "&a+1"
			set slot 22 of {_buyglowstoneblocks} to green glass named "&a+5"
			set slot 25 of {_buyglowstoneblocks} to green glass named "&aSet to 64"
			set slot 28 of {_buyglowstoneblocks} to red glass named "&c-1"
			set slot 31 of {_buyglowstoneblocks} to red glass named "&c-5"
			set slot 34 of {_buyglowstoneblocks} to red glass named "&cSet to 1"
			set slot 49 of {_buyglowstoneblocks} to green concrete named "&2Buy"
			close player's inventory
			open {_buyglowstoneblocks} to player
		if index of event-slot = 25:
			set {temporaryamount::player} to 64
			set {_buyglowstoneblocks} to a new chest inventory with 6 rows with name "&3Buy Glowstone Blocks"
			set slot 4 of {_buyglowstoneblocks} to {temporaryamount::player} of glowstone block named "&3Glowstone Block"
			set slot 19 of {_buyglowstoneblocks} to green glass named "&a+1"
			set slot 22 of {_buyglowstoneblocks} to green glass named "&a+5"
			set slot 25 of {_buyglowstoneblocks} to green glass named "&aSet to 64"
			set slot 28 of {_buyglowstoneblocks} to red glass named "&c-1"
			set slot 31 of {_buyglowstoneblocks} to red glass named "&c-5"
			set slot 34 of {_buyglowstoneblocks} to red glass named "&cSet to 1"
			set slot 49 of {_buyglowstoneblocks} to green concrete named "&2Buy"
			close player's inventory
			open {_buyglowstoneblocks} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buyglowstoneblocks} to a new chest inventory with 6 rows with name "&3Buy Glowstone Blocks"
			set slot 4 of {_buyglowstoneblocks} to {temporaryamount::player} of glowstone block named "&3Glowstone Block"
			set slot 19 of {_buyglowstoneblocks} to green glass named "&a+1"
			set slot 22 of {_buyglowstoneblocks} to green glass named "&a+5"
			set slot 25 of {_buyglowstoneblocks} to green glass named "&aSet to 64"
			set slot 28 of {_buyglowstoneblocks} to red glass named "&c-1"
			set slot 31 of {_buyglowstoneblocks} to red glass named "&c-5"
			set slot 34 of {_buyglowstoneblocks} to red glass named "&cSet to 1"
			set slot 49 of {_buyglowstoneblocks} to green concrete named "&2Buy"
			close player's inventory
			open {_buyglowstoneblocks} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buyglowstoneblocks} to a new chest inventory with 6 rows with name "&3Buy Glowstone Blocks"
			set slot 4 of {_buyglowstoneblocks} to {temporaryamount::player} of glowstone block named "&3Glowstone Block"
			set slot 19 of {_buyglowstoneblocks} to green glass named "&a+1"
			set slot 22 of {_buyglowstoneblocks} to green glass named "&a+5"
			set slot 25 of {_buyglowstoneblocks} to green glass named "&aSet to 64"
			set slot 28 of {_buyglowstoneblocks} to red glass named "&c-1"
			set slot 31 of {_buyglowstoneblocks} to red glass named "&c-5"
			set slot 34 of {_buyglowstoneblocks} to red glass named "&cSet to 1"
			set slot 49 of {_buyglowstoneblocks} to green concrete named "&2Buy"
			close player's inventory
			open {_buyglowstoneblocks} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_buyglowstoneblocks} to a new chest inventory with 6 rows with name "&3Buy Glowstone Blocks"
			set slot 4 of {_buyglowstoneblocks} to {temporaryamount::player} of glowstone block named "&3Glowstone Block"
			set slot 19 of {_buyglowstoneblocks} to green glass named "&a+1"
			set slot 22 of {_buyglowstoneblocks} to green glass named "&a+5"
			set slot 25 of {_buyglowstoneblocks} to green glass named "&aSet to 64"
			set slot 28 of {_buyglowstoneblocks} to red glass named "&c-1"
			set slot 31 of {_buyglowstoneblocks} to red glass named "&c-5"
			set slot 34 of {_buyglowstoneblocks} to red glass named "&cSet to 1"
			set slot 49 of {_buyglowstoneblocks} to green concrete named "&2Buy"
			close player's inventory
			open {_buyglowstoneblocks} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {glowstoneblockprice}
			if player's balance >= {payment::player}:
				give {temporaryamount::player} of glowstone blocks to player
				if {temporaryamount::player} is more than 1:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c glowstone blocks for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c glowstone blocks for &6%{payment::player}%&c coin!"
				else:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c glowstone block for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c glowstone block for &6%{payment::player}%&c coin!"
				set {_money} to player's balance
				set player's balance to {_money} - {payment::player}
			else:
				send "&cYou don't have enough money, baka!"
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
	if name of event-inventory is "&3Sell Glowstone Blocks":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_sellglowstoneblocks} to a new chest inventory with 6 rows with name "&3Sell Glowstone Blocks"
			set slot 4 of {_sellglowstoneblocks} to {temporaryamount::player} of glowstone block named "&3Glowstone Block"
			set slot 19 of {_sellglowstoneblocks} to green glass named "&a+1"
			set slot 22 of {_sellglowstoneblocks} to green glass named "&a+5"
			set slot 25 of {_sellglowstoneblocks} to green glass named "&aSelect all"
			set slot 28 of {_sellglowstoneblocks} to red glass named "&c-1"
			set slot 31 of {_sellglowstoneblocks} to red glass named "&c-5"
			set slot 34 of {_sellglowstoneblocks} to red glass named "&cSet to 1"
			set slot 49 of {_sellglowstoneblocks} to green concrete named "&2Sell"
			close player's inventory
			open {_sellglowstoneblocks} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_sellglowstoneblocks} to a new chest inventory with 6 rows with name "&3Sell Glowstone Blocks"
			set slot 4 of {_sellglowstoneblocks} to {temporaryamount::player} of glowstone block named "&3Glowstone Block"
			set slot 19 of {_sellglowstoneblocks} to green glass named "&a+1"
			set slot 22 of {_sellglowstoneblocks} to green glass named "&a+5"
			set slot 25 of {_sellglowstoneblocks} to green glass named "&aSelect all"
			set slot 28 of {_sellglowstoneblocks} to red glass named "&c-1"
			set slot 31 of {_sellglowstoneblocks} to red glass named "&c-5"
			set slot 34 of {_sellglowstoneblocks} to red glass named "&cSet to 1"
			set slot 49 of {_sellglowstoneblocks} to green concrete named "&2Sell"
			close player's inventory
			open {_sellglowstoneblocks} to player
		if index of event-slot = 25:
			set {itemamount::player} to 0
			set {itemamount::player} to number of glowstone blocks in player's inventory
			set {temporaryamount::player} to {itemamount::player}
			set {_sellglowstoneblocks} to a new chest inventory with 6 rows with name "&3Sell Glowstone Blocks"
			set slot 4 of {_sellglowstoneblocks} to {temporaryamount::player} of glowstone block named "&3Glowstone Block"
			set slot 19 of {_sellglowstoneblocks} to green glass named "&a+1"
			set slot 22 of {_sellglowstoneblocks} to green glass named "&a+5"
			set slot 25 of {_sellglowstoneblocks} to green glass named "&aSelect all"
			set slot 28 of {_sellglowstoneblocks} to red glass named "&c-1"
			set slot 31 of {_sellglowstoneblocks} to red glass named "&c-5"
			set slot 34 of {_sellglowstoneblocks} to red glass named "&cSet to 1"
			set slot 49 of {_sellglowstoneblocks} to green concrete named "&2Sell"
			close player's inventory
			open {_sellglowstoneblocks} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_sellglowstoneblocks} to a new chest inventory with 6 rows with name "&3Sell Glowstone Blocks"
			set slot 4 of {_sellglowstoneblocks} to {temporaryamount::player} of glowstone block named "&3Glowstone Block"
			set slot 19 of {_sellglowstoneblocks} to green glass named "&a+1"
			set slot 22 of {_sellglowstoneblocks} to green glass named "&a+5"
			set slot 25 of {_sellglowstoneblocks} to green glass named "&aSelect all"
			set slot 28 of {_sellglowstoneblocks} to red glass named "&c-1"
			set slot 31 of {_sellglowstoneblocks} to red glass named "&c-5"
			set slot 34 of {_sellglowstoneblocks} to red glass named "&cSet to 1"
			set slot 49 of {_sellglowstoneblocks} to green concrete named "&2Sell"
			close player's inventory
			open {_sellglowstoneblocks} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_sellglowstoneblocks} to a new chest inventory with 6 rows with name "&3Sell Glowstone Blocks"
			set slot 4 of {_sellglowstoneblocks} to {temporaryamount::player} of glowstone block named "&3Glowstone Block"
			set slot 19 of {_sellglowstoneblocks} to green glass named "&a+1"
			set slot 22 of {_sellglowstoneblocks} to green glass named "&a+5"
			set slot 25 of {_sellglowstoneblocks} to green glass named "&aSelect all"
			set slot 28 of {_sellglowstoneblocks} to red glass named "&c-1"
			set slot 31 of {_sellglowstoneblocks} to red glass named "&c-5"
			set slot 34 of {_sellglowstoneblocks} to red glass named "&cSet to 1"
			set slot 49 of {_sellglowstoneblocks} to green concrete named "&2Sell"
			close player's inventory
			open {_sellglowstoneblocks} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_sellglowstoneblocks} to a new chest inventory with 6 rows with name "&3Sell Glowstone Blocks"
			set slot 4 of {_sellglowstoneblocks} to {temporaryamount::player} of glowstone block named "&3Glowstone Block"
			set slot 19 of {_sellglowstoneblocks} to green glass named "&a+1"
			set slot 22 of {_sellglowstoneblocks} to green glass named "&a+5"
			set slot 25 of {_sellglowstoneblocks} to green glass named "&aSelect all"
			set slot 28 of {_sellglowstoneblocks} to red glass named "&c-1"
			set slot 31 of {_sellglowstoneblocks} to red glass named "&c-5"
			set slot 34 of {_sellglowstoneblocks} to red glass named "&cSet to 1"
			set slot 49 of {_sellglowstoneblocks} to green concrete named "&2Sell"
			close player's inventory
			open {_sellglowstoneblocks} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {glowstoneblocksellprice}
			set {itemamount::player} to 0
			set {itemamount::player} to number of glowstone blocks in player's inventory
			if {itemamount::player} >= {temporaryamount::player} :
				remove {temporaryamount::player} of glowstone block from player's inventory
				if {temporaryamount::player} is more than 1:
					if {payment::player} is more than 1:
						send "&cYou sold &6%{temporaryamount::player}%&c glowstone blocks for &6%{payment::player}%&c coins!"
					else:
						send "&cYou sold &6%{temporaryamount::player}%&c glowstone blocks for &6%{payment::player}%&c coin!"
				else:
					if {payment::player} is more than 1:
						send "&cYou sold &6%{temporaryamount::player}%&c glowstone block for &6%{payment::player}%&c coins!"
					else:
						send "&cYou sold &6%{temporaryamount::player}%&c glowstone block for &6%{payment::player}%&c coin!"
				set {_money} to player's balance
				set player's balance to {_money} + {payment::player}
			else:
				send "&cYou selected more items than the ones you have!"
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
			delete {itemamount::player}
	if name of event-inventory is "&3Ender Crystals":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 11:
			set {_buyendercrystals} to a new chest inventory with 6 rows with name "&3Buy Ender Crystals"
			set {temporaryamount::player} to 1
			set slot 4 of {_buyendercrystals} to ender crystal named "&3Ender Crystal"
			set slot 19 of {_buyendercrystals} to green glass named "&a+1"
			set slot 22 of {_buyendercrystals} to green glass named "&a+5"
			set slot 25 of {_buyendercrystals} to green glass named "&aSet to 64"
			set slot 28 of {_buyendercrystals} to red glass named "&c-1"
			set slot 31 of {_buyendercrystals} to red glass named "&c-5"
			set slot 34 of {_buyendercrystals} to red glass named "&cSet to 1"
			set slot 49 of {_buyendercrystals} to green concrete named "&2Buy"
			close player's inventory
			open {_buyendercrystals} to player
		if index of event-slot = 15:
			set {_sellendercrystals} to a new chest inventory with 6 rows with name "&3Sell Ender Crystals"
			set {temporaryamount::player} to 1
			set slot 4 of {_sellendercrystals} to ender crystal named "&3Ender Crystal"
			set slot 19 of {_sellendercrystals} to green glass named "&a+1"
			set slot 22 of {_sellendercrystals} to green glass named "&a+5"
			set slot 25 of {_sellendercrystals} to green glass named "&aSelect all"
			set slot 28 of {_sellendercrystals} to red glass named "&c-1"
			set slot 31 of {_sellendercrystals} to red glass named "&c-5"
			set slot 34 of {_sellendercrystals} to red glass named "&cSet to 1"
			set slot 49 of {_sellendercrystals} to green concrete named "&2Sell"
			close player's inventory
			open {_sellendercrystals} to player
	if name of event-inventory is "&3Buy Ender Crystals":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buyendercrystals} to a new chest inventory with 6 rows with name "&3Buy Ender Crystals"
			set slot 4 of {_buyendercrystals} to {temporaryamount::player} of ender crystal named "&3Ender Crystal"
			set slot 19 of {_buyendercrystals} to green glass named "&a+1"
			set slot 22 of {_buyendercrystals} to green glass named "&a+5"
			set slot 25 of {_buyendercrystals} to green glass named "&aSet to 64"
			set slot 28 of {_buyendercrystals} to red glass named "&c-1"
			set slot 31 of {_buyendercrystals} to red glass named "&c-5"
			set slot 34 of {_buyendercrystals} to red glass named "&cSet to 1"
			set slot 49 of {_buyendercrystals} to green concrete named "&2Buy"
			close player's inventory
			open {_buyendercrystals} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buyendercrystals} to a new chest inventory with 6 rows with name "&3Buy Ender Crystals"
			set slot 4 of {_buyendercrystals} to {temporaryamount::player} of ender crystal named "&3Ender Crystal"
			set slot 19 of {_buyendercrystals} to green glass named "&a+1"
			set slot 22 of {_buyendercrystals} to green glass named "&a+5"
			set slot 25 of {_buyendercrystals} to green glass named "&aSet to 64"
			set slot 28 of {_buyendercrystals} to red glass named "&c-1"
			set slot 31 of {_buyendercrystals} to red glass named "&c-5"
			set slot 34 of {_buyendercrystals} to red glass named "&cSet to 1"
			set slot 49 of {_buyendercrystals} to green concrete named "&2Buy"
			close player's inventory
			open {_buyendercrystals} to player
		if index of event-slot = 25:
			set {temporaryamount::player} to 64
			set {_buyendercrystals} to a new chest inventory with 6 rows with name "&3Buy Ender Crystals"
			set slot 4 of {_buyendercrystals} to {temporaryamount::player} of ender crystal named "&3Ender Crystal"
			set slot 19 of {_buyendercrystals} to green glass named "&a+1"
			set slot 22 of {_buyendercrystals} to green glass named "&a+5"
			set slot 25 of {_buyendercrystals} to green glass named "&aSet to 64"
			set slot 28 of {_buyendercrystals} to red glass named "&c-1"
			set slot 31 of {_buyendercrystals} to red glass named "&c-5"
			set slot 34 of {_buyendercrystals} to red glass named "&cSet to 1"
			set slot 49 of {_buyendercrystals} to green concrete named "&2Buy"
			close player's inventory
			open {_buyendercrystals} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buyendercrystals} to a new chest inventory with 6 rows with name "&3Buy Ender Crystals"
			set slot 4 of {_buyendercrystals} to {temporaryamount::player} of ender crystal named "&3Ender Crystal"
			set slot 19 of {_buyendercrystals} to green glass named "&a+1"
			set slot 22 of {_buyendercrystals} to green glass named "&a+5"
			set slot 25 of {_buyendercrystals} to green glass named "&aSet to 64"
			set slot 28 of {_buyendercrystals} to red glass named "&c-1"
			set slot 31 of {_buyendercrystals} to red glass named "&c-5"
			set slot 34 of {_buyendercrystals} to red glass named "&cSet to 1"
			set slot 49 of {_buyendercrystals} to green concrete named "&2Buy"
			close player's inventory
			open {_buyendercrystals} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buyendercrystals} to a new chest inventory with 6 rows with name "&3Buy Ender Crystals"
			set slot 4 of {_buyendercrystals} to {temporaryamount::player} of ender crystal named "&3Ender Crystal"
			set slot 19 of {_buyendercrystals} to green glass named "&a+1"
			set slot 22 of {_buyendercrystals} to green glass named "&a+5"
			set slot 25 of {_buyendercrystals} to green glass named "&aSet to 64"
			set slot 28 of {_buyendercrystals} to red glass named "&c-1"
			set slot 31 of {_buyendercrystals} to red glass named "&c-5"
			set slot 34 of {_buyendercrystals} to red glass named "&cSet to 1"
			set slot 49 of {_buyendercrystals} to green concrete named "&2Buy"
			close player's inventory
			open {_buyendercrystals} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_buyendercrystals} to a new chest inventory with 6 rows with name "&3Buy Ender Crystals"
			set slot 4 of {_buyendercrystals} to {temporaryamount::player} of ender crystal named "&3Ender Crystal"
			set slot 19 of {_buyendercrystals} to green glass named "&a+1"
			set slot 22 of {_buyendercrystals} to green glass named "&a+5"
			set slot 25 of {_buyendercrystals} to green glass named "&aSet to 64"
			set slot 28 of {_buyendercrystals} to red glass named "&c-1"
			set slot 31 of {_buyendercrystals} to red glass named "&c-5"
			set slot 34 of {_buyendercrystals} to red glass named "&cSet to 1"
			set slot 49 of {_buyendercrystals} to green concrete named "&2Buy"
			close player's inventory
			open {_buyendercrystals} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {endercrystalprice}
			if player's balance >= {payment::player}:
				give {temporaryamount::player} of ender crystals to player
				if {temporaryamount::player} is more than 1:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c ender crystals for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c ender crystals for &6%{payment::player}%&c coin!"
				else:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c ender crystal for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c ender crystal for &6%{payment::player}%&c coin!"
				set {_money} to player's balance
				set player's balance to {_money} - {payment::player}
			else:
				send "&cYou don't have enough money, baka!"
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
	if name of event-inventory is "&3Sell Ender Crystals":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_sellendercrystals} to a new chest inventory with 6 rows with name "&3Sell Ender Crystals"
			set slot 4 of {_sellendercrystals} to {temporaryamount::player} of ender crystal named "&3Ender Crystal"
			set slot 19 of {_sellendercrystals} to green glass named "&a+1"
			set slot 22 of {_sellendercrystals} to green glass named "&a+5"
			set slot 25 of {_sellendercrystals} to green glass named "&aSelect all"
			set slot 28 of {_sellendercrystals} to red glass named "&c-1"
			set slot 31 of {_sellendercrystals} to red glass named "&c-5"
			set slot 34 of {_sellendercrystals} to red glass named "&cSet to 1"
			set slot 49 of {_sellendercrystals} to green concrete named "&2Sell"
			close player's inventory
			open {_sellendercrystals} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_sellendercrystals} to a new chest inventory with 6 rows with name "&3Sell Ender Crystals"
			set slot 4 of {_sellendercrystals} to {temporaryamount::player} of ender crystal named "&3Ender Crystal"
			set slot 19 of {_sellendercrystals} to green glass named "&a+1"
			set slot 22 of {_sellendercrystals} to green glass named "&a+5"
			set slot 25 of {_sellendercrystals} to green glass named "&aSelect all"
			set slot 28 of {_sellendercrystals} to red glass named "&c-1"
			set slot 31 of {_sellendercrystals} to red glass named "&c-5"
			set slot 34 of {_sellendercrystals} to red glass named "&cSet to 1"
			set slot 49 of {_sellendercrystals} to green concrete named "&2Sell"
			close player's inventory
			open {_sellendercrystals} to player
		if index of event-slot = 25:
			set {itemamount::player} to 0
			set {itemamount::player} to number of ender crystals in player's inventory
			set {temporaryamount::player} to {itemamount::player}
			set {_sellendercrystals} to a new chest inventory with 6 rows with name "&3Sell Ender Crystals"
			set slot 4 of {_sellendercrystals} to {temporaryamount::player} of ender crystal named "&3Ender Crystal"
			set slot 19 of {_sellendercrystals} to green glass named "&a+1"
			set slot 22 of {_sellendercrystals} to green glass named "&a+5"
			set slot 25 of {_sellendercrystals} to green glass named "&aSelect all"
			set slot 28 of {_sellendercrystals} to red glass named "&c-1"
			set slot 31 of {_sellendercrystals} to red glass named "&c-5"
			set slot 34 of {_sellendercrystals} to red glass named "&cSet to 1"
			set slot 49 of {_sellendercrystals} to green concrete named "&2Sell"
			close player's inventory
			open {_sellendercrystals} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_sellendercrystals} to a new chest inventory with 6 rows with name "&3Sell Ender Crystals"
			set slot 4 of {_sellendercrystals} to {temporaryamount::player} of ender crystal named "&3Ender Crystal"
			set slot 19 of {_sellendercrystals} to green glass named "&a+1"
			set slot 22 of {_sellendercrystals} to green glass named "&a+5"
			set slot 25 of {_sellendercrystals} to green glass named "&aSelect all"
			set slot 28 of {_sellendercrystals} to red glass named "&c-1"
			set slot 31 of {_sellendercrystals} to red glass named "&c-5"
			set slot 34 of {_sellendercrystals} to red glass named "&cSet to 1"
			set slot 49 of {_sellendercrystals} to green concrete named "&2Sell"
			close player's inventory
			open {_sellendercrystals} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_sellendercrystals} to a new chest inventory with 6 rows with name "&3Sell Ender Crystals"
			set slot 4 of {_sellendercrystals} to {temporaryamount::player} of ender crystal named "&3Ender Crystal"
			set slot 19 of {_sellendercrystals} to green glass named "&a+1"
			set slot 22 of {_sellendercrystals} to green glass named "&a+5"
			set slot 25 of {_sellendercrystals} to green glass named "&aSelect all"
			set slot 28 of {_sellendercrystals} to red glass named "&c-1"
			set slot 31 of {_sellendercrystals} to red glass named "&c-5"
			set slot 34 of {_sellendercrystals} to red glass named "&cSet to 1"
			set slot 49 of {_sellendercrystals} to green concrete named "&2Sell"
			close player's inventory
			open {_sellendercrystals} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_sellendercrystals} to a new chest inventory with 6 rows with name "&3Sell Ender Crystals"
			set slot 4 of {_sellendercrystals} to {temporaryamount::player} of ender crystal named "&3Ender Crystal"
			set slot 19 of {_sellendercrystals} to green glass named "&a+1"
			set slot 22 of {_sellendercrystals} to green glass named "&a+5"
			set slot 25 of {_sellendercrystals} to green glass named "&aSelect all"
			set slot 28 of {_sellendercrystals} to red glass named "&c-1"
			set slot 31 of {_sellendercrystals} to red glass named "&c-5"
			set slot 34 of {_sellendercrystals} to red glass named "&cSet to 1"
			set slot 49 of {_sellendercrystals} to green concrete named "&2Sell"
			close player's inventory
			open {_sellendercrystals} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {endercrystalsellprice}
			set {itemamount::player} to 0
			set {itemamount::player} to number of ender crystals in player's inventory
			if {itemamount::player} >= {temporaryamount::player} :
				remove {temporaryamount::player} of ender crystal from player's inventory
				if {temporaryamount::player} is more than 1:
					if {payment::player} is more than 1:
						send "&cYou sold &6%{temporaryamount::player}%&c ender crystals for &6%{payment::player}%&c coins!"
					else:
						send "&cYou sold &6%{temporaryamount::player}%&c ender crystals for &6%{payment::player}%&c coin!"
				else:
					if {payment::player} is more than 1:
						send "&cYou sold &6%{temporaryamount::player}%&c ender crystal for &6%{payment::player}%&c coins!"
					else:
						send "&cYou sold &6%{temporaryamount::player}%&c ender crystal for &6%{payment::player}%&c coin!"
				set {_money} to player's balance
				set player's balance to {_money} + {payment::player}
			else:
				send "&cYou selected more items than the ones you have!"
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
			delete {itemamount::player}
	if name of event-inventory is "&3Experience Bottles":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 11:
			set {_buyexpbottles} to a new chest inventory with 6 rows with name "&3Buy Experience Bottles"
			set {temporaryamount::player} to 1
			set slot 4 of {_buyexpbottles} to experience bottle named "&3Experience Bottle"
			set slot 19 of {_buyexpbottles} to green glass named "&a+1"
			set slot 22 of {_buyexpbottles} to green glass named "&a+5"
			set slot 25 of {_buyexpbottles} to green glass named "&aSet to 64"
			set slot 28 of {_buyexpbottles} to red glass named "&c-1"
			set slot 31 of {_buyexpbottles} to red glass named "&c-5"
			set slot 34 of {_buyexpbottles} to red glass named "&cSet to 1"
			set slot 49 of {_buyexpbottles} to green concrete named "&2Buy"
			close player's inventory
			open {_buyexpbottles} to player
		if index of event-slot = 15:
			set {_sellexpbottles} to a new chest inventory with 6 rows with name "&3Sell Experience Bottles"
			set {temporaryamount::player} to 1
			set slot 4 of {_sellexpbottles} to experience bottle named "&3Experience Bottle"
			set slot 19 of {_sellexpbottles} to green glass named "&a+1"
			set slot 22 of {_sellexpbottles} to green glass named "&a+5"
			set slot 25 of {_sellexpbottles} to green glass named "&aSelect all"
			set slot 28 of {_sellexpbottles} to red glass named "&c-1"
			set slot 31 of {_sellexpbottles} to red glass named "&c-5"
			set slot 34 of {_sellexpbottles} to red glass named "&cSet to 1"
			set slot 49 of {_sellexpbottles} to green concrete named "&2Sell"
			close player's inventory
			open {_sellexpbottles} to player
	if name of event-inventory is "&3Buy Experience Bottles":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buyexpbottles} to a new chest inventory with 6 rows with name "&3Buy Experience Bottles"
			set slot 4 of {_buyexpbottles} to {temporaryamount::player} of experience bottle named "&3Experience Bottle"
			set slot 19 of {_buyexpbottles} to green glass named "&a+1"
			set slot 22 of {_buyexpbottles} to green glass named "&a+5"
			set slot 25 of {_buyexpbottles} to green glass named "&aSet to 64"
			set slot 28 of {_buyexpbottles} to red glass named "&c-1"
			set slot 31 of {_buyexpbottles} to red glass named "&c-5"
			set slot 34 of {_buyexpbottles} to red glass named "&cSet to 1"
			set slot 49 of {_buyexpbottles} to green concrete named "&2Buy"
			close player's inventory
			open {_buyexpbottles} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buyexpbottles} to a new chest inventory with 6 rows with name "&3Buy Experience Bottles"
			set slot 4 of {_buyexpbottles} to {temporaryamount::player} of experience bottle named "&3Experience Bottle"
			set slot 19 of {_buyexpbottles} to green glass named "&a+1"
			set slot 22 of {_buyexpbottles} to green glass named "&a+5"
			set slot 25 of {_buyexpbottles} to green glass named "&aSet to 64"
			set slot 28 of {_buyexpbottles} to red glass named "&c-1"
			set slot 31 of {_buyexpbottles} to red glass named "&c-5"
			set slot 34 of {_buyexpbottles} to red glass named "&cSet to 1"
			set slot 49 of {_buyexpbottles} to green concrete named "&2Buy"
			close player's inventory
			open {_buyexpbottles} to player
		if index of event-slot = 25:
			set {temporaryamount::player} to 64
			set {_buyexpbottles} to a new chest inventory with 6 rows with name "&3Buy Experience Bottles"
			set slot 4 of {_buyexpbottles} to {temporaryamount::player} of experience bottle named "&3Experience Bottle"
			set slot 19 of {_buyexpbottles} to green glass named "&a+1"
			set slot 22 of {_buyexpbottles} to green glass named "&a+5"
			set slot 25 of {_buyexpbottles} to green glass named "&aSet to 64"
			set slot 28 of {_buyexpbottles} to red glass named "&c-1"
			set slot 31 of {_buyexpbottles} to red glass named "&c-5"
			set slot 34 of {_buyexpbottles} to red glass named "&cSet to 1"
			set slot 49 of {_buyexpbottles} to green concrete named "&2Buy"
			close player's inventory
			open {_buyexpbottles} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buyexpbottles} to a new chest inventory with 6 rows with name "&3Buy Experience Bottles"
			set slot 4 of {_buyexpbottles} to {temporaryamount::player} of experience bottle named "&3Experience Bottle"
			set slot 19 of {_buyexpbottles} to green glass named "&a+1"
			set slot 22 of {_buyexpbottles} to green glass named "&a+5"
			set slot 25 of {_buyexpbottles} to green glass named "&aSet to 64"
			set slot 28 of {_buyexpbottles} to red glass named "&c-1"
			set slot 31 of {_buyexpbottles} to red glass named "&c-5"
			set slot 34 of {_buyexpbottles} to red glass named "&cSet to 1"
			set slot 49 of {_buyexpbottles} to green concrete named "&2Buy"
			close player's inventory
			open {_buyexpbottles} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buyexpbottles} to a new chest inventory with 6 rows with name "&3Buy Experience Bottles"
			set slot 4 of {_buyexpbottles} to {temporaryamount::player} of experience bottle named "&3Experience Bottle"
			set slot 19 of {_buyexpbottles} to green glass named "&a+1"
			set slot 22 of {_buyexpbottles} to green glass named "&a+5"
			set slot 25 of {_buyexpbottles} to green glass named "&aSet to 64"
			set slot 28 of {_buyexpbottles} to red glass named "&c-1"
			set slot 31 of {_buyexpbottles} to red glass named "&c-5"
			set slot 34 of {_buyexpbottles} to red glass named "&cSet to 1"
			set slot 49 of {_buyexpbottles} to green concrete named "&2Buy"
			close player's inventory
			open {_buyexpbottles} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_buyexpbottles} to a new chest inventory with 6 rows with name "&3Buy Experience Bottles"
			set slot 4 of {_buyexpbottles} to {temporaryamount::player} of experience bottle named "&3Experience Bottle"
			set slot 19 of {_buyexpbottles} to green glass named "&a+1"
			set slot 22 of {_buyexpbottles} to green glass named "&a+5"
			set slot 25 of {_buyexpbottles} to green glass named "&aSet to 64"
			set slot 28 of {_buyexpbottles} to red glass named "&c-1"
			set slot 31 of {_buyexpbottles} to red glass named "&c-5"
			set slot 34 of {_buyexpbottles} to red glass named "&cSet to 1"
			set slot 49 of {_buyexpbottles} to green concrete named "&2Buy"
			close player's inventory
			open {_buyexpbottles} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {expbottleprice}
			if player's balance >= {payment::player}:
				give {temporaryamount::player} of experience bottles to player
				if {temporaryamount::player} is more than 1:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c experience bottles for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c experience bottles for &6%{payment::player}%&c coin!"
				else:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c experience bottle for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c experience bottle for &6%{payment::player}%&c coin!"
				set {_money} to player's balance
				set player's balance to {_money} - {payment::player}
			else:
				send "&cYou don't have enough money, baka!"
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
	if name of event-inventory is "&3Sell Experience Bottles":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_sellexpbottles} to a new chest inventory with 6 rows with name "&3Sell Experience Bottles"
			set slot 4 of {_sellexpbottles} to {temporaryamount::player} of experience bottle named "&3Experience Bottle"
			set slot 19 of {_sellexpbottles} to green glass named "&a+1"
			set slot 22 of {_sellexpbottles} to green glass named "&a+5"
			set slot 25 of {_sellexpbottles} to green glass named "&aSelect all"
			set slot 28 of {_sellexpbottles} to red glass named "&c-1"
			set slot 31 of {_sellexpbottles} to red glass named "&c-5"
			set slot 34 of {_sellexpbottles} to red glass named "&cSet to 1"
			set slot 49 of {_sellexpbottles} to green concrete named "&2Sell"
			close player's inventory
			open {_sellexpbottles} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_sellexpbottles} to a new chest inventory with 6 rows with name "&3Sell Experience Bottles"
			set slot 4 of {_sellexpbottles} to {temporaryamount::player} of experience bottle named "&3Experience Bottle"
			set slot 19 of {_sellexpbottles} to green glass named "&a+1"
			set slot 22 of {_sellexpbottles} to green glass named "&a+5"
			set slot 25 of {_sellexpbottles} to green glass named "&aSelect all"
			set slot 28 of {_sellexpbottles} to red glass named "&c-1"
			set slot 31 of {_sellexpbottles} to red glass named "&c-5"
			set slot 34 of {_sellexpbottles} to red glass named "&cSet to 1"
			set slot 49 of {_sellexpbottles} to green concrete named "&2Sell"
			close player's inventory
			open {_sellexpbottles} to player
		if index of event-slot = 25:
			set {itemamount::player} to 0
			set {itemamount::player} to number of experience bottles in player's inventory
			set {temporaryamount::player} to {itemamount::player}
			set {_sellexpbottles} to a new chest inventory with 6 rows with name "&3Sell Experience Bottles"
			set slot 4 of {_sellexpbottles} to {temporaryamount::player} of experience bottle named "&3Experience Bottle"
			set slot 19 of {_sellexpbottles} to green glass named "&a+1"
			set slot 22 of {_sellexpbottles} to green glass named "&a+5"
			set slot 25 of {_sellexpbottles} to green glass named "&aSelect all"
			set slot 28 of {_sellexpbottles} to red glass named "&c-1"
			set slot 31 of {_sellexpbottles} to red glass named "&c-5"
			set slot 34 of {_sellexpbottles} to red glass named "&cSet to 1"
			set slot 49 of {_sellexpbottles} to green concrete named "&2Sell"
			close player's inventory
			open {_sellexpbottles} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_sellexpbottles} to a new chest inventory with 6 rows with name "&3Sell Experience Bottles"
			set slot 4 of {_sellexpbottles} to {temporaryamount::player} of experience bottle named "&3Experience Bottle"
			set slot 19 of {_sellexpbottles} to green glass named "&a+1"
			set slot 22 of {_sellexpbottles} to green glass named "&a+5"
			set slot 25 of {_sellexpbottles} to green glass named "&aSelect all"
			set slot 28 of {_sellexpbottles} to red glass named "&c-1"
			set slot 31 of {_sellexpbottles} to red glass named "&c-5"
			set slot 34 of {_sellexpbottles} to red glass named "&cSet to 1"
			set slot 49 of {_sellexpbottles} to green concrete named "&2Sell"
			close player's inventory
			open {_sellexpbottles} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_sellexpbottles} to a new chest inventory with 6 rows with name "&3Sell Experience Bottles"
			set slot 4 of {_sellexpbottles} to {temporaryamount::player} of experience bottle named "&3Experience Bottle"
			set slot 19 of {_sellexpbottles} to green glass named "&a+1"
			set slot 22 of {_sellexpbottles} to green glass named "&a+5"
			set slot 25 of {_sellexpbottles} to green glass named "&aSelect all"
			set slot 28 of {_sellexpbottles} to red glass named "&c-1"
			set slot 31 of {_sellexpbottles} to red glass named "&c-5"
			set slot 34 of {_sellexpbottles} to red glass named "&cSet to 1"
			set slot 49 of {_sellexpbottles} to green concrete named "&2Sell"
			close player's inventory
			open {_sellexpbottles} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_sellexpbottles} to a new chest inventory with 6 rows with name "&3Sell Experience Bottles"
			set slot 4 of {_sellexpbottles} to {temporaryamount::player} of experience bottle named "&3Experience Bottle"
			set slot 19 of {_sellexpbottles} to green glass named "&a+1"
			set slot 22 of {_sellexpbottles} to green glass named "&a+5"
			set slot 25 of {_sellexpbottles} to green glass named "&aSelect all"
			set slot 28 of {_sellexpbottles} to red glass named "&c-1"
			set slot 31 of {_sellexpbottles} to red glass named "&c-5"
			set slot 34 of {_sellexpbottles} to red glass named "&cSet to 1"
			set slot 49 of {_sellexpbottles} to green concrete named "&2Sell"
			close player's inventory
			open {_sellexpbottles} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {expbottlesellprice}
			set {itemamount::player} to 0
			set {itemamount::player} to number of experience bottles in player's inventory
			if {itemamount::player} >= {temporaryamount::player} :
				remove {temporaryamount::player} of experience bottle from player's inventory
				if {temporaryamount::player} is more than 1:
					if {payment::player} is more than 1:
						send "&cYou sold &6%{temporaryamount::player}%&c experience bottles for &6%{payment::player}%&c coins!"
					else:
						send "&cYou sold &6%{temporaryamount::player}%&c experience bottles for &6%{payment::player}%&c coin!"
				else:
					if {payment::player} is more than 1:
						send "&cYou sold &6%{temporaryamount::player}%&c experience bottle for &6%{payment::player}%&c coins!"
					else:
						send "&cYou sold &6%{temporaryamount::player}%&c experience bottle for &6%{payment::player}%&c coin!"
				set {_money} to player's balance
				set player's balance to {_money} + {payment::player}
			else:
				send "&cYou selected more items than the ones you have!"
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
			delete {itemamount::player}
	if name of event-inventory is "&3Obsidian":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 11:
			set {_buyobsidian} to a new chest inventory with 6 rows with name "&3Buy Obsidian"
			set {temporaryamount::player} to 1
			set slot 4 of {_buyobsidian} to obsidian named "&3Obsidian"
			set slot 19 of {_buyobsidian} to green glass named "&a+1"
			set slot 22 of {_buyobsidian} to green glass named "&a+5"
			set slot 25 of {_buyobsidian} to green glass named "&aSet to 64"
			set slot 28 of {_buyobsidian} to red glass named "&c-1"
			set slot 31 of {_buyobsidian} to red glass named "&c-5"
			set slot 34 of {_buyobsidian} to red glass named "&cSet to 1"
			set slot 49 of {_buyobsidian} to green concrete named "&2Buy"
			close player's inventory
			open {_buyobsidian} to player
		if index of event-slot = 15:
			set {_sellobsidian} to a new chest inventory with 6 rows with name "&3Sell Obsidian"
			set {temporaryamount::player} to 1
			set slot 4 of {_sellobsidian} to obsidian named "&3Obsidian"
			set slot 19 of {_sellobsidian} to green glass named "&a+1"
			set slot 22 of {_sellobsidian} to green glass named "&a+5"
			set slot 25 of {_sellobsidian} to green glass named "&aSelect all"
			set slot 28 of {_sellobsidian} to red glass named "&c-1"
			set slot 31 of {_sellobsidian} to red glass named "&c-5"
			set slot 34 of {_sellobsidian} to red glass named "&cSet to 1"
			set slot 49 of {_sellobsidian} to green concrete named "&2Sell"
			close player's inventory
			open {_sellobsidian} to player
	if name of event-inventory is "&3Buy Obsidian":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buyobsidian} to a new chest inventory with 6 rows with name "&3Buy Obsidian"
			set slot 4 of {_buyobsidian} to {temporaryamount::player} of obsidian named "&3Obsidian"
			set slot 19 of {_buyobsidian} to green glass named "&a+1"
			set slot 22 of {_buyobsidian} to green glass named "&a+5"
			set slot 25 of {_buyobsidian} to green glass named "&aSet to 64"
			set slot 28 of {_buyobsidian} to red glass named "&c-1"
			set slot 31 of {_buyobsidian} to red glass named "&c-5"
			set slot 34 of {_buyobsidian} to red glass named "&cSet to 1"
			set slot 49 of {_buyobsidian} to green concrete named "&2Buy"
			close player's inventory
			open {_buyobsidian} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buyobsidian} to a new chest inventory with 6 rows with name "&3Buy Obsidian"
			set slot 4 of {_buyobsidian} to {temporaryamount::player} of obsidian named "&3Obsidian"
			set slot 19 of {_buyobsidian} to green glass named "&a+1"
			set slot 22 of {_buyobsidian} to green glass named "&a+5"
			set slot 25 of {_buyobsidian} to green glass named "&aSet to 64"
			set slot 28 of {_buyobsidian} to red glass named "&c-1"
			set slot 31 of {_buyobsidian} to red glass named "&c-5"
			set slot 34 of {_buyobsidian} to red glass named "&cSet to 1"
			set slot 49 of {_buyobsidian} to green concrete named "&2Buy"
			close player's inventory
			open {_buyobsidian} to player
		if index of event-slot = 25:
			set {temporaryamount::player} to 64
			set {_buyobsidian} to a new chest inventory with 6 rows with name "&3Buy Obsidian"
			set slot 4 of {_buyobsidian} to {temporaryamount::player} of obsidian named "&3Obsidian"
			set slot 19 of {_buyobsidian} to green glass named "&a+1"
			set slot 22 of {_buyobsidian} to green glass named "&a+5"
			set slot 25 of {_buyobsidian} to green glass named "&aSet to 64"
			set slot 28 of {_buyobsidian} to red glass named "&c-1"
			set slot 31 of {_buyobsidian} to red glass named "&c-5"
			set slot 34 of {_buyobsidian} to red glass named "&cSet to 1"
			set slot 49 of {_buyobsidian} to green concrete named "&2Buy"
			close player's inventory
			open {_buyobsidian} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buyobsidian} to a new chest inventory with 6 rows with name "&3Buy Obsidian"
			set slot 4 of {_buyobsidian} to {temporaryamount::player} of obsidian named "&3Obsidian"
			set slot 19 of {_buyobsidian} to green glass named "&a+1"
			set slot 22 of {_buyobsidian} to green glass named "&a+5"
			set slot 25 of {_buyobsidian} to green glass named "&aSet to 64"
			set slot 28 of {_buyobsidian} to red glass named "&c-1"
			set slot 31 of {_buyobsidian} to red glass named "&c-5"
			set slot 34 of {_buyobsidian} to red glass named "&cSet to 1"
			set slot 49 of {_buyobsidian} to green concrete named "&2Buy"
			close player's inventory
			open {_buyobsidian} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buyobsidian} to a new chest inventory with 6 rows with name "&3Buy Obsidian"
			set slot 4 of {_buyobsidian} to {temporaryamount::player} of obsidian named "&3Obsidian"
			set slot 19 of {_buyobsidian} to green glass named "&a+1"
			set slot 22 of {_buyobsidian} to green glass named "&a+5"
			set slot 25 of {_buyobsidian} to green glass named "&aSet to 64"
			set slot 28 of {_buyobsidian} to red glass named "&c-1"
			set slot 31 of {_buyobsidian} to red glass named "&c-5"
			set slot 34 of {_buyobsidian} to red glass named "&cSet to 1"
			set slot 49 of {_buyobsidian} to green concrete named "&2Buy"
			close player's inventory
			open {_buyobsidian} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_buyobsidian} to a new chest inventory with 6 rows with name "&3Buy Obsidian"
			set slot 4 of {_buyobsidian} to {temporaryamount::player} of obsidian named "&3Obsidian"
			set slot 19 of {_buyobsidian} to green glass named "&a+1"
			set slot 22 of {_buyobsidian} to green glass named "&a+5"
			set slot 25 of {_buyobsidian} to green glass named "&aSet to 64"
			set slot 28 of {_buyobsidian} to red glass named "&c-1"
			set slot 31 of {_buyobsidian} to red glass named "&c-5"
			set slot 34 of {_buyobsidian} to red glass named "&cSet to 1"
			set slot 49 of {_buyobsidian} to green concrete named "&2Buy"
			close player's inventory
			open {_buyobsidian} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {obsidianprice}
			if player's balance >= {payment::player}:
				give {temporaryamount::player} of obsidian to player
				if {temporaryamount::player} is more than 1:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c obsidian for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c obsidian for &6%{payment::player}%&c coin!"
				else:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c obsidian for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c obsidian for &6%{payment::player}%&c coin!"
				set {_money} to player's balance
				set player's balance to {_money} - {payment::player}
			else:
				send "&cYou don't have enough money, baka!"
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
	if name of event-inventory is "&3Sell Obsidian":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_sellobsidian} to a new chest inventory with 6 rows with name "&3Sell Obsidian"
			set slot 4 of {_sellobsidian} to {temporaryamount::player} of obsidian named "&3Obsidian"
			set slot 19 of {_sellobsidian} to green glass named "&a+1"
			set slot 22 of {_sellobsidian} to green glass named "&a+5"
			set slot 25 of {_sellobsidian} to green glass named "&aSelect all"
			set slot 28 of {_sellobsidian} to red glass named "&c-1"
			set slot 31 of {_sellobsidian} to red glass named "&c-5"
			set slot 34 of {_sellobsidian} to red glass named "&cSet to 1"
			set slot 49 of {_sellobsidian} to green concrete named "&2Sell"
			close player's inventory
			open {_sellobsidian} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_sellobsidian} to a new chest inventory with 6 rows with name "&3Sell Obsidian"
			set slot 4 of {_sellobsidian} to {temporaryamount::player} of obsidian named "&3Obsidian"
			set slot 19 of {_sellobsidian} to green glass named "&a+1"
			set slot 22 of {_sellobsidian} to green glass named "&a+5"
			set slot 25 of {_sellobsidian} to green glass named "&aSelect all"
			set slot 28 of {_sellobsidian} to red glass named "&c-1"
			set slot 31 of {_sellobsidian} to red glass named "&c-5"
			set slot 34 of {_sellobsidian} to red glass named "&cSet to 1"
			set slot 49 of {_sellobsidian} to green concrete named "&2Sell"
			close player's inventory
			open {_sellobsidian} to player
		if index of event-slot = 25:
			set {itemamount::player} to 0
			set {itemamount::player} to number of obsidian in player's inventory
			set {temporaryamount::player} to {itemamount::player}
			set {_sellobsidian} to a new chest inventory with 6 rows with name "&3Sell Obsidian"
			set slot 4 of {_sellobsidian} to {temporaryamount::player} of obsidian named "&3Obsidian"
			set slot 19 of {_sellobsidian} to green glass named "&a+1"
			set slot 22 of {_sellobsidian} to green glass named "&a+5"
			set slot 25 of {_sellobsidian} to green glass named "&aSelect all"
			set slot 28 of {_sellobsidian} to red glass named "&c-1"
			set slot 31 of {_sellobsidian} to red glass named "&c-5"
			set slot 34 of {_sellobsidian} to red glass named "&cSet to 1"
			set slot 49 of {_sellobsidian} to green concrete named "&2Sell"
			close player's inventory
			open {_sellobsidian} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_sellobsidian} to a new chest inventory with 6 rows with name "&3Sell Obsidian"
			set slot 4 of {_sellobsidian} to {temporaryamount::player} of obsidian named "&3Obsidian"
			set slot 19 of {_sellobsidian} to green glass named "&a+1"
			set slot 22 of {_sellobsidian} to green glass named "&a+5"
			set slot 25 of {_sellobsidian} to green glass named "&aSelect all"
			set slot 28 of {_sellobsidian} to red glass named "&c-1"
			set slot 31 of {_sellobsidian} to red glass named "&c-5"
			set slot 34 of {_sellobsidian} to red glass named "&cSet to 1"
			set slot 49 of {_sellobsidian} to green concrete named "&2Sell"
			close player's inventory
			open {_sellobsidian} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_sellobsidian} to a new chest inventory with 6 rows with name "&3Sell Obsidian"
			set slot 4 of {_sellobsidian} to {temporaryamount::player} of obsidian named "&3Obsidian"
			set slot 19 of {_sellobsidian} to green glass named "&a+1"
			set slot 22 of {_sellobsidian} to green glass named "&a+5"
			set slot 25 of {_sellobsidian} to green glass named "&aSelect all"
			set slot 28 of {_sellobsidian} to red glass named "&c-1"
			set slot 31 of {_sellobsidian} to red glass named "&c-5"
			set slot 34 of {_sellobsidian} to red glass named "&cSet to 1"
			set slot 49 of {_sellobsidian} to green concrete named "&2Sell"
			close player's inventory
			open {_sellobsidian} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_sellobsidian} to a new chest inventory with 6 rows with name "&3Sell Obsidian"
			set slot 4 of {_sellobsidian} to {temporaryamount::player} of obsidian named "&3Obsidian"
			set slot 19 of {_sellobsidian} to green glass named "&a+1"
			set slot 22 of {_sellobsidian} to green glass named "&a+5"
			set slot 25 of {_sellobsidian} to green glass named "&aSelect all"
			set slot 28 of {_sellobsidian} to red glass named "&c-1"
			set slot 31 of {_sellobsidian} to red glass named "&c-5"
			set slot 34 of {_sellobsidian} to red glass named "&cSet to 1"
			set slot 49 of {_sellobsidian} to green concrete named "&2Sell"
			close player's inventory
			open {_sellobsidian} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {obsidiansellprice}
			set {itemamount::player} to 0
			set {itemamount::player} to number of obsidian in player's inventory
			if {itemamount::player} >= {temporaryamount::player} :
				remove {temporaryamount::player} of obsidian from player's inventory
				if {temporaryamount::player} is more than 1:
					if {payment::player} is more than 1:
						send "&cYou sold &6%{temporaryamount::player}%&c obsidian for &6%{payment::player}%&c coins!"
					else:
						send "&cYou sold &6%{temporaryamount::player}%&c obsidian for &6%{payment::player}%&c coin!"
				else:
					if {payment::player} is more than 1:
						send "&cYou sold &6%{temporaryamount::player}%&c obsidian for &6%{payment::player}%&c coins!"
					else:
						send "&cYou sold &6%{temporaryamount::player}%&c obsidian for &6%{payment::player}%&c coin!"
				set {_money} to player's balance
				set player's balance to {_money} + {payment::player}
			else:
				send "&cYou selected more items than the ones you have!"
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
			delete {itemamount::player}
	if name of event-inventory is "&3Totems Of Undying":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 11:
			set {_buytotems} to a new chest inventory with 6 rows with name "&3Buy Totems Of Undying"
			set {temporaryamount::player} to 1
			set slot 4 of {_buytotems} to totem of undying named "&3Totems Of Undying"
			set slot 19 of {_buytotems} to green glass named "&a+1"
			set slot 22 of {_buytotems} to green glass named "&a+5"
			set slot 25 of {_buytotems} to green glass named "&aSet to 64"
			set slot 28 of {_buytotems} to red glass named "&c-1"
			set slot 31 of {_buytotems} to red glass named "&c-5"
			set slot 34 of {_buytotems} to red glass named "&cSet to 1"
			set slot 49 of {_buytotems} to green concrete named "&2Buy"
			close player's inventory
			open {_buytotems} to player
		if index of event-slot = 15:
			set {_selltotems} to a new chest inventory with 6 rows with name "&3Sell Totems Of Undying"
			set {temporaryamount::player} to 1
			set slot 4 of {_selltotems} to totem of undying named "&3Totems Of Undying"
			set slot 19 of {_selltotems} to green glass named "&a+1"
			set slot 22 of {_selltotems} to green glass named "&a+5"
			set slot 25 of {_selltotems} to green glass named "&aSelect all"
			set slot 28 of {_selltotems} to red glass named "&c-1"
			set slot 31 of {_selltotems} to red glass named "&c-5"
			set slot 34 of {_selltotems} to red glass named "&cSet to 1"
			set slot 49 of {_selltotems} to green concrete named "&2Sell"
			close player's inventory
			open {_selltotems} to player
	if name of event-inventory is "&3Buy Totems Of Undying":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buytotems} to a new chest inventory with 6 rows with name "&3Buy Totems Of Undying"
			set slot 4 of {_buytotems} to {temporaryamount::player} of totem of undying named "&3Totems Of Undying"
			set slot 19 of {_buytotems} to green glass named "&a+1"
			set slot 22 of {_buytotems} to green glass named "&a+5"
			set slot 25 of {_buytotems} to green glass named "&aSet to 64"
			set slot 28 of {_buytotems} to red glass named "&c-1"
			set slot 31 of {_buytotems} to red glass named "&c-5"
			set slot 34 of {_buytotems} to red glass named "&cSet to 1"
			set slot 49 of {_buytotems} to green concrete named "&2Buy"
			close player's inventory
			open {_buytotems} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buytotems} to a new chest inventory with 6 rows with name "&3Buy Totems Of Undying"
			set slot 4 of {_buytotems} to {temporaryamount::player} of totem of undying named "&3Totems Of Undying"
			set slot 19 of {_buytotems} to green glass named "&a+1"
			set slot 22 of {_buytotems} to green glass named "&a+5"
			set slot 25 of {_buytotems} to green glass named "&aSet to 64"
			set slot 28 of {_buytotems} to red glass named "&c-1"
			set slot 31 of {_buytotems} to red glass named "&c-5"
			set slot 34 of {_buytotems} to red glass named "&cSet to 1"
			set slot 49 of {_buytotems} to green concrete named "&2Buy"
			close player's inventory
			open {_buytotems} to player
		if index of event-slot = 25:
			set {temporaryamount::player} to 64
			set {_buytotems} to a new chest inventory with 6 rows with name "&3Buy Totems Of Undying"
			set slot 4 of {_buytotems} to {temporaryamount::player} of totem of undying named "&3Totems Of Undying"
			set slot 19 of {_buytotems} to green glass named "&a+1"
			set slot 22 of {_buytotems} to green glass named "&a+5"
			set slot 25 of {_buytotems} to green glass named "&aSet to 64"
			set slot 28 of {_buytotems} to red glass named "&c-1"
			set slot 31 of {_buytotems} to red glass named "&c-5"
			set slot 34 of {_buytotems} to red glass named "&cSet to 1"
			set slot 49 of {_buytotems} to green concrete named "&2Buy"
			close player's inventory
			open {_buytotems} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buytotems} to a new chest inventory with 6 rows with name "&3Buy Totems Of Undying"
			set slot 4 of {_buytotems} to {temporaryamount::player} of totem of undying named "&3Totems Of Undying"
			set slot 19 of {_buytotems} to green glass named "&a+1"
			set slot 22 of {_buytotems} to green glass named "&a+5"
			set slot 25 of {_buytotems} to green glass named "&aSet to 64"
			set slot 28 of {_buytotems} to red glass named "&c-1"
			set slot 31 of {_buytotems} to red glass named "&c-5"
			set slot 34 of {_buytotems} to red glass named "&cSet to 1"
			set slot 49 of {_buytotems} to green concrete named "&2Buy"
			close player's inventory
			open {_buytotems} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buytotems} to a new chest inventory with 6 rows with name "&3Buy Totems Of Undying"
			set slot 4 of {_buytotems} to {temporaryamount::player} of totem of undying named "&3Totems Of Undying"
			set slot 19 of {_buytotems} to green glass named "&a+1"
			set slot 22 of {_buytotems} to green glass named "&a+5"
			set slot 25 of {_buytotems} to green glass named "&aSet to 64"
			set slot 28 of {_buytotems} to red glass named "&c-1"
			set slot 31 of {_buytotems} to red glass named "&c-5"
			set slot 34 of {_buytotems} to red glass named "&cSet to 1"
			set slot 49 of {_buytotems} to green concrete named "&2Buy"
			close player's inventory
			open {_buytotems} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_buytotems} to a new chest inventory with 6 rows with name "&3Buy Totems Of Undying"
			set slot 4 of {_buytotems} to {temporaryamount::player} of totem of undying named "&3Totems Of Undying"
			set slot 19 of {_buytotems} to green glass named "&a+1"
			set slot 22 of {_buytotems} to green glass named "&a+5"
			set slot 25 of {_buytotems} to green glass named "&aSet to 64"
			set slot 28 of {_buytotems} to red glass named "&c-1"
			set slot 31 of {_buytotems} to red glass named "&c-5"
			set slot 34 of {_buytotems} to red glass named "&cSet to 1"
			set slot 49 of {_buytotems} to green concrete named "&2Buy"
			close player's inventory
			open {_buytotems} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {totemprice}
			if player's balance >= {payment::player}:
				give {temporaryamount::player} of totem of undying to player
				if {temporaryamount::player} is more than 1:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c totems for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c totems for &6%{payment::player}%&c coin!"
				else:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c totems for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c totems for &6%{payment::player}%&c coin!"
				set {_money} to player's balance
				set player's balance to {_money} - {payment::player}
			else:
				send "&cYou don't have enough money, baka!"
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
	if name of event-inventory is "&3Sell Totems Of Undying":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_selltotems} to a new chest inventory with 6 rows with name "&3Sell Totems Of Undying"
			set slot 4 of {_selltotems} to {temporaryamount::player} of totem of undying named "&3Totems Of Undying"
			set slot 19 of {_selltotems} to green glass named "&a+1"
			set slot 22 of {_selltotems} to green glass named "&a+5"
			set slot 25 of {_selltotems} to green glass named "&aSelect all"
			set slot 28 of {_selltotems} to red glass named "&c-1"
			set slot 31 of {_selltotems} to red glass named "&c-5"
			set slot 34 of {_selltotems} to red glass named "&cSet to 1"
			set slot 49 of {_selltotems} to green concrete named "&2Sell"
			close player's inventory
			open {_selltotems} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_selltotems} to a new chest inventory with 6 rows with name "&3Sell Totems Of Undying"
			set slot 4 of {_selltotems} to {temporaryamount::player} of totem of undying named "&3Totems Of Undying"
			set slot 19 of {_selltotems} to green glass named "&a+1"
			set slot 22 of {_selltotems} to green glass named "&a+5"
			set slot 25 of {_selltotems} to green glass named "&aSelect all"
			set slot 28 of {_selltotems} to red glass named "&c-1"
			set slot 31 of {_selltotems} to red glass named "&c-5"
			set slot 34 of {_selltotems} to red glass named "&cSet to 1"
			set slot 49 of {_selltotems} to green concrete named "&2Sell"
			close player's inventory
			open {_selltotems} to player
		if index of event-slot = 25:
			set {itemamount::player} to 0
			set {itemamount::player} to number of totem of undying in player's inventory
			set {temporaryamount::player} to {itemamount::player}
			set {_selltotems} to a new chest inventory with 6 rows with name "&3Sell Totems Of Undying"
			set slot 4 of {_selltotems} to {temporaryamount::player} of totem of undying named "&3Totems Of Undying"
			set slot 19 of {_selltotems} to green glass named "&a+1"
			set slot 22 of {_selltotems} to green glass named "&a+5"
			set slot 25 of {_selltotems} to green glass named "&aSelect all"
			set slot 28 of {_selltotems} to red glass named "&c-1"
			set slot 31 of {_selltotems} to red glass named "&c-5"
			set slot 34 of {_selltotems} to red glass named "&cSet to 1"
			set slot 49 of {_selltotems} to green concrete named "&2Sell"
			close player's inventory
			open {_selltotems} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_selltotems} to a new chest inventory with 6 rows with name "&3Sell Totems Of Undying"
			set slot 4 of {_selltotems} to {temporaryamount::player} of totem of undying named "&3Totems Of Undying"
			set slot 19 of {_selltotems} to green glass named "&a+1"
			set slot 22 of {_selltotems} to green glass named "&a+5"
			set slot 25 of {_selltotems} to green glass named "&aSelect all"
			set slot 28 of {_selltotems} to red glass named "&c-1"
			set slot 31 of {_selltotems} to red glass named "&c-5"
			set slot 34 of {_selltotems} to red glass named "&cSet to 1"
			set slot 49 of {_selltotems} to green concrete named "&2Sell"
			close player's inventory
			open {_selltotems} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_selltotems} to a new chest inventory with 6 rows with name "&3Sell Totems Of Undying"
			set slot 4 of {_selltotems} to {temporaryamount::player} of totem of undying named "&3Totems Of Undying"
			set slot 19 of {_selltotems} to green glass named "&a+1"
			set slot 22 of {_selltotems} to green glass named "&a+5"
			set slot 25 of {_selltotems} to green glass named "&aSelect all"
			set slot 28 of {_selltotems} to red glass named "&c-1"
			set slot 31 of {_selltotems} to red glass named "&c-5"
			set slot 34 of {_selltotems} to red glass named "&cSet to 1"
			set slot 49 of {_selltotems} to green concrete named "&2Sell"
			close player's inventory
			open {_selltotems} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_selltotems} to a new chest inventory with 6 rows with name "&3Sell Totems Of Undying"
			set slot 4 of {_selltotems} to {temporaryamount::player} of totem of undying named "&3Totems Of Undying"
			set slot 19 of {_selltotems} to green glass named "&a+1"
			set slot 22 of {_selltotems} to green glass named "&a+5"
			set slot 25 of {_selltotems} to green glass named "&aSelect all"
			set slot 28 of {_selltotems} to red glass named "&c-1"
			set slot 31 of {_selltotems} to red glass named "&c-5"
			set slot 34 of {_selltotems} to red glass named "&cSet to 1"
			set slot 49 of {_selltotems} to green concrete named "&2Sell"
			close player's inventory
			open {_selltotems} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {totemsellprice}
			set {itemamount::player} to 0
			set {itemamount::player} to number of totem of undying in player's inventory
			if {itemamount::player} >= {temporaryamount::player} :
				remove {temporaryamount::player} of totem of undying from player's inventory
				if {temporaryamount::player} is more than 1:
					if {payment::player} is more than 1:
						send "&cYou sold &6%{temporaryamount::player}%&c totems for &6%{payment::player}%&c coins!"
					else:
						send "&cYou sold &6%{temporaryamount::player}%&c totems for &6%{payment::player}%&c coin!"
				else:
					if {payment::player} is more than 1:
						send "&cYou sold &6%{temporaryamount::player}%&c totems for &6%{payment::player}%&c coins!"
					else:
						send "&cYou sold &6%{temporaryamount::player}%&c totems for &6%{payment::player}%&c coin!"
				set {_money} to player's balance
				set player's balance to {_money} + {payment::player}
			else:
				send "&cYou selected more items than the ones you have!"
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
			delete {itemamount::player}
	if name of event-inventory is "&l<##fbeb00>F<##b0f200>O<##66f800>O<##1bff00>D":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 9:
			set {_buyorsellcarrots} to a new chest inventory with 3 rows with name "&6Carrots"
			set slot 4 of {_buyorsellcarrots} to carrot named "&6Carrots" with lore {_carrotlore::*}
			set slot 11 of {_buyorsellcarrots} to green concrete named "&aBuy"
			set slot 15 of {_buyorsellcarrots} to red concrete named "&cSell"
			set slot 22 of {_buyorsellcarrots} to barrier named "&cBack"
			close player's inventory
			open {_buyorsellcarrots} to player
		if index of event-slot = 11:
			set {_buyorsellsteaks} to a new chest inventory with 3 rows with name "&6Steaks"
			set slot 4 of {_buyorsellsteaks} to cooked beef named "&6Steaks" with lore {_steaklore::*}
			set slot 11 of {_buyorsellsteaks} to green concrete named "&aBuy"
			set slot 15 of {_buyorsellsteaks} to red concrete named "&cSell"
			set slot 22 of {_buyorsellsteaks} to barrier named "&cBack"
			close player's inventory
			open {_buyorsellsteaks} to player
		if index of event-slot = 13:
			set {_buyorsellgoldencarrots} to a new chest inventory with 3 rows with name "&6Golden Carrots"
			set slot 4 of {_buyorsellgoldencarrots} to golden carrot named "&6Golden Carrots" with lore {_goldencarrotlore::*}
			set slot 11 of {_buyorsellgoldencarrots} to green concrete named "&aBuy"
			set slot 15 of {_buyorsellgoldencarrots} to red concrete named "&cSell"
			set slot 22 of {_buyorsellgoldencarrots} to barrier named "&cBack"
			close player's inventory
			open {_buyorsellgoldencarrots} to player
		if index of event-slot = 15:
			set {_buyorsellgoldenapples} to a new chest inventory with 3 rows with name "&6Golden Apples"
			set slot 4 of {_buyorsellgoldenapples} to golden apple named "&6Golden Apples" with lore {_goldenapplelore::*}
			set slot 11 of {_buyorsellgoldenapples} to green concrete named "&aBuy"
			set slot 15 of {_buyorsellgoldenapples} to red concrete named "&cSell"
			set slot 22 of {_buyorsellgoldenapples} to barrier named "&cBack"
			close player's inventory
			open {_buyorsellgoldenapples} to player
		if index of event-slot = 17:
			set {_buyorsellegoldenapples} to a new chest inventory with 3 rows with name "&6Enchanted Golden Apples"
			set slot 4 of {_buyorsellegoldenapples} to enchanted golden apple named "&6Enchanted Golden Apples" with lore {_egoldenapplelore::*}
			set slot 11 of {_buyorsellegoldenapples} to green concrete named "&aBuy"
			set slot 15 of {_buyorsellegoldenapples} to red concrete named "&cSell"
			set slot 22 of {_buyorsellegoldenapples} to barrier named "&cBack"
			close player's inventory
			open {_buyorsellgoldenapples} to player
	if name of event-inventory is "&6Carrots":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 11:
			set {_buycarrots} to a new chest inventory with 6 rows with name "&6Buy Carrots"
			set {temporaryamount::player} to 1
			set slot 4 of {_buycarrots} to carrot named "&6Carrot"
			set slot 19 of {_buycarrots} to green glass named "&a+1"
			set slot 22 of {_buycarrots} to green glass named "&a+5"
			set slot 25 of {_buycarrots} to green glass named "&aSet to 64"
			set slot 28 of {_buycarrots} to red glass named "&c-1"
			set slot 31 of {_buycarrots} to red glass named "&c-5"
			set slot 34 of {_buycarrots} to red glass named "&cSet to 1"
			set slot 49 of {_buycarrots} to green concrete named "&2Buy"
			close player's inventory
			open {_buycarrots} to player
		if index of event-slot = 15:
			set {_sellcarrots} to a new chest inventory with 6 rows with name "&6Sell Carrots"
			set {temporaryamount::player} to 1
			set slot 4 of {_sellcarrots} to carrot named "&6Carrot"
			set slot 19 of {_sellcarrots} to green glass named "&a+1"
			set slot 22 of {_sellcarrots} to green glass named "&a+5"
			set slot 25 of {_sellcarrots} to green glass named "&aSelect all"
			set slot 28 of {_sellcarrots} to red glass named "&c-1"
			set slot 31 of {_sellcarrots} to red glass named "&c-5"
			set slot 34 of {_sellcarrots} to red glass named "&cSet to 1"
			set slot 49 of {_sellcarrots} to green concrete named "&2Sell"
			close player's inventory
			open {_sellcarrots} to player
	if name of event-inventory is "&6Buy Carrots":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buycarrots} to a new chest inventory with 6 rows with name "&6Buy Carrots"
			set slot 4 of {_buycarrots} to {temporaryamount::player} of carrot named "&6Carrot"
			set slot 19 of {_buycarrots} to green glass named "&a+1"
			set slot 22 of {_buycarrots} to green glass named "&a+5"
			set slot 25 of {_buycarrots} to green glass named "&aSet to 64"
			set slot 28 of {_buycarrots} to red glass named "&c-1"
			set slot 31 of {_buycarrots} to red glass named "&c-5"
			set slot 34 of {_buycarrots} to red glass named "&cSet to 1"
			set slot 49 of {_buycarrots} to green concrete named "&2Buy"
			close player's inventory
			open {_buycarrots} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buycarrots} to a new chest inventory with 6 rows with name "&6Buy Carrots"
			set slot 4 of {_buycarrots} to {temporaryamount::player} of carrot named "&6Carrot"
			set slot 19 of {_buycarrots} to green glass named "&a+1"
			set slot 22 of {_buycarrots} to green glass named "&a+5"
			set slot 25 of {_buycarrots} to green glass named "&aSet to 64"
			set slot 28 of {_buycarrots} to red glass named "&c-1"
			set slot 31 of {_buycarrots} to red glass named "&c-5"
			set slot 34 of {_buycarrots} to red glass named "&cSet to 1"
			set slot 49 of {_buycarrots} to green concrete named "&2Buy"
			close player's inventory
			open {_buycarrots} to player
		if index of event-slot = 25:
			set {temporaryamount::player} to 64
			set {_buycarrots} to a new chest inventory with 6 rows with name "&6Buy Carrots"
			set slot 4 of {_buycarrots} to {temporaryamount::player} of carrot named "&6Carrot"
			set slot 19 of {_buycarrots} to green glass named "&a+1"
			set slot 22 of {_buycarrots} to green glass named "&a+5"
			set slot 25 of {_buycarrots} to green glass named "&aSet to 64"
			set slot 28 of {_buycarrots} to red glass named "&c-1"
			set slot 31 of {_buycarrots} to red glass named "&c-5"
			set slot 34 of {_buycarrots} to red glass named "&cSet to 1"
			set slot 49 of {_buycarrots} to green concrete named "&2Buy"
			close player's inventory
			open {_buycarrots} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buycarrots} to a new chest inventory with 6 rows with name "&6Buy Carrots"
			set slot 4 of {_buycarrots} to {temporaryamount::player} of carrot named "&6Carrot"
			set slot 19 of {_buycarrots} to green glass named "&a+1"
			set slot 22 of {_buycarrots} to green glass named "&a+5"
			set slot 25 of {_buycarrots} to green glass named "&aSet to 64"
			set slot 28 of {_buycarrots} to red glass named "&c-1"
			set slot 31 of {_buycarrots} to red glass named "&c-5"
			set slot 34 of {_buycarrots} to red glass named "&cSet to 1"
			set slot 49 of {_buycarrots} to green concrete named "&2Buy"
			close player's inventory
			open {_buycarrots} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buycarrots} to a new chest inventory with 6 rows with name "&6Buy Carrots"
			set slot 4 of {_buycarrots} to {temporaryamount::player} of carrot named "&6Carrot"
			set slot 19 of {_buycarrots} to green glass named "&a+1"
			set slot 22 of {_buycarrots} to green glass named "&a+5"
			set slot 25 of {_buycarrots} to green glass named "&aSet to 64"
			set slot 28 of {_buycarrots} to red glass named "&c-1"
			set slot 31 of {_buycarrots} to red glass named "&c-5"
			set slot 34 of {_buycarrots} to red glass named "&cSet to 1"
			set slot 49 of {_buycarrots} to green concrete named "&2Buy"
			close player's inventory
			open {_buycarrots} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_buycarrots} to a new chest inventory with 6 rows with name "&6Buy Carrots"
			set slot 4 of {_buycarrots} to {temporaryamount::player} of carrot named "&6Carrot"
			set slot 19 of {_buycarrots} to green glass named "&a+1"
			set slot 22 of {_buycarrots} to green glass named "&a+5"
			set slot 25 of {_buycarrots} to green glass named "&aSet to 64"
			set slot 28 of {_buycarrots} to red glass named "&c-1"
			set slot 31 of {_buycarrots} to red glass named "&c-5"
			set slot 34 of {_buycarrots} to red glass named "&cSet to 1"
			set slot 49 of {_buycarrots} to green concrete named "&2Buy"
			close player's inventory
			open {_buycarrots} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {carrotprice}
			if player's balance >= {payment::player}:
				give {temporaryamount::player} of carrots to player
				if {temporaryamount::player} is more than 1:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c carrots for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c carrots for &6%{payment::player}%&c coin!"
				else:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c carrot for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c carrot for &6%{payment::player}%&c coin!"
				set {_money} to player's balance
				set player's balance to {_money} - {payment::player}
			else:
				send "&cYou don't have enough money, baka!"
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
	if name of event-inventory is "&6Sell Carrots":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_sellcarrots} to a new chest inventory with 6 rows with name "&6Sell Carrots"
			set slot 4 of {_sellcarrots} to {temporaryamount::player} of carrot named "&6Carrot"
			set slot 19 of {_sellcarrots} to green glass named "&a+1"
			set slot 22 of {_sellcarrots} to green glass named "&a+5"
			set slot 25 of {_sellcarrots} to green glass named "&aSelect all"
			set slot 28 of {_sellcarrots} to red glass named "&c-1"
			set slot 31 of {_sellcarrots} to red glass named "&c-5"
			set slot 34 of {_sellcarrots} to red glass named "&cSet to 1"
			set slot 49 of {_sellcarrots} to green concrete named "&2Sell"
			close player's inventory
			open {_sellcarrots} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_sellcarrots} to a new chest inventory with 6 rows with name "&6Sell Carrots"
			set slot 4 of {_sellcarrots} to {temporaryamount::player} of carrot named "&6Carrot"
			set slot 19 of {_sellcarrots} to green glass named "&a+1"
			set slot 22 of {_sellcarrots} to green glass named "&a+5"
			set slot 25 of {_sellcarrots} to green glass named "&aSelect all"
			set slot 28 of {_sellcarrots} to red glass named "&c-1"
			set slot 31 of {_sellcarrots} to red glass named "&c-5"
			set slot 34 of {_sellcarrots} to red glass named "&cSet to 1"
			set slot 49 of {_sellcarrots} to green concrete named "&2Sell"
			close player's inventory
			open {_sellcarrots} to player
		if index of event-slot = 25:
			set {itemamount::player} to 0
			set {itemamount::player} to number of carrots in player's inventory
			set {temporaryamount::player} to {itemamount::player}
			set {_sellcarrots} to a new chest inventory with 6 rows with name "&6Sell Carrots"
			set slot 4 of {_sellcarrots} to {temporaryamount::player} of carrot named "&6Carrot"
			set slot 19 of {_sellcarrots} to green glass named "&a+1"
			set slot 22 of {_sellcarrots} to green glass named "&a+5"
			set slot 25 of {_sellcarrots} to green glass named "&aSelect all"
			set slot 28 of {_sellcarrots} to red glass named "&c-1"
			set slot 31 of {_sellcarrots} to red glass named "&c-5"
			set slot 34 of {_sellcarrots} to red glass named "&cSet to 1"
			set slot 49 of {_sellcarrots} to green concrete named "&2Sell"
			close player's inventory
			open {_sellcarrots} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_sellcarrots} to a new chest inventory with 6 rows with name "&6Sell Carrots"
			set slot 4 of {_sellcarrots} to {temporaryamount::player} of carrot named "&6Carrot"
			set slot 19 of {_sellcarrots} to green glass named "&a+1"
			set slot 22 of {_sellcarrots} to green glass named "&a+5"
			set slot 25 of {_sellcarrots} to green glass named "&aSelect all"
			set slot 28 of {_sellcarrots} to red glass named "&c-1"
			set slot 31 of {_sellcarrots} to red glass named "&c-5"
			set slot 34 of {_sellcarrots} to red glass named "&cSet to 1"
			set slot 49 of {_sellcarrots} to green concrete named "&2Sell"
			close player's inventory
			open {_sellcarrots} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_sellcarrots} to a new chest inventory with 6 rows with name "&6Sell Carrots"
			set slot 4 of {_sellcarrots} to {temporaryamount::player} of carrot named "&6Carrot"
			set slot 19 of {_sellcarrots} to green glass named "&a+1"
			set slot 22 of {_sellcarrots} to green glass named "&a+5"
			set slot 25 of {_sellcarrots} to green glass named "&aSelect all"
			set slot 28 of {_sellcarrots} to red glass named "&c-1"
			set slot 31 of {_sellcarrots} to red glass named "&c-5"
			set slot 34 of {_sellcarrots} to red glass named "&cSet to 1"
			set slot 49 of {_sellcarrots} to green concrete named "&2Sell"
			close player's inventory
			open {_sellcarrots} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_sellcarrots} to a new chest inventory with 6 rows with name "&6Sell Carrots"
			set slot 4 of {_sellcarrots} to {temporaryamount::player} of carrot named "&6Carrot"
			set slot 19 of {_sellcarrots} to green glass named "&a+1"
			set slot 22 of {_sellcarrots} to green glass named "&a+5"
			set slot 25 of {_sellcarrots} to green glass named "&aSelect all"
			set slot 28 of {_sellcarrots} to red glass named "&c-1"
			set slot 31 of {_sellcarrots} to red glass named "&c-5"
			set slot 34 of {_sellcarrots} to red glass named "&cSet to 1"
			set slot 49 of {_sellcarrots} to green concrete named "&2Sell"
			close player's inventory
			open {_sellcarrots} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {carrotsellprice}
			set {itemamount::player} to 0
			set {itemamount::player} to number of carrots in player's inventory
			if {itemamount::player} >= {temporaryamount::player} :
				remove {temporaryamount::player} of carrot from player's inventory
				if {temporaryamount::player} is more than 1:
					if {payment::player} is more than 1:
						send "&cYou sold &6%{temporaryamount::player}%&c carrots for &6%{payment::player}%&c coins!"
					else:
						send "&cYou sold &6%{temporaryamount::player}%&c carrots for &6%{payment::player}%&c coin!"
				else:
					if {payment::player} is more than 1:
						send "&cYou sold &6%{temporaryamount::player}%&c carrot for &6%{payment::player}%&c coins!"
					else:
						send "&cYou sold &6%{temporaryamount::player}%&c carrot for &6%{payment::player}%&c coin!"
				set {_money} to player's balance
				set player's balance to {_money} + {payment::player}
			else:
				send "&cYou selected more items than the ones you have!"
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
			delete {itemamount::player}
	if name of event-inventory is "&6Golden Carrots":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 11:
			set {_buygoldencarrots} to a new chest inventory with 6 rows with name "&6Buy Golden Carrots"
			set {temporaryamount::player} to 1
			set slot 4 of {_buygoldencarrots} to golden carrot named "&6Golden Carrot"
			set slot 19 of {_buygoldencarrots} to green glass named "&a+1"
			set slot 22 of {_buygoldencarrots} to green glass named "&a+5"
			set slot 25 of {_buygoldencarrots} to green glass named "&aSet to 64"
			set slot 28 of {_buygoldencarrots} to red glass named "&c-1"
			set slot 31 of {_buygoldencarrots} to red glass named "&c-5"
			set slot 34 of {_buygoldencarrots} to red glass named "&cSet to 1"
			set slot 49 of {_buygoldencarrots} to green concrete named "&2Buy"
			close player's inventory
			open {_buygoldencarrots} to player
		if index of event-slot = 15:
			set {_sellgoldencarrots} to a new chest inventory with 6 rows with name "&6Sell Golden Carrots"
			set {temporaryamount::player} to 1
			set slot 4 of {_sellgoldencarrots} to golden carrot named "&6Golden Carrot"
			set slot 19 of {_sellgoldencarrots} to green glass named "&a+1"
			set slot 22 of {_sellgoldencarrots} to green glass named "&a+5"
			set slot 25 of {_sellgoldencarrots} to green glass named "&aSelect all"
			set slot 28 of {_sellgoldencarrots} to red glass named "&c-1"
			set slot 31 of {_sellgoldencarrots} to red glass named "&c-5"
			set slot 34 of {_sellgoldencarrots} to red glass named "&cSet to 1"
			set slot 49 of {_sellgoldencarrots} to green concrete named "&2Sell"
			close player's inventory
			open {_sellgoldencarrots} to player
	if name of event-inventory is "&6Buy Golden Carrots":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buygoldencarrots} to a new chest inventory with 6 rows with name "&6Buy Golden Carrots"
			set slot 4 of {_buygoldencarrots} to {temporaryamount::player} of golden carrot named "&6Golden Carrot"
			set slot 19 of {_buygoldencarrots} to green glass named "&a+1"
			set slot 22 of {_buygoldencarrots} to green glass named "&a+5"
			set slot 25 of {_buygoldencarrots} to green glass named "&aSet to 64"
			set slot 28 of {_buygoldencarrots} to red glass named "&c-1"
			set slot 31 of {_buygoldencarrots} to red glass named "&c-5"
			set slot 34 of {_buygoldencarrots} to red glass named "&cSet to 1"
			set slot 49 of {_buygoldencarrots} to green concrete named "&2Buy"
			close player's inventory
			open {_buygoldencarrots} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buygoldencarrots} to a new chest inventory with 6 rows with name "&6Buy Golden Carrots"
			set slot 4 of {_buygoldencarrots} to {temporaryamount::player} of golden carrot named "&6Golden Carrot"
			set slot 19 of {_buygoldencarrots} to green glass named "&a+1"
			set slot 22 of {_buygoldencarrots} to green glass named "&a+5"
			set slot 25 of {_buygoldencarrots} to green glass named "&aSet to 64"
			set slot 28 of {_buygoldencarrots} to red glass named "&c-1"
			set slot 31 of {_buygoldencarrots} to red glass named "&c-5"
			set slot 34 of {_buygoldencarrots} to red glass named "&cSet to 1"
			set slot 49 of {_buygoldencarrots} to green concrete named "&2Buy"
			close player's inventory
			open {_buygoldencarrots} to player
		if index of event-slot = 25:
			set {temporaryamount::player} to 64
			set {_buygoldencarrots} to a new chest inventory with 6 rows with name "&6Buy Golden Carrots"
			set slot 4 of {_buygoldencarrots} to {temporaryamount::player} of golden carrot named "&6Golden Carrot"
			set slot 19 of {_buygoldencarrots} to green glass named "&a+1"
			set slot 22 of {_buygoldencarrots} to green glass named "&a+5"
			set slot 25 of {_buygoldencarrots} to green glass named "&aSet to 64"
			set slot 28 of {_buygoldencarrots} to red glass named "&c-1"
			set slot 31 of {_buygoldencarrots} to red glass named "&c-5"
			set slot 34 of {_buygoldencarrots} to red glass named "&cSet to 1"
			set slot 49 of {_buygoldencarrots} to green concrete named "&2Buy"
			close player's inventory
			open {_buygoldencarrots} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buygoldencarrots} to a new chest inventory with 6 rows with name "&6Buy Golden Carrots"
			set slot 4 of {_buygoldencarrots} to {temporaryamount::player} of golden carrot named "&6Golden Carrot"
			set slot 19 of {_buygoldencarrots} to green glass named "&a+1"
			set slot 22 of {_buygoldencarrots} to green glass named "&a+5"
			set slot 25 of {_buygoldencarrots} to green glass named "&aSet to 64"
			set slot 28 of {_buygoldencarrots} to red glass named "&c-1"
			set slot 31 of {_buygoldencarrots} to red glass named "&c-5"
			set slot 34 of {_buygoldencarrots} to red glass named "&cSet to 1"
			set slot 49 of {_buygoldencarrots} to green concrete named "&2Buy"
			close player's inventory
			open {_buygoldencarrots} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buygoldencarrots} to a new chest inventory with 6 rows with name "&6Buy Golden Carrots"
			set slot 4 of {_buygoldencarrots} to {temporaryamount::player} of golden carrot named "&6Golden Carrot"
			set slot 19 of {_buygoldencarrots} to green glass named "&a+1"
			set slot 22 of {_buygoldencarrots} to green glass named "&a+5"
			set slot 25 of {_buygoldencarrots} to green glass named "&aSet to 64"
			set slot 28 of {_buygoldencarrots} to red glass named "&c-1"
			set slot 31 of {_buygoldencarrots} to red glass named "&c-5"
			set slot 34 of {_buygoldencarrots} to red glass named "&cSet to 1"
			set slot 49 of {_buygoldencarrots} to green concrete named "&2Buy"
			close player's inventory
			open {_buygoldencarrots} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_buygoldencarrots} to a new chest inventory with 6 rows with name "&6Buy Golden Carrots"
			set slot 4 of {_buygoldencarrots} to {temporaryamount::player} of golden carrot named "&6Golden Carrot"
			set slot 19 of {_buygoldencarrots} to green glass named "&a+1"
			set slot 22 of {_buygoldencarrots} to green glass named "&a+5"
			set slot 25 of {_buygoldencarrots} to green glass named "&aSet to 64"
			set slot 28 of {_buygoldencarrots} to red glass named "&c-1"
			set slot 31 of {_buygoldencarrots} to red glass named "&c-5"
			set slot 34 of {_buygoldencarrots} to red glass named "&cSet to 1"
			set slot 49 of {_buygoldencarrots} to green concrete named "&2Buy"
			close player's inventory
			open {_buygoldencarrots} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {goldencarrotprice}
			if player's balance >= {payment::player}:
				give {temporaryamount::player} of golden carrots to player
				if {temporaryamount::player} is more than 1:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c golden carrots for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c golden carrots for &6%{payment::player}%&c coin!"
				else:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c golden carrot for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c golden carrot for &6%{payment::player}%&c coin!"
				set {_money} to player's balance
				set player's balance to {_money} - {payment::player}
			else:
				send "&cYou don't have enough money, baka!"
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
	if name of event-inventory is "&6Sell Golden Carrots":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_sellgoldencarrots} to a new chest inventory with 6 rows with name "&6Sell Golden Carrots"
			set slot 4 of {_sellgoldencarrots} to {temporaryamount::player} of golden carrot named "&6Golden Carrot"
			set slot 19 of {_sellgoldencarrots} to green glass named "&a+1"
			set slot 22 of {_sellgoldencarrots} to green glass named "&a+5"
			set slot 25 of {_sellgoldencarrots} to green glass named "&aSelect all"
			set slot 28 of {_sellgoldencarrots} to red glass named "&c-1"
			set slot 31 of {_sellgoldencarrots} to red glass named "&c-5"
			set slot 34 of {_sellgoldencarrots} to red glass named "&cSet to 1"
			set slot 49 of {_sellgoldencarrots} to green concrete named "&2Sell"
			close player's inventory
			open {_sellgoldencarrots} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_sellgoldencarrots} to a new chest inventory with 6 rows with name "&6Sell Golden Carrots"
			set slot 4 of {_sellgoldencarrots} to {temporaryamount::player} of golden carrot named "&6Golden Carrot"
			set slot 19 of {_sellgoldencarrots} to green glass named "&a+1"
			set slot 22 of {_sellgoldencarrots} to green glass named "&a+5"
			set slot 25 of {_sellgoldencarrots} to green glass named "&aSelect all"
			set slot 28 of {_sellgoldencarrots} to red glass named "&c-1"
			set slot 31 of {_sellgoldencarrots} to red glass named "&c-5"
			set slot 34 of {_sellgoldencarrots} to red glass named "&cSet to 1"
			set slot 49 of {_sellgoldencarrots} to green concrete named "&2Sell"
			close player's inventory
			open {_sellgoldencarrots} to player
		if index of event-slot = 25:
			set {itemamount::player} to 0
			set {itemamount::player} to number of golden carrots in player's inventory
			set {temporaryamount::player} to {itemamount::player}
			set {_sellgoldencarrots} to a new chest inventory with 6 rows with name "&6Sell Golden Carrots"
			set slot 4 of {_sellgoldencarrots} to {temporaryamount::player} of golden carrot named "&6Golden Carrot"
			set slot 19 of {_sellgoldencarrots} to green glass named "&a+1"
			set slot 22 of {_sellgoldencarrots} to green glass named "&a+5"
			set slot 25 of {_sellgoldencarrots} to green glass named "&aSelect all"
			set slot 28 of {_sellgoldencarrots} to red glass named "&c-1"
			set slot 31 of {_sellgoldencarrots} to red glass named "&c-5"
			set slot 34 of {_sellgoldencarrots} to red glass named "&cSet to 1"
			set slot 49 of {_sellgoldencarrots} to green concrete named "&2Sell"
			close player's inventory
			open {_sellgoldencarrots} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_sellgoldencarrots} to a new chest inventory with 6 rows with name "&6Sell Golden Carrots"
			set slot 4 of {_sellgoldencarrots} to {temporaryamount::player} of golden carrot named "&6Golden Carrot"
			set slot 19 of {_sellgoldencarrots} to green glass named "&a+1"
			set slot 22 of {_sellgoldencarrots} to green glass named "&a+5"
			set slot 25 of {_sellgoldencarrots} to green glass named "&aSelect all"
			set slot 28 of {_sellgoldencarrots} to red glass named "&c-1"
			set slot 31 of {_sellgoldencarrots} to red glass named "&c-5"
			set slot 34 of {_sellgoldencarrots} to red glass named "&cSet to 1"
			set slot 49 of {_sellgoldencarrots} to green concrete named "&2Sell"
			close player's inventory
			open {_sellgoldencarrots} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_sellgoldencarrots} to a new chest inventory with 6 rows with name "&6Sell Golden Carrots"
			set slot 4 of {_sellgoldencarrots} to {temporaryamount::player} of golden carrot named "&6Golden Carrot"
			set slot 19 of {_sellgoldencarrots} to green glass named "&a+1"
			set slot 22 of {_sellgoldencarrots} to green glass named "&a+5"
			set slot 25 of {_sellgoldencarrots} to green glass named "&aSelect all"
			set slot 28 of {_sellgoldencarrots} to red glass named "&c-1"
			set slot 31 of {_sellgoldencarrots} to red glass named "&c-5"
			set slot 34 of {_sellgoldencarrots} to red glass named "&cSet to 1"
			set slot 49 of {_sellgoldencarrots} to green concrete named "&2Sell"
			close player's inventory
			open {_sellgoldencarrots} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_sellgoldencarrots} to a new chest inventory with 6 rows with name "&6Sell Golden Carrots"
			set slot 4 of {_sellgoldencarrots} to {temporaryamount::player} of golden carrot named "&6Golden Carrot"
			set slot 19 of {_sellgoldencarrots} to green glass named "&a+1"
			set slot 22 of {_sellgoldencarrots} to green glass named "&a+5"
			set slot 25 of {_sellgoldencarrots} to green glass named "&aSelect all"
			set slot 28 of {_sellgoldencarrots} to red glass named "&c-1"
			set slot 31 of {_sellgoldencarrots} to red glass named "&c-5"
			set slot 34 of {_sellgoldencarrots} to red glass named "&cSet to 1"
			set slot 49 of {_sellgoldencarrots} to green concrete named "&2Sell"
			close player's inventory
			open {_sellgoldencarrots} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {goldencarrotsellprice}
			set {itemamount::player} to 0
			set {itemamount::player} to number of golden carrots in player's inventory
			if {itemamount::player} >= {temporaryamount::player} :
				remove {temporaryamount::player} of golden carrot from player's inventory
				if {temporaryamount::player} is more than 1:
					if {payment::player} is more than 1:
						send "&cYou sold &6%{temporaryamount::player}%&c golden carrots for &6%{payment::player}%&c coins!"
					else:
						send "&cYou sold &6%{temporaryamount::player}%&c golden carrots for &6%{payment::player}%&c coin!"
				else:
					if {payment::player} is more than 1:
						send "&cYou sold &6%{temporaryamount::player}%&c golden carrot for &6%{payment::player}%&c coins!"
					else:
						send "&cYou sold &6%{temporaryamount::player}%&c golden carrot for &6%{payment::player}%&c coin!"
				set {_money} to player's balance
				set player's balance to {_money} + {payment::player}
			else:
				send "&cYou selected more items than the ones you have!"
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
			delete {itemamount::player}
	if name of event-inventory is "&6Golden Apples":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 11:
			set {_buygoldenapples} to a new chest inventory with 6 rows with name "&6Buy Golden Apples"
			set {temporaryamount::player} to 1
			set slot 4 of {_buygoldenapples} to golden apple named "&6Golden Apple"
			set slot 19 of {_buygoldenapples} to green glass named "&a+1"
			set slot 22 of {_buygoldenapples} to green glass named "&a+5"
			set slot 25 of {_buygoldenapples} to green glass named "&aSet to 64"
			set slot 28 of {_buygoldenapples} to red glass named "&c-1"
			set slot 31 of {_buygoldenapples} to red glass named "&c-5"
			set slot 34 of {_buygoldenapples} to red glass named "&cSet to 1"
			set slot 49 of {_buygoldenapples} to green concrete named "&2Buy"
			close player's inventory
			open {_buygoldenapples} to player
		if index of event-slot = 15:
			set {_sellgoldenapples} to a new chest inventory with 6 rows with name "&6Sell Golden Apples"
			set {temporaryamount::player} to 1
			set slot 4 of {_sellgoldenapples} to golden apple named "&6Golden Apple"
			set slot 19 of {_sellgoldenapples} to green glass named "&a+1"
			set slot 22 of {_sellgoldenapples} to green glass named "&a+5"
			set slot 25 of {_sellgoldenapples} to green glass named "&aSelect all"
			set slot 28 of {_sellgoldenapples} to red glass named "&c-1"
			set slot 31 of {_sellgoldenapples} to red glass named "&c-5"
			set slot 34 of {_sellgoldenapples} to red glass named "&cSet to 1"
			set slot 49 of {_sellgoldenapples} to green concrete named "&2Sell"
			close player's inventory
			open {_sellgoldenapples} to player
	if name of event-inventory is "&6Buy Golden Apples":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buygoldenapples} to a new chest inventory with 6 rows with name "&6Buy Golden Apples"
			set slot 4 of {_buygoldenapples} to {temporaryamount::player} of golden apple named "&6Golden Apples"
			set slot 19 of {_buygoldenapples} to green glass named "&a+1"
			set slot 22 of {_buygoldenapples} to green glass named "&a+5"
			set slot 25 of {_buygoldenapples} to green glass named "&aSet to 64"
			set slot 28 of {_buygoldenapples} to red glass named "&c-1"
			set slot 31 of {_buygoldenapples} to red glass named "&c-5"
			set slot 34 of {_buygoldenapples} to red glass named "&cSet to 1"
			set slot 49 of {_buygoldenapples} to green concrete named "&2Buy"
			close player's inventory
			open {_buygoldenapples} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buygoldenapples} to a new chest inventory with 6 rows with name "&6Buy Golden Apples"
			set slot 4 of {_buygoldenapples} to {temporaryamount::player} of golden apple named "&6Golden Apples"
			set slot 19 of {_buygoldenapples} to green glass named "&a+1"
			set slot 22 of {_buygoldenapples} to green glass named "&a+5"
			set slot 25 of {_buygoldenapples} to green glass named "&aSet to 64"
			set slot 28 of {_buygoldenapples} to red glass named "&c-1"
			set slot 31 of {_buygoldenapples} to red glass named "&c-5"
			set slot 34 of {_buygoldenapples} to red glass named "&cSet to 1"
			set slot 49 of {_buygoldenapples} to green concrete named "&2Buy"
			close player's inventory
			open {_buygoldenapples} to player
		if index of event-slot = 25:
			set {temporaryamount::player} to 64
			set {_buygoldenapples} to a new chest inventory with 6 rows with name "&6Buy Golden Apples"
			set slot 4 of {_buygoldenapples} to {temporaryamount::player} of golden apple named "&6Golden Apples"
			set slot 19 of {_buygoldenapples} to green glass named "&a+1"
			set slot 22 of {_buygoldenapples} to green glass named "&a+5"
			set slot 25 of {_buygoldenapples} to green glass named "&aSet to 64"
			set slot 28 of {_buygoldenapples} to red glass named "&c-1"
			set slot 31 of {_buygoldenapples} to red glass named "&c-5"
			set slot 34 of {_buygoldenapples} to red glass named "&cSet to 1"
			set slot 49 of {_buygoldenapples} to green concrete named "&2Buy"
			close player's inventory
			open {_buygoldenapples} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buygoldenapples} to a new chest inventory with 6 rows with name "&6Buy Golden Apples"
			set slot 4 of {_buygoldenapples} to {temporaryamount::player} of golden apple named "&6Golden Apples"
			set slot 19 of {_buygoldenapples} to green glass named "&a+1"
			set slot 22 of {_buygoldenapples} to green glass named "&a+5"
			set slot 25 of {_buygoldenapples} to green glass named "&aSet to 64"
			set slot 28 of {_buygoldenapples} to red glass named "&c-1"
			set slot 31 of {_buygoldenapples} to red glass named "&c-5"
			set slot 34 of {_buygoldenapples} to red glass named "&cSet to 1"
			set slot 49 of {_buygoldenapples} to green concrete named "&2Buy"
			close player's inventory
			open {_buygoldenapples} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buygoldenapples} to a new chest inventory with 6 rows with name "&6Buy Golden Apples"
			set slot 4 of {_buygoldenapples} to {temporaryamount::player} of golden apple named "&6Golden Apples"
			set slot 19 of {_buygoldenapples} to green glass named "&a+1"
			set slot 22 of {_buygoldenapples} to green glass named "&a+5"
			set slot 25 of {_buygoldenapples} to green glass named "&aSet to 64"
			set slot 28 of {_buygoldenapples} to red glass named "&c-1"
			set slot 31 of {_buygoldenapples} to red glass named "&c-5"
			set slot 34 of {_buygoldenapples} to red glass named "&cSet to 1"
			set slot 49 of {_buygoldenapples} to green concrete named "&2Buy"
			close player's inventory
			open {_buygoldenapples} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_buygoldenapples} to a new chest inventory with 6 rows with name "&6Buy Golden Apples"
			set slot 4 of {_buygoldenapples} to {temporaryamount::player} of golden apple named "&6Golden Apples"
			set slot 19 of {_buygoldenapples} to green glass named "&a+1"
			set slot 22 of {_buygoldenapples} to green glass named "&a+5"
			set slot 25 of {_buygoldenapples} to green glass named "&aSet to 64"
			set slot 28 of {_buygoldenapples} to red glass named "&c-1"
			set slot 31 of {_buygoldenapples} to red glass named "&c-5"
			set slot 34 of {_buygoldenapples} to red glass named "&cSet to 1"
			set slot 49 of {_buygoldenapples} to green concrete named "&2Buy"
			close player's inventory
			open {_buygoldenapples} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {goldenappleprice}
			if player's balance >= {payment::player}:
				give {temporaryamount::player} of golden apple to player
				if {temporaryamount::player} is more than 1:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c golden apples for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c golden apples for &6%{payment::player}%&c coin!"
				else:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c golden apple for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c golden apple for &6%{payment::player}%&c coin!"
				set {_money} to player's balance
				set player's balance to {_money} - {payment::player}
			else:
				send "&cYou don't have enough money, baka!"
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
	if name of event-inventory is "&6Sell Golden Apples":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_sellgoldenapples} to a new chest inventory with 6 rows with name "&6Sell Golden Apples"
			set slot 4 of {_sellgoldenapples} to {temporaryamount::player} of golden apple named "&6Golden Apples"
			set slot 19 of {_sellgoldenapples} to green glass named "&a+1"
			set slot 22 of {_sellgoldenapples} to green glass named "&a+5"
			set slot 25 of {_sellgoldenapples} to green glass named "&aSelect all"
			set slot 28 of {_sellgoldenapples} to red glass named "&c-1"
			set slot 31 of {_sellgoldenapples} to red glass named "&c-5"
			set slot 34 of {_sellgoldenapples} to red glass named "&cSet to 1"
			set slot 49 of {_sellgoldenapples} to green concrete named "&2Sell"
			close player's inventory
			open {_sellgoldenapples} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_sellgoldenapples} to a new chest inventory with 6 rows with name "&6Sell Golden Apples"
			set slot 4 of {_sellgoldenapples} to {temporaryamount::player} of golden apple named "&6Golden Apples"
			set slot 19 of {_sellgoldenapples} to green glass named "&a+1"
			set slot 22 of {_sellgoldenapples} to green glass named "&a+5"
			set slot 25 of {_sellgoldenapples} to green glass named "&aSelect all"
			set slot 28 of {_sellgoldenapples} to red glass named "&c-1"
			set slot 31 of {_sellgoldenapples} to red glass named "&c-5"
			set slot 34 of {_sellgoldenapples} to red glass named "&cSet to 1"
			set slot 49 of {_sellgoldenapples} to green concrete named "&2Sell"
			close player's inventory
			open {_sellgoldenapples} to player
		if index of event-slot = 25:
			set {itemamount::player} to 0
			set {itemamount::player} to number of golden apple in player's inventory
			set {temporaryamount::player} to {itemamount::player}
			set {_sellgoldenapples} to a new chest inventory with 6 rows with name "&6Sell Golden Apples"
			set slot 4 of {_sellgoldenapples} to {temporaryamount::player} of golden apple named "&6Golden Apples"
			set slot 19 of {_sellgoldenapples} to green glass named "&a+1"
			set slot 22 of {_sellgoldenapples} to green glass named "&a+5"
			set slot 25 of {_sellgoldenapples} to green glass named "&aSelect all"
			set slot 28 of {_sellgoldenapples} to red glass named "&c-1"
			set slot 31 of {_sellgoldenapples} to red glass named "&c-5"
			set slot 34 of {_sellgoldenapples} to red glass named "&cSet to 1"
			set slot 49 of {_sellgoldenapples} to green concrete named "&2Sell"
			close player's inventory
			open {_sellgoldenapples} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_sellgoldenapples} to a new chest inventory with 6 rows with name "&6Sell Golden Apples"
			set slot 4 of {_sellgoldenapples} to {temporaryamount::player} of golden apple named "&6Golden Apples"
			set slot 19 of {_sellgoldenapples} to green glass named "&a+1"
			set slot 22 of {_sellgoldenapples} to green glass named "&a+5"
			set slot 25 of {_sellgoldenapples} to green glass named "&aSelect all"
			set slot 28 of {_sellgoldenapples} to red glass named "&c-1"
			set slot 31 of {_sellgoldenapples} to red glass named "&c-5"
			set slot 34 of {_sellgoldenapples} to red glass named "&cSet to 1"
			set slot 49 of {_sellgoldenapples} to green concrete named "&2Sell"
			close player's inventory
			open {_sellgoldenapples} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_sellgoldenapples} to a new chest inventory with 6 rows with name "&6Sell Golden Apples"
			set slot 4 of {_sellgoldenapples} to {temporaryamount::player} of golden apple named "&6Golden Apples"
			set slot 19 of {_sellgoldenapples} to green glass named "&a+1"
			set slot 22 of {_sellgoldenapples} to green glass named "&a+5"
			set slot 25 of {_sellgoldenapples} to green glass named "&aSelect all"
			set slot 28 of {_sellgoldenapples} to red glass named "&c-1"
			set slot 31 of {_sellgoldenapples} to red glass named "&c-5"
			set slot 34 of {_sellgoldenapples} to red glass named "&cSet to 1"
			set slot 49 of {_sellgoldenapples} to green concrete named "&2Sell"
			close player's inventory
			open {_sellgoldenapples} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_sellgoldenapples} to a new chest inventory with 6 rows with name "&6Sell Golden Apples"
			set slot 4 of {_sellgoldenapples} to {temporaryamount::player} of golden apple named "&6Golden Apples"
			set slot 19 of {_sellgoldenapples} to green glass named "&a+1"
			set slot 22 of {_sellgoldenapples} to green glass named "&a+5"
			set slot 25 of {_sellgoldenapples} to green glass named "&aSelect all"
			set slot 28 of {_sellgoldenapples} to red glass named "&c-1"
			set slot 31 of {_sellgoldenapples} to red glass named "&c-5"
			set slot 34 of {_sellgoldenapples} to red glass named "&cSet to 1"
			set slot 49 of {_sellgoldenapples} to green concrete named "&2Sell"
			close player's inventory
			open {_sellgoldenapples} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {goldenapplesellprice}
			set {itemamount::player} to 0
			set {itemamount::player} to number of golden apple in player's inventory
			if {itemamount::player} >= {temporaryamount::player} :
				remove {temporaryamount::player} of golden apple from player's inventory
				if {temporaryamount::player} is more than 1:
					if {payment::player} is more than 1:
						send "&cYou sold &6%{temporaryamount::player}%&c golden apples for &6%{payment::player}%&c coins!"
					else:
						send "&cYou sold &6%{temporaryamount::player}%&c golden apples for &6%{payment::player}%&c coin!"
				else:
					if {payment::player} is more than 1:
						send "&cYou sold &6%{temporaryamount::player}%&c golden apple for &6%{payment::player}%&c coins!"
					else:
						send "&cYou sold &6%{temporaryamount::player}%&c golden apple for &6%{payment::player}%&c coin!"
				set {_money} to player's balance
				set player's balance to {_money} + {payment::player}
			else:
				send "&cYou selected more items than the ones you have!"
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
			delete {itemamount::player}
	if name of event-inventory is "&6Enchanted Golden Apples":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 11:
			set {_buyegoldenapples} to a new chest inventory with 6 rows with name "&6Buy Enchanted Golden Apples"
			set {temporaryamount::player} to 1
			set slot 4 of {_buyegoldenapples} to enchanted golden apple named "&6Enchanted Golden Apples"
			set slot 19 of {_buyegoldenapples} to green glass named "&a+1"
			set slot 22 of {_buyegoldenapples} to green glass named "&a+5"
			set slot 25 of {_buyegoldenapples} to green glass named "&aSet to 64"
			set slot 28 of {_buyegoldenapples} to red glass named "&c-1"
			set slot 31 of {_buyegoldenapples} to red glass named "&c-5"
			set slot 34 of {_buyegoldenapples} to red glass named "&cSet to 1"
			set slot 49 of {_buyegoldenapples} to green concrete named "&2Buy"
			close player's inventory
			open {_buyegoldenapples} to player
		if index of event-slot = 15:
			set {_sellegoldenapples} to a new chest inventory with 6 rows with name "&6Sell Enchanted Golden Apples"
			set {temporaryamount::player} to 1
			set slot 4 of {_sellegoldenapples} to enchanted golden apple named "&6Enchanted Golden Apples"
			set slot 19 of {_sellegoldenapples} to green glass named "&a+1"
			set slot 22 of {_sellegoldenapples} to green glass named "&a+5"
			set slot 25 of {_sellegoldenapples} to green glass named "&aSelect all"
			set slot 28 of {_sellegoldenapples} to red glass named "&c-1"
			set slot 31 of {_sellegoldenapples} to red glass named "&c-5"
			set slot 34 of {_sellegoldenapples} to red glass named "&cSet to 1"
			set slot 49 of {_sellegoldenapples} to green concrete named "&2Sell"
			close player's inventory
			open {_sellegoldenapples} to player
	if name of event-inventory is "&6Buy Enchanted Golden Apples":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buyegoldenapples} to a new chest inventory with 6 rows with name "&6Buy Enchanted Golden Apples"
			set slot 4 of {_buyegoldenapples} to {temporaryamount::player} of enchanted golden apple named "&6Enchanted Golden Apples"
			set slot 19 of {_buyegoldenapples} to green glass named "&a+1"
			set slot 22 of {_buyegoldenapples} to green glass named "&a+5"
			set slot 25 of {_buyegoldenapples} to green glass named "&aSet to 64"
			set slot 28 of {_buyegoldenapples} to red glass named "&c-1"
			set slot 31 of {_buyegoldenapples} to red glass named "&c-5"
			set slot 34 of {_buyegoldenapples} to red glass named "&cSet to 1"
			set slot 49 of {_buyegoldenapples} to green concrete named "&2Buy"
			close player's inventory
			open {_buyegoldenapples} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buyegoldenapples} to a new chest inventory with 6 rows with name "&6Buy Enchanted Golden Apples"
			set slot 4 of {_buyegoldenapples} to {temporaryamount::player} of enchanted golden apple named "&6Enchanted Golden Apples"
			set slot 19 of {_buyegoldenapples} to green glass named "&a+1"
			set slot 22 of {_buyegoldenapples} to green glass named "&a+5"
			set slot 25 of {_buyegoldenapples} to green glass named "&aSet to 64"
			set slot 28 of {_buyegoldenapples} to red glass named "&c-1"
			set slot 31 of {_buyegoldenapples} to red glass named "&c-5"
			set slot 34 of {_buyegoldenapples} to red glass named "&cSet to 1"
			set slot 49 of {_buyegoldenapples} to green concrete named "&2Buy"
			close player's inventory
			open {_buyegoldenapples} to player
		if index of event-slot = 25:
			set {temporaryamount::player} to 64
			set {_buyegoldenapples} to a new chest inventory with 6 rows with name "&6Buy Enchanted Golden Apples"
			set slot 4 of {_buyegoldenapples} to {temporaryamount::player} of enchanted golden apple named "&6Enchanted Golden Apples"
			set slot 19 of {_buyegoldenapples} to green glass named "&a+1"
			set slot 22 of {_buyegoldenapples} to green glass named "&a+5"
			set slot 25 of {_buyegoldenapples} to green glass named "&aSet to 64"
			set slot 28 of {_buyegoldenapples} to red glass named "&c-1"
			set slot 31 of {_buyegoldenapples} to red glass named "&c-5"
			set slot 34 of {_buyegoldenapples} to red glass named "&cSet to 1"
			set slot 49 of {_buyegoldenapples} to green concrete named "&2Buy"
			close player's inventory
			open {_buyegoldenapples} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buyegoldenapples} to a new chest inventory with 6 rows with name "&6Buy Enchanted Golden Apples"
			set slot 4 of {_buyegoldenapples} to {temporaryamount::player} of enchanted golden apple named "&6Enchanted Golden Apples"
			set slot 19 of {_buyegoldenapples} to green glass named "&a+1"
			set slot 22 of {_buyegoldenapples} to green glass named "&a+5"
			set slot 25 of {_buyegoldenapples} to green glass named "&aSet to 64"
			set slot 28 of {_buyegoldenapples} to red glass named "&c-1"
			set slot 31 of {_buyegoldenapples} to red glass named "&c-5"
			set slot 34 of {_buyegoldenapples} to red glass named "&cSet to 1"
			set slot 49 of {_buyegoldenapples} to green concrete named "&2Buy"
			close player's inventory
			open {_buyegoldenapples} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buyegoldenapples} to a new chest inventory with 6 rows with name "&6Buy Enchanted Golden Apples"
			set slot 4 of {_buyegoldenapples} to {temporaryamount::player} of enchanted golden apple named "&6Enchanted Golden Apples"
			set slot 19 of {_buyegoldenapples} to green glass named "&a+1"
			set slot 22 of {_buyegoldenapples} to green glass named "&a+5"
			set slot 25 of {_buyegoldenapples} to green glass named "&aSet to 64"
			set slot 28 of {_buyegoldenapples} to red glass named "&c-1"
			set slot 31 of {_buyegoldenapples} to red glass named "&c-5"
			set slot 34 of {_buyegoldenapples} to red glass named "&cSet to 1"
			set slot 49 of {_buyegoldenapples} to green concrete named "&2Buy"
			close player's inventory
			open {_buyegoldenapples} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_buyegoldenapples} to a new chest inventory with 6 rows with name "&6Buy Enchanted Golden Apples"
			set slot 4 of {_buyegoldenapples} to {temporaryamount::player} of enchanted golden apple named "&6Enchanted Golden Apples"
			set slot 19 of {_buyegoldenapples} to green glass named "&a+1"
			set slot 22 of {_buyegoldenapples} to green glass named "&a+5"
			set slot 25 of {_buyegoldenapples} to green glass named "&aSet to 64"
			set slot 28 of {_buyegoldenapples} to red glass named "&c-1"
			set slot 31 of {_buyegoldenapples} to red glass named "&c-5"
			set slot 34 of {_buyegoldenapples} to red glass named "&cSet to 1"
			set slot 49 of {_buyegoldenapples} to green concrete named "&2Buy"
			close player's inventory
			open {_buyegoldenapples} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {egoldenappleprice}
			if player's balance >= {payment::player}:
				give {temporaryamount::player} of enchanted golden apple to player
				if {temporaryamount::player} is more than 1:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c enchanted golden apples for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c enchanted golden apples for &6%{payment::player}%&c coin!"
				else:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c enchanted golden apple for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c enchanted golden apple for &6%{payment::player}%&c coin!"
				set {_money} to player's balance
				set player's balance to {_money} - {payment::player}
			else:
				send "&cYou don't have enough money, baka!"
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
	if name of event-inventory is "&6Sell Enchanted Golden Apples":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_sellegoldenapples} to a new chest inventory with 6 rows with name "&6Sell Enchanted Golden Apples"
			set slot 4 of {_sellegoldenapples} to {temporaryamount::player} of enchanted golden apple named "&6Enchanted Golden Apples"
			set slot 19 of {_sellegoldenapples} to green glass named "&a+1"
			set slot 22 of {_sellegoldenapples} to green glass named "&a+5"
			set slot 25 of {_sellegoldenapples} to green glass named "&aSelect all"
			set slot 28 of {_sellegoldenapples} to red glass named "&c-1"
			set slot 31 of {_sellegoldenapples} to red glass named "&c-5"
			set slot 34 of {_sellegoldenapples} to red glass named "&cSet to 1"
			set slot 49 of {_sellegoldenapples} to green concrete named "&2Sell"
			close player's inventory
			open {_sellegoldenapples} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_sellegoldenapples} to a new chest inventory with 6 rows with name "&6Sell Enchanted Golden Apples"
			set slot 4 of {_sellegoldenapples} to {temporaryamount::player} of enchanted golden apple named "&6Enchanted Golden Apples"
			set slot 19 of {_sellegoldenapples} to green glass named "&a+1"
			set slot 22 of {_sellegoldenapples} to green glass named "&a+5"
			set slot 25 of {_sellegoldenapples} to green glass named "&aSelect all"
			set slot 28 of {_sellegoldenapples} to red glass named "&c-1"
			set slot 31 of {_sellegoldenapples} to red glass named "&c-5"
			set slot 34 of {_sellegoldenapples} to red glass named "&cSet to 1"
			set slot 49 of {_sellegoldenapples} to green concrete named "&2Sell"
			close player's inventory
			open {_sellegoldenapples} to player
		if index of event-slot = 25:
			set {itemamount::player} to 0
			set {itemamount::player} to number of enchanted golden apple in player's inventory
			set {temporaryamount::player} to {itemamount::player}
			set {_sellegoldenapples} to a new chest inventory with 6 rows with name "&6Sell Enchanted Golden Apples"
			set slot 4 of {_sellegoldenapples} to {temporaryamount::player} of enchanted golden apple named "&6Enchanted Golden Apples"
			set slot 19 of {_sellegoldenapples} to green glass named "&a+1"
			set slot 22 of {_sellegoldenapples} to green glass named "&a+5"
			set slot 25 of {_sellegoldenapples} to green glass named "&aSelect all"
			set slot 28 of {_sellegoldenapples} to red glass named "&c-1"
			set slot 31 of {_sellegoldenapples} to red glass named "&c-5"
			set slot 34 of {_sellegoldenapples} to red glass named "&cSet to 1"
			set slot 49 of {_sellegoldenapples} to green concrete named "&2Sell"
			close player's inventory
			open {_sellegoldenapples} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_sellegoldenapples} to a new chest inventory with 6 rows with name "&6Sell Enchanted Golden Apples"
			set slot 4 of {_sellegoldenapples} to {temporaryamount::player} of enchanted golden apple named "&6Enchanted Golden Apples"
			set slot 19 of {_sellegoldenapples} to green glass named "&a+1"
			set slot 22 of {_sellegoldenapples} to green glass named "&a+5"
			set slot 25 of {_sellegoldenapples} to green glass named "&aSelect all"
			set slot 28 of {_sellegoldenapples} to red glass named "&c-1"
			set slot 31 of {_sellegoldenapples} to red glass named "&c-5"
			set slot 34 of {_sellegoldenapples} to red glass named "&cSet to 1"
			set slot 49 of {_sellegoldenapples} to green concrete named "&2Sell"
			close player's inventory
			open {_sellegoldenapples} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_sellegoldenapples} to a new chest inventory with 6 rows with name "&6Sell Enchanted Golden Apples"
			set slot 4 of {_sellegoldenapples} to {temporaryamount::player} of enchanted golden apple named "&6Enchanted Golden Apples"
			set slot 19 of {_sellegoldenapples} to green glass named "&a+1"
			set slot 22 of {_sellegoldenapples} to green glass named "&a+5"
			set slot 25 of {_sellegoldenapples} to green glass named "&aSelect all"
			set slot 28 of {_sellegoldenapples} to red glass named "&c-1"
			set slot 31 of {_sellegoldenapples} to red glass named "&c-5"
			set slot 34 of {_sellegoldenapples} to red glass named "&cSet to 1"
			set slot 49 of {_sellegoldenapples} to green concrete named "&2Sell"
			close player's inventory
			open {_sellegoldenapples} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_sellegoldenapples} to a new chest inventory with 6 rows with name "&6Sell Enchanted Golden Apples"
			set slot 4 of {_sellegoldenapples} to {temporaryamount::player} of enchanted golden apple named "&6Enchanted Golden Apples"
			set slot 19 of {_sellegoldenapples} to green glass named "&a+1"
			set slot 22 of {_sellegoldenapples} to green glass named "&a+5"
			set slot 25 of {_sellegoldenapples} to green glass named "&aSelect all"
			set slot 28 of {_sellegoldenapples} to red glass named "&c-1"
			set slot 31 of {_sellegoldenapples} to red glass named "&c-5"
			set slot 34 of {_sellegoldenapples} to red glass named "&cSet to 1"
			set slot 49 of {_sellegoldenapples} to green concrete named "&2Sell"
			close player's inventory
			open {_sellegoldenapples} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {egoldenapplesellprice}
			set {itemamount::player} to 0
			set {itemamount::player} to number of enchanted golden apple in player's inventory
			if {itemamount::player} >= {temporaryamount::player} :
				remove {temporaryamount::player} of enchanted golden apple from player's inventory
				if {temporaryamount::player} is more than 1:
					if {payment::player} is more than 1:
						send "&cYou sold &6%{temporaryamount::player}%&c enchanted golden apples for &6%{payment::player}%&c coins!"
					else:
						send "&cYou sold &6%{temporaryamount::player}%&c enchanted golden apples for &6%{payment::player}%&c coin!"
				else:
					if {payment::player} is more than 1:
						send "&cYou sold &6%{temporaryamount::player}%&c enchanted golden apple for &6%{payment::player}%&c coins!"
					else:
						send "&cYou sold &6%{temporaryamount::player}%&c enchanted golden apple for &6%{payment::player}%&c coin!"
				set {_money} to player's balance
				set player's balance to {_money} + {payment::player}
			else:
				send "&cYou selected more items than the ones you have!"
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
			delete {itemamount::player}
	if name of event-inventory is "&6Steaks":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 11:
			set {_buysteaks} to a new chest inventory with 6 rows with name "&6Buy Steaks"
			set {temporaryamount::player} to 1
			set slot 4 of {_buysteaks} to cooked beef named "&6Steak"
			set slot 19 of {_buysteaks} to green glass named "&a+1"
			set slot 22 of {_buysteaks} to green glass named "&a+5"
			set slot 25 of {_buysteaks} to green glass named "&aSet to 64"
			set slot 28 of {_buysteaks} to red glass named "&c-1"
			set slot 31 of {_buysteaks} to red glass named "&c-5"
			set slot 34 of {_buysteaks} to red glass named "&cSet to 1"
			set slot 49 of {_buysteaks} to green concrete named "&2Buy"
			close player's inventory
			open {_buysteaks} to player
		if index of event-slot = 15:
			set {_sellsteaks} to a new chest inventory with 6 rows with name "&6Sell Steaks"
			set {temporaryamount::player} to 1
			set slot 4 of {_sellsteaks} to cooked beef named "&6Steak"
			set slot 19 of {_sellsteaks} to green glass named "&a+1"
			set slot 22 of {_sellsteaks} to green glass named "&a+5"
			set slot 25 of {_sellsteaks} to green glass named "&aSelect all"
			set slot 28 of {_sellsteaks} to red glass named "&c-1"
			set slot 31 of {_sellsteaks} to red glass named "&c-5"
			set slot 34 of {_sellsteaks} to red glass named "&cSet to 1"
			set slot 49 of {_sellsteaks} to green concrete named "&2Sell"
			close player's inventory
			open {_sellsteaks} to player
	if name of event-inventory is "&6Buy Steaks":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buysteaks} to a new chest inventory with 6 rows with name "&6Buy Steaks"
			set slot 4 of {_buysteaks} to {temporaryamount::player} of cooked beef named "&6Steak"
			set slot 19 of {_buysteaks} to green glass named "&a+1"
			set slot 22 of {_buysteaks} to green glass named "&a+5"
			set slot 25 of {_buysteaks} to green glass named "&aSet to 64"
			set slot 28 of {_buysteaks} to red glass named "&c-1"
			set slot 31 of {_buysteaks} to red glass named "&c-5"
			set slot 34 of {_buysteaks} to red glass named "&cSet to 1"
			set slot 49 of {_buysteaks} to green concrete named "&2Buy"
			close player's inventory
			open {_buysteaks} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_buysteaks} to a new chest inventory with 6 rows with name "&6Buy Steaks"
			set slot 4 of {_buysteaks} to {temporaryamount::player} of cooked beef named "&6Steak"
			set slot 19 of {_buysteaks} to green glass named "&a+1"
			set slot 22 of {_buysteaks} to green glass named "&a+5"
			set slot 25 of {_buysteaks} to green glass named "&aSet to 64"
			set slot 28 of {_buysteaks} to red glass named "&c-1"
			set slot 31 of {_buysteaks} to red glass named "&c-5"
			set slot 34 of {_buysteaks} to red glass named "&cSet to 1"
			set slot 49 of {_buysteaks} to green concrete named "&2Buy"
			close player's inventory
			open {_buysteaks} to player
		if index of event-slot = 25:
			set {temporaryamount::player} to 64
			set {_buysteaks} to a new chest inventory with 6 rows with name "&6Buy Steaks"
			set slot 4 of {_buysteaks} to {temporaryamount::player} of cooked beef named "&6Steak"
			set slot 19 of {_buysteaks} to green glass named "&a+1"
			set slot 22 of {_buysteaks} to green glass named "&a+5"
			set slot 25 of {_buysteaks} to green glass named "&aSet to 64"
			set slot 28 of {_buysteaks} to red glass named "&c-1"
			set slot 31 of {_buysteaks} to red glass named "&c-5"
			set slot 34 of {_buysteaks} to red glass named "&cSet to 1"
			set slot 49 of {_buysteaks} to green concrete named "&2Buy"
			close player's inventory
			open {_buysteaks} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buysteaks} to a new chest inventory with 6 rows with name "&6Buy Steaks"
			set slot 4 of {_buysteaks} to {temporaryamount::player} of cooked beef named "&6Steak"
			set slot 19 of {_buysteaks} to green glass named "&a+1"
			set slot 22 of {_buysteaks} to green glass named "&a+5"
			set slot 25 of {_buysteaks} to green glass named "&aSet to 64"
			set slot 28 of {_buysteaks} to red glass named "&c-1"
			set slot 31 of {_buysteaks} to red glass named "&c-5"
			set slot 34 of {_buysteaks} to red glass named "&cSet to 1"
			set slot 49 of {_buysteaks} to green concrete named "&2Buy"
			close player's inventory
			open {_buysteaks} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_buysteaks} to a new chest inventory with 6 rows with name "&6Buy Steaks"
			set slot 4 of {_buysteaks} to {temporaryamount::player} of cooked beef named "&6Steak"
			set slot 19 of {_buysteaks} to green glass named "&a+1"
			set slot 22 of {_buysteaks} to green glass named "&a+5"
			set slot 25 of {_buysteaks} to green glass named "&aSet to 64"
			set slot 28 of {_buysteaks} to red glass named "&c-1"
			set slot 31 of {_buysteaks} to red glass named "&c-5"
			set slot 34 of {_buysteaks} to red glass named "&cSet to 1"
			set slot 49 of {_buysteaks} to green concrete named "&2Buy"
			close player's inventory
			open {_buysteaks} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_buysteaks} to a new chest inventory with 6 rows with name "&6Buy Steaks"
			set slot 4 of {_buysteaks} to {temporaryamount::player} of cooked beef named "&6Steak"
			set slot 19 of {_buysteaks} to green glass named "&a+1"
			set slot 22 of {_buysteaks} to green glass named "&a+5"
			set slot 25 of {_buysteaks} to green glass named "&aSet to 64"
			set slot 28 of {_buysteaks} to red glass named "&c-1"
			set slot 31 of {_buysteaks} to red glass named "&c-5"
			set slot 34 of {_buysteaks} to red glass named "&cSet to 1"
			set slot 49 of {_buysteaks} to green concrete named "&2Buy"
			close player's inventory
			open {_buysteaks} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {steakprice}
			if player's balance >= {payment::player}:
				give {temporaryamount::player} of steaks to player
				if {temporaryamount::player} is more than 1:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c steaks for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c steaks for &6%{payment::player}%&c coin!"
				else:
					if {payment::player} is more than 1:
						send "&cYou bought &6%{temporaryamount::player}%&c cooked beef for &6%{payment::player}%&c coins!"
					else:
						send "&cYou bought &6%{temporaryamount::player}%&c cooked beef for &6%{payment::player}%&c coin!"
				set {_money} to player's balance
				set player's balance to {_money} - {payment::player}
			else:
				send "&cYou don't have enough money, baka!"
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
	if name of event-inventory is "&6Sell Steaks":
		play sound "ui.button.click" to player
		cancel event
		if index of event-slot = 19:
			if {temporaryamount::player} is less than 64:
				add 1 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_sellsteaks} to a new chest inventory with 6 rows with name "&6Sell Steaks"
			set slot 4 of {_sellsteaks} to {temporaryamount::player} of cooked beef named "&6Steak"
			set slot 19 of {_sellsteaks} to green glass named "&a+1"
			set slot 22 of {_sellsteaks} to green glass named "&a+5"
			set slot 25 of {_sellsteaks} to green glass named "&aSelect all"
			set slot 28 of {_sellsteaks} to red glass named "&c-1"
			set slot 31 of {_sellsteaks} to red glass named "&c-5"
			set slot 34 of {_sellsteaks} to red glass named "&cSet to 1"
			set slot 49 of {_sellsteaks} to green concrete named "&2Sell"
			close player's inventory
			open {_sellsteaks} to player
		if index of event-slot = 22:
			if {temporaryamount::player} is less than 64:
				add 5 to {temporaryamount::player}
			else:
				set {temporaryamount::player} to 64
			set {_sellsteaks} to a new chest inventory with 6 rows with name "&6Sell Steaks"
			set slot 4 of {_sellsteaks} to {temporaryamount::player} of cooked beef named "&6Steak"
			set slot 19 of {_sellsteaks} to green glass named "&a+1"
			set slot 22 of {_sellsteaks} to green glass named "&a+5"
			set slot 25 of {_sellsteaks} to green glass named "&aSelect all"
			set slot 28 of {_sellsteaks} to red glass named "&c-1"
			set slot 31 of {_sellsteaks} to red glass named "&c-5"
			set slot 34 of {_sellsteaks} to red glass named "&cSet to 1"
			set slot 49 of {_sellsteaks} to green concrete named "&2Sell"
			close player's inventory
			open {_sellsteaks} to player
		if index of event-slot = 25:
			set {itemamount::player} to 0
			set {itemamount::player} to number of steaks in player's inventory
			set {temporaryamount::player} to {itemamount::player}
			set {_sellsteaks} to a new chest inventory with 6 rows with name "&6Sell Steaks"
			set slot 4 of {_sellsteaks} to {temporaryamount::player} of cooked beef named "&6Steak"
			set slot 19 of {_sellsteaks} to green glass named "&a+1"
			set slot 22 of {_sellsteaks} to green glass named "&a+5"
			set slot 25 of {_sellsteaks} to green glass named "&aSelect all"
			set slot 28 of {_sellsteaks} to red glass named "&c-1"
			set slot 31 of {_sellsteaks} to red glass named "&c-5"
			set slot 34 of {_sellsteaks} to red glass named "&cSet to 1"
			set slot 49 of {_sellsteaks} to green concrete named "&2Sell"
			close player's inventory
			open {_sellsteaks} to player
		if index of event-slot = 28:
			if {temporaryamount::player} is more than 1:
				subtract 1 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_sellsteaks} to a new chest inventory with 6 rows with name "&6Sell Steaks"
			set slot 4 of {_sellsteaks} to {temporaryamount::player} of cooked beef named "&6Steak"
			set slot 19 of {_sellsteaks} to green glass named "&a+1"
			set slot 22 of {_sellsteaks} to green glass named "&a+5"
			set slot 25 of {_sellsteaks} to green glass named "&aSelect all"
			set slot 28 of {_sellsteaks} to red glass named "&c-1"
			set slot 31 of {_sellsteaks} to red glass named "&c-5"
			set slot 34 of {_sellsteaks} to red glass named "&cSet to 1"
			set slot 49 of {_sellsteaks} to green concrete named "&2Sell"
			close player's inventory
			open {_sellsteaks} to player
		if index of event-slot = 31:
			if {temporaryamount::player} is more than 5:
				subtract 5 from {temporaryamount::player}
			else:
				set {temporaryamount::player} to 1
			set {_sellsteaks} to a new chest inventory with 6 rows with name "&6Sell Steaks"
			set slot 4 of {_sellsteaks} to {temporaryamount::player} of cooked beef named "&6Steak"
			set slot 19 of {_sellsteaks} to green glass named "&a+1"
			set slot 22 of {_sellsteaks} to green glass named "&a+5"
			set slot 25 of {_sellsteaks} to green glass named "&aSelect all"
			set slot 28 of {_sellsteaks} to red glass named "&c-1"
			set slot 31 of {_sellsteaks} to red glass named "&c-5"
			set slot 34 of {_sellsteaks} to red glass named "&cSet to 1"
			set slot 49 of {_sellsteaks} to green concrete named "&2Sell"
			close player's inventory
			open {_sellsteaks} to player
		if index of event-slot = 34:
			set {temporaryamount::player} to 1
			set {_sellsteaks} to a new chest inventory with 6 rows with name "&6Sell Steaks"
			set slot 4 of {_sellsteaks} to {temporaryamount::player} of cooked beef named "&6Steak"
			set slot 19 of {_sellsteaks} to green glass named "&a+1"
			set slot 22 of {_sellsteaks} to green glass named "&a+5"
			set slot 25 of {_sellsteaks} to green glass named "&aSelect all"
			set slot 28 of {_sellsteaks} to red glass named "&c-1"
			set slot 31 of {_sellsteaks} to red glass named "&c-5"
			set slot 34 of {_sellsteaks} to red glass named "&cSet to 1"
			set slot 49 of {_sellsteaks} to green concrete named "&2Sell"
			close player's inventory
			open {_sellsteaks} to player
		if index of event-slot = 49:
			set {payment::player} to {temporaryamount::player} * {steaksellprice}
			set {itemamount::player} to 0
			set {itemamount::player} to number of steaks in player's inventory
			if {itemamount::player} >= {temporaryamount::player} :
				remove {temporaryamount::player} of cooked beef from player's inventory
				if {temporaryamount::player} is more than 1:
					if {payment::player} is more than 1:
						send "&cYou sold &6%{temporaryamount::player}%&c steaks for &6%{payment::player}%&c coins!"
					else:
						send "&cYou sold &6%{temporaryamount::player}%&c steaks for &6%{payment::player}%&c coin!"
				else:
					if {payment::player} is more than 1:
						send "&cYou sold &6%{temporaryamount::player}%&c cooked beef for &6%{payment::player}%&c coins!"
					else:
						send "&cYou sold &6%{temporaryamount::player}%&c cooked beef for &6%{payment::player}%&c coin!"
				set {_money} to player's balance
				set player's balance to {_money} + {payment::player}
			else:
				send "&cYou selected more items than the ones you have!"
			close player's inventory
			delete {payment::player}
			delete {temporaryamount::player}
			delete {itemamount::player}

on quit:
	delete {payment::player}
	delete {temporaryamount::player}
	delete {itemamount::player}