set slot 0 of player's inventory to 1 of compass named "&4Mene"
set slot 4 of player's inventory to 1 of diamond named "&bVIP"
set slot 8 of player's inventory to 1 of player's skull named "&6%player%"
stop
else:
set slot 8 of player's inventory to 1 of ender chest named "&fMirriCraft"
stop
if arg-1 is "reload":
if player has permission "mirricraft.admin":
message "&7[&2MirriCraft&7]&r Reloading..."
make player execute command "/skript reload mirricraft"
stop
if arg-1 is "gui":
if arg-2 is not set:
wait 2 tick
open chest inventory with 3 row named "MirriCraft" to player
wait 2 tick
loop integers between 0 and 26:
format slot loop-integer of player with gray stained glass pane named "&7" to be unstealable
if player have permission "mirricraft.visit":
format slot 11 of player with compass named "&4Mene" with lore "-" to close then run [execute player command "/mirricraft gui visit"]
else:
format slot 11 of player with compass named "&4Mene" with lore "-" to close then run [execute player command "/mirricraft visit"]
#if player have permission "mirricraft.kits":
# format slot 12 of player with chest named "&6Kits" with lore "-" to close then run [execute player command "/mirricraft kits"]
#else:
# format slot 12 of player with chest named "&6Kits" with lore "-" to close then run [execute player command "/mirricraft kits"]
if player have permission "mirricraft.vip":
format slot 13 of player with diamond named "&bVIP" with lore "-" to close then run [execute player command "/mirricraft gui vip"]
else:
format slot 13 of player with diamond named "&bVIP" with lore "-" to close then run [execute player command "/mirricraft gui vip"]
format slot 15 of player with player's skull named "&6Player" with lore "&o&f%player%" to close then run [execute player command "/mirricraft gui player"]
if player have permission "mirricraft.admin":
format slot 16 of player with diamond axe named "&5Ylläpito" with lore "-" to close then run [execute player command "/mirricraft gui admin"]
else:
format slot 16 of player with diamond axe named "&5Ylläpito" with lore "-" to close then run [execute player command "/mirricraft gui admin"]
stop
if arg-2 is set:
if arg-2 is "visit":
if player have permission "mirricraft.visit":
wait 2 tick
open chest inventory with 4 row named "MirriCraft - Mene" to player
wait 2 tick
loop integers between 0 and 35:
format slot loop-integer of player with gray stained glass pane named "&7" to be unstealable
format slot 11 of player with diamond sword with no nbt named "&f&nTruelo" with lore "&o&fSelviydy elämän haasteista" and "&7Avautuu myöhemmin" to close then run [execute player command "/mirricraft visit truelo"]
format slot 13 of player with allium named "&f&nUtopia" with lore "&o&fVain luovuus on rajanasi" to close then run [execute player command "/mirricraft visit utopia"]
format slot 15 of player with oak sapling named "&f&nSkyBlock" with lore "&o&fTunne vapauden tuulenvire" to close then run [execute player command "/mirricraft visit skyblock"]
format slot 21 of player with end crystal named "&f&nMinigames" with lore "&o&fHauskaa kavereiden kanssa" to close then run [execute player command "/mirricraft visit minigames"]
format slot 23 of player with ender eye named "&f&nMultiverse" with lore "&o&fKäväise vanhoissa maailmoissa" and "&7Suljettu toistaiseksi" to close then run [execute player command "/mirricraft visit multiverse"]
format slot 35 of player with nether star named "&fLobby" to close then run [execute player command "/mirricraft visit lobby"]
format slot 27 of player with arrow named "&fTakaisin" to close then run [execute player command "/mirricraft gui"]
stop
if arg-2 is "vip":
if player has the permission "mirricraft.vip":
wait 2 tick
open chest inventory with 4 row named "MirriCraft - VIP" to player