command /kits [] []: executable by: players aliases: /kit trigger: if the argument 1 isn't set: send message "&7You have to specify an argument." to the player else: if the argument 1 isn't "create", "delete" or "get": send message "&7This argument doesn't exist." to the player else: if the argument 1 is "create": if the player isn't an op: send message "&cYou don't have the permission!" to the player else: if the argument 2 isn't set: send message "&7You have to specify a name." to the player else: if {kits::*} contain the argument 2: send message "&7This kit already exists." to the player else: if the player's inventory is empty: send message "&7You inventory is empty." to the player else: add the argument 2 to {kits::*} set {kit.%argument 2%.items::*} to all items in the player's inventory send message "&7The kit &a%argument 2% &7has been created!" to the player else if the argument 1 is "delete": if the player isn't an op: send message "&cYou don't have the permission!" to the player else: if the argument 2 isn't set: send message "&7You have to specify a name." to the player else: if {kits::*} don't contain the argument 2: send message "&7This kit doesn't exist." to the player else: remove the argument 2 from {kits::*} delete {kit.%argument 2%.items::*} send message "&7The kit &a%argument 2% &7has been deleted!" to the player else if the argument 1 is "get": if the argument 2 isn't set: send message "&7You have to specify a name." to the player else: if {kits::*} don't contain the argument 2: send message "&7This kit doesn't exist." to the player else: if the player's inventory doesn't have enough space for {kit.%argument 2%.items::*}: send message "&7You don't have enough space." to the player else: give {kit.%argument 2%.items::*} to the player send message "&7You have received the contents of the kit &a%argument 2%&7!" to the player