casque can now remove your helmet
This commit is contained in:
parent
efaad1d5f1
commit
cb80a642c1
1 changed files with 8 additions and 5 deletions
11
main.sk
11
main.sk
|
@ -397,15 +397,18 @@ command casque:
|
||||||
description: Équipe l'objet dans ta main principale sur ta tête.
|
description: Équipe l'objet dans ta main principale sur ta tête.
|
||||||
trigger:
|
trigger:
|
||||||
if player is op:
|
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:
|
if helmet of player is not air:
|
||||||
set {_item} to helmet of player
|
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
|
set helmet of player to tool of player
|
||||||
remove tool of player from inventory of player
|
remove tool of player from inventory of player
|
||||||
add {_item} to inventory of player
|
add {_item} to inventory of player
|
||||||
|
if helmet of player is not air:
|
||||||
send "&aItem équippé !"
|
send "&aItem équippé !"
|
||||||
else:
|
else:
|
||||||
send {@errorMessage}
|
send {@errorMessage}
|
||||||
|
|
Loading…
Reference in a new issue