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.
|
||||
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
|
||||
if helmet of player is not air:
|
||||
send "&aItem équippé !"
|
||||
else:
|
||||
send {@errorMessage}
|
||||
|
|
Loading…
Reference in a new issue