fix thimble
This commit is contained in:
parent
274c6e8180
commit
54f537b850
3 changed files with 6 additions and 1 deletions
|
@ -39,3 +39,7 @@ function pluriel(int: number) :: text:
|
||||||
function annonceParty(message: text):
|
function annonceParty(message: text):
|
||||||
loop {party.list::*}:
|
loop {party.list::*}:
|
||||||
send {_message} to loop-value
|
send {_message} to loop-value
|
||||||
|
|
||||||
|
function resetThimble(player: player):
|
||||||
|
set {_uuid} to uuid of {_player}
|
||||||
|
delete {thimble.dead.%{_uuid}%}
|
||||||
|
|
|
@ -30,7 +30,7 @@ command deacoudre [<text>]: # lancement de la partie
|
||||||
if {thimble} is true:
|
if {thimble} is true:
|
||||||
delete {thimble}
|
delete {thimble}
|
||||||
loop {party.list::*}:
|
loop {party.list::*}:
|
||||||
delete {thimble.dead.%uuid of loop-value%}
|
resetThimble(loop-value)
|
||||||
send "&cPartie de dé à coudre terminée." to loop-value
|
send "&cPartie de dé à coudre terminée." to loop-value
|
||||||
set gamemode of loop-value to creative
|
set gamemode of loop-value to creative
|
||||||
else:
|
else:
|
||||||
|
|
1
party.sk
1
party.sk
|
@ -37,6 +37,7 @@ command party [<player>] [<text>]: # commande party
|
||||||
loop {party.list::*}:
|
loop {party.list::*}:
|
||||||
send "%{_player}%&c a quitté la partie." to loop-value
|
send "%{_player}%&c a quitté la partie." to loop-value
|
||||||
remove player from {party.list::*}
|
remove player from {party.list::*}
|
||||||
|
resetThimble(player)
|
||||||
send "&cTu as quitté la partie."
|
send "&cTu as quitté la partie."
|
||||||
stop
|
stop
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue