Open AmauryCarrade opened 10 years ago
Can we have this in the api and with another option to only randomize the players that have not currently joined a team.
with another option to only randomize the players that have not currently joined a team.
Good idea, I'll add this feature.
By the way, all these generators will be available through the API.
I added the API I'll probably use in the description of the issue.
This will be moved on the next version, because it's a nontrivial component with tests and I want to release a stable version :p .
This will be one of the first things I'll do in the 1.4.
This will be one of the first things I'll do in the 1.4.
That's what he said.
s/1.4/1.6/
In addition to the above, it would be a good idea to add configuration options so the teams are automatically generated when the game starts.
Where the flags are the following.
reset
: if present, the teams/players in teams are reset and the teams are completely random. Without, only players out of any team are affected;fancyNames
: if present, generates a name for the team, based on a list of worlds in theplugins/UHPlugin/
directory. Without, the names are «<color> <random number>
» (or only the color, if the name is available).noColors
: if present, all teams will be white teams. Without, a random color is chosen.Dev's point of view: something like this.