This script below takes 18700ms to load, how can I fix this?
command /gui:
trigger:
if player is in world "arena":
create a new gui with virtual chest inventory with 3 rows named "&5Weapons"
edit gui last gui:
format gui slot 0 and 1 and 2 and 3 and 4 and 5 and 6 and 7 and 8 and 9 and 17 and 19 and 20 and 21 and 23 and 24 and 25 and 26 with white stained glass pane named "&6"
if {weapon_unlock.%player%} is true:
format gui slot 10 with unbreakable iron sword of sharpness 1 named "&5Titan Slayer Staff" with lore "&fItem Ability: Titan's Swipe &e[RIGHT" and "&eCLICK]" and "&5Swipe the ground, dealing 10 damage" and "&5to enemies within a 10 block range." and "&7Mana Cost: 60" and "&9Cooldown: 10 Seconds":
give player unbreakable iron sword of sharpness 1 named "&5Titan Slayer Staff" with lore "&fItem Ability: Titan's Swipe &e[RIGHT" and "&eCLICK]" and "&5Swipe the ground, dealing 10 damage" and "&5to enemies within a 10 block range." and "&7Mana Cost: 60" and "&9Cooldown: 10 Seconds"
else:
format gui slot 10 with unbreakable barrier of sharpness 1 named "&5Titan Slayer Staff" with lore "&fItem Ability: Titan's Swipe &e[RIGHT" and "&eCLICK]" and "" and "&a&o???":
send "&cYou do not own this item!" to player
format gui slot 22 with barrier named "&6Close GUI" with lore "&fCloses this menu!":
close player's inventory
open the last created gui to player
else:
send "&cYou cannot do this here!" to player
command /gui:
trigger:
if player is in world "arena":
create a new gui with virtual chest inventory with 3 rows named "&5Weapons"
edit gui last gui:
format gui slot 0 and 1 and 2 and 3 and 4 and 5 and 6 and 7 and 8 and 9 and 17 and 19 and 20 and 21 and 23 and 24 and 25 and 26 with white stained glass pane named "&6"
if {weapon_unlock.%player%} is true:
format gui slot 10 with unbreakable iron sword of sharpness 1 named "&5Titan Slayer Staff" with lore "&fItem Ability: Titan's Swipe &e[RIGHT" and "&eCLICK]" and "&5Swipe the ground, dealing 10 damage" and "&5to enemies within a 10 block range." and "&7Mana Cost: 60" and "&9Cooldown: 10 Seconds":
give player unbreakable iron sword of sharpness 1 named "&5Titan Slayer Staff" with lore "&fItem Ability: Titan's Swipe &e[RIGHT" and "&eCLICK]" and "&5Swipe the ground, dealing 10 damage" and "&5to enemies within a 10 block range." and "&7Mana Cost: 60" and "&9Cooldown: 10 Seconds"
else:
format gui slot 10 with unbreakable barrier of sharpness 1 named "&5Titan Slayer Staff" with lore "&fItem Ability: Titan's Swipe &e[RIGHT" and "&eCLICK]" and "" and "&a&o???":
send "&cYou do not own this item!" to player
format gui slot 22 with barrier named "&6Close GUI" with lore "&fCloses this menu!":
close player's inventory
open the last created gui to player
else:
send "&cYou cannot do this here!" to player