TeamRace Xaseco plugin by Mikey & Reaby

- Purpose
TeamRace is a simple method to play an 8 team mode

- Operation
When enabled TeamRace uses a Team Select period for the purpose of having a timed period for all players to select a team to join.
Then normal game mode is played by all players with the teamrace having no effect.
Then at the end screen team results are displayed instead of the normal individual results, with players listed in their teams with individual score and the Team average score which the results are based on.
Penalties are applied in Time attack of twice the winning time for zero times.
Penalties are applied in laps of treble the winning time for zero times
Penalties are applied in laps of twice the average checkpoint time of the winning time for every incomplete checkpoint.

- Configuration
Edit teamrace.xml for configuration options;
Number of teams,
Number of players,
Points allocation for competition mode,
Warmup duration when using teamrace (when team race is enabled) 
Warmup duration for normal play     (when team race is disabled)
Select team timer                   (when team race is enabled and not using warmup) 
If Team locking is allowed,
To Force a toggle of Fufi record widgets or not when teamrace is enabled,
Team names,
Number of tracks in a competition

- Usage
The command for controlling the TeamRace plugin is 'teamrace' followed by sub commands ;
on - enables teamrace mode   (admin only)
off - disables teamrace mode (admin only)
name - rename the team you are a member of (during team select only)
lock - lock a team you are a member of to not allow anyone to join (during team select only)
warmup - set the warmup duration for the current game mode (0,1,2)
comp - on | off | number of rounds. Plays a basic competition and tallys team points over multiple tracks
help - a simple command help list

- Limitations
Ladder points are still obtained but are not displayed.
Team selection is displayed on the right side of the screen and will overlap fufi records widgets, so either move the widets to the left side only, use the Force Toggle in the xml config, or disbled them.
Warmup does not work in stunts, so set the plugin to warmup 0 for stunts (or use the /teanrace warmup 0 command).
Do not use autoqueue plugin inconjunction with teamrace.
