Hey guys.
I am making a map that requires 4 colored teams (Red, Yellow, Green. Blue, respectively.).
I have the basics down where you make the teams, assign players to teams, etc.
However, I have been unsuccessful in trying to list how many players are on a specific team.
For example, Player goes to the Red lobby and wants to see how many players are on the Red team currently. He pushes the button and the number of players on the Red team show up in the chat, but only he can see the text that appears.
This will be on a Bukkit server running the Essentials plugin, which I believe Command Blocks can use some Essentials commands (if not all non-player commands).
Any ideas to list the number of players in a team via Command Block?
Thanks in advance.
I am making a map that requires 4 colored teams (Red, Yellow, Green. Blue, respectively.).
I have the basics down where you make the teams, assign players to teams, etc.
However, I have been unsuccessful in trying to list how many players are on a specific team.
For example, Player goes to the Red lobby and wants to see how many players are on the Red team currently. He pushes the button and the number of players on the Red team show up in the chat, but only he can see the text that appears.
This will be on a Bukkit server running the Essentials plugin, which I believe Command Blocks can use some Essentials commands (if not all non-player commands).
Any ideas to list the number of players in a team via Command Block?
Thanks in advance.
2
Can I come on and see what you are doing exactly
Perhaps, but first I need to know why, for security reasons... Sorry.
Edit: I've gotten a system to work, however it is not with numbers, but instead, just lists the player names. Thanks anyways.
What I used was this:
(The &c is the Red color for Essentials.)
Edit: I've gotten a system to work, however it is not with numbers, but instead, just lists the player names. Thanks anyways.
What I used was this:
tell @p Current players in Red Team: &c @a[team=Red](The &c is the Red color for Essentials.)
