fix thimble

This commit is contained in:
Mylloon 2021-07-02 03:14:48 +02:00
parent 274c6e8180
commit 54f537b850
3 changed files with 6 additions and 1 deletions

View file

@ -39,3 +39,7 @@ function pluriel(int: number) :: text:
function annonceParty(message: text):
loop {party.list::*}:
send {_message} to loop-value
function resetThimble(player: player):
set {_uuid} to uuid of {_player}
delete {thimble.dead.%{_uuid}%}

View file

@ -30,7 +30,7 @@ command deacoudre [<text>]: # lancement de la partie
if {thimble} is true:
delete {thimble}
loop {party.list::*}:
delete {thimble.dead.%uuid of loop-value%}
resetThimble(loop-value)
send "&cPartie de dé à coudre terminée." to loop-value
set gamemode of loop-value to creative
else:

View file

@ -37,6 +37,7 @@ command party [<player>] [<text>]: # commande party
loop {party.list::*}:
send "%{_player}%&c a quitté la partie." to loop-value
remove player from {party.list::*}
resetThimble(player)
send "&cTu as quitté la partie."
stop
else: