From cb80a642c1a6a5e9105d1a3e3558700bd008e5ad Mon Sep 17 00:00:00 2001 From: Mylloon Date: Mon, 28 Jun 2021 01:09:57 +0200 Subject: [PATCH] casque can now remove your helmet --- main.sk | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/main.sk b/main.sk index f9c333a..6a48354 100644 --- a/main.sk +++ b/main.sk @@ -397,15 +397,18 @@ command casque: description: Équipe l'objet dans ta main principale sur ta tête. trigger: if player is op: - if tool of player is air: - send "&4Tu n'as rien dans tes mains." - stop - set {_item} to air if helmet of player is not air: set {_item} to helmet of player + if tool of player is air: + if {_item} is set: + send "&aItem retiré !" + else: + send "&4Tu n'as rien dans tes mains." + stop set helmet of player to tool of player remove tool of player from inventory of player add {_item} to inventory of player - send "&aItem équippé !" + if helmet of player is not air: + send "&aItem équippé !" else: send {@errorMessage}