utilisation fonction pour avoir le pluriel
This commit is contained in:
parent
a987a30479
commit
6bea4e92ce
2 changed files with 7 additions and 3 deletions
|
@ -30,3 +30,8 @@ function userOrNick(player: player) :: text:
|
||||||
else:
|
else:
|
||||||
set {_res} to "%{_player}%"
|
set {_res} to "%{_player}%"
|
||||||
return {_res}
|
return {_res}
|
||||||
|
|
||||||
|
function pluriel(int: number) :: text:
|
||||||
|
set {_pluriel} to ""
|
||||||
|
set {_pluriel} to "s" if {_int} > 1
|
||||||
|
return {_pluriel}
|
||||||
|
|
5
main.sk
5
main.sk
|
@ -242,8 +242,7 @@ every second:
|
||||||
# tab
|
# tab
|
||||||
set {_serverName} to option("serverName")
|
set {_serverName} to option("serverName")
|
||||||
set {_numberOfConnectedPlayers} to number of all players
|
set {_numberOfConnectedPlayers} to number of all players
|
||||||
set {_pluriel} to ""
|
set {_pluriel} to pluriel({_numberOfConnectedPlayers})
|
||||||
set {_pluriel} to "s" if {_numberOfConnectedPlayers} > 1
|
|
||||||
set tab header to "&a%{_serverName}%" and footer to "&e%{_numberOfConnectedPlayers}% joueur%{_pluriel}% connecté%{_pluriel}%\n&9%ping of loop-player% ms de latence" for loop-player
|
set tab header to "&a%{_serverName}%" and footer to "&e%{_numberOfConnectedPlayers}% joueur%{_pluriel}% connecté%{_pluriel}%\n&9%ping of loop-player% ms de latence" for loop-player
|
||||||
set {_player} to userOrNick(loop-player)
|
set {_player} to userOrNick(loop-player)
|
||||||
set tab list name of loop-player to {_player}
|
set tab list name of loop-player to {_player}
|
||||||
|
@ -349,6 +348,6 @@ command couleur: # info sur les codes couleurs dans minecrafrt
|
||||||
send "a ➡ &aVert&r 0 ➡ &0Noir"
|
send "a ➡ &aVert&r 0 ➡ &0Noir"
|
||||||
send "3 ➡ &3Bleu marine&r l ➡ &lGras"
|
send "3 ➡ &3Bleu marine&r l ➡ &lGras"
|
||||||
send "1 ➡ &1Bleu foncé&r o ➡ &oItalique"
|
send "1 ➡ &1Bleu foncé&r o ➡ &oItalique"
|
||||||
send "9 ➡ &9Ble&r n ➡ &nSouligné"
|
send "9 ➡ &9Bleu&r n ➡ &nSouligné"
|
||||||
send "k ➡ Glitché (exemple : &ka0\|&r) m ➡ &mBarré"
|
send "k ➡ Glitché (exemple : &ka0\|&r) m ➡ &mBarré"
|
||||||
send "b ➡ &bBleu ciel&r r ➡ &rRéinitialise la couleur et style"
|
send "b ➡ &bBleu ciel&r r ➡ &rRéinitialise la couleur et style"
|
||||||
|
|
Loading…
Reference in a new issue