Bonjour, je possède un serveur Mini-jeux/PvP, et je cherche actuellement comment afficher le nombre de joueurs dans un jeux spécifique. Par exemple, si un joueur fais /warp 1v1, que le skript rajoute 1 à {_1v1.joueurs}, mais que si le joueur se fait téléporter en dehors du monde 1v1, ou qu'il se déconnecte ou qu'il fait /hub, que le skript enleve 1 à {_1v1.joueurs}. Et cela pour tous les jeux ...
[spoiler=Code]command /menu:
trigger:
open chest with 5 rows named "&7[&cMenu&7]" to player
wait 1 tick
format slot 1 of player with yellow stained glass pane named " " to be unstealable
format slot 2 of player with yellow stained glass pane named " " to be unstealable
format slot 3 of player with yellow stained glass pane named " " to be unstealable
format slot 4 of player with yellow stained glass pane named " " to be unstealable
format slot 5 of player with yellow stained glass pane named " " to be unstealable
format slot 6 of player with yellow stained glass pane named " " to be unstealable
format slot 7 of player with yellow stained glass pane named " " to be unstealable
format slot 9 of player with yellow stained glass pane named " " to be unstealable
format slot 18 of player with yellow stained glass pane named " " to be unstealable
format slot 17 of player with yellow stained glass pane named " " to be unstealable
format slot 26 of player with yellow stained glass pane named " " to be unstealable
format slot 27 of player with yellow stained glass pane named " " to be unstealable
format slot 39 of player with yellow stained glass pane named " " to be unstealable
format slot 35 of player with yellow stained glass pane named " " to be unstealable
format slot 37 of player with yellow stained glass pane named " " to be unstealable
format slot 38 of player with yellow stained glass pane named " " to be unstealable
format slot 40 of player with yellow stained glass pane named " " to be unstealable
format slot 41 of player with yellow stained glass pane named " " to be unstealable
format slot 8 of player with obsidian named "&7[&cRush - Maintenance&7]" with lore "&7Rejoindre les &c%{_rush.joueurs}% &7joueurs" to run [make player execute command "/warp rush"]
format slot 42 of player with yellow stained glass pane named " " to be unstealable
format slot 43 of player with yellow stained glass pane named " " to be unstealable
format slot 44 of player with clock named "&7[&cTeamSpeak&7]" to run [make player execute command "/ts"]
format slot 36 of player with paper named "&7[&cForum&7]" to run [make player execute command "/forum"]
format slot 21 of player with diamond sword named "&7[&c1v1 - Maintenance&7]" with lore "&7Rejoindre les &c%{_1v1.joueurs}% &7joueurs" to run [make player execute command "/warp 1v1maintenance"]
format slot 22 of player with ender pearl named "&7[&cPvP-Box&7]" with lore "&7Rejoindre les &c%{_pvpbox.joueurs}% &7joueurs" to run [make player execute command "/pvpboxmenu"]
format slot 23 of player with steak named "&7[&cMini SurvivalGames&7]" with lore "&7Rejoindre les &c%{_survivalgames.joueurs}% &7joueurs" to run [make player execute command "/warp SG"]
format slot 31 of player with crafting table named "&7[&cSurvie&7]" with lore "&7Rejoindre les &c%{_survie.joueurs}% &7joueurs" to run [make player execute command "/warp Survie"]
format slot 13 of player with grass named "&7[&cSkyWars&7]" with lore "&7Rejoindre les &c%{_skywars.joueurs}% &7joueurs" to run [make player execute command "/warp Sw"]
format slot 0 of player with stone named "&7[&cHub&7]" with lore "&7Rejoindre les &c%{_hub.joueurs}% &7joueurs" to run [make player execute command "/hub"]
Merci d'avance de votre aide, si vous avez besoin de renseignement dites le ^^