Описание
# About the Mod
This mod allows server administrators to create racetracks and organize racing competitions for players.
## How to Use
### Setting Up a Racetrack
1. **Create a racetrack:** `/racetrack create `
2. **Enter edit mode:** `/racepoint edit `
3. **Set the starting point:** `/racepoint add start `
4. **Set the endpoint:** `/racepoint add end `
5. **Add checkpoints** (optional but recommended): `/racepoint add checkpoint `
6. **Initialize the race:** `/race init `
7. **Start the race:** `/race run `
8. **End the race:** `/race stop `
### Player Participation
1. **Register for the race:** `/race join `
2. **Wait for the administrator to start the race.**
3. **Complete the race by following the racetrack route.**
4. **View the leaderboard:** `/racetrack rankinglist `
## Command Guide
### Administrator Commands
- `/racetrack create `
Create a new racetrack.
- `/racetrack remove `
Delete the specified racetrack.
- `/racetrack description `
Set the description for the specified racetrack. If the description contains Chinese characters, enclose the entire text in double quotation marks.
- `/racetrack clearRankingList `
Clear the ranking list.
- `/racetrack laps `
Set the number of laps for the specified racetrack (default is 1).
- `/racepoint edit `
Switch to edit mode for the specified racetrack. Editing a racetrack requires selecting it first.
- `/racepoint add `
Set the area for the specified point type.
- `/racepoint add checkpoint `
Insert a checkpoint at the specified index. Use index `0` for inserting at the beginning and any negative number for inserting at the end.
- `/race init `
Initialize the race for the specified racetrack. All races must be initialized before starting.
- `/race run `
Start the race for the specified racetrack.
- `/race stop `
Stop the race for the specified racetrack and save the results. Use this command after the race ends. Restarting the race requires reinitialization.
- `/race save [show_ranking_on_stop]`
Manually save race results to the leaderboard.
- `/race join [player_name]`
Register the specified player for the race on the specified racetrack.
- `/race leave [player_name]`
Remove the specified player from the race on the specified racetrack.
### Player Commands
- `/racetrack list`
Display all available racetracks on the server.
- `/racetrack info [point_type]`
Display detailed information about the specified racetrack.
- `/racetrack rankinglist [page]`
Displays the ranking information for the specified track on the specified page (defaults to 0).
- `/race check `
Check the information of all participants on the track.
- `/race join `
Register for the race on the specified racetrack.
- `/race leave `
Leave the race on the specified racetrack.
### Debug Commands
- `/speeduuuuuuup debug show_all `
Enable/disable displaying the range of all points.
## Notes
- Ensure the starting and ending points are correctly configured when setting up a racetrack. If the starting and ending points are in the same area, you must have at least one checkpoint.
- Players must register for the race before it starts.
- Race results are automatically saved to the leaderboard after using the command to end the race.
- Do not set points for the same racetrack across different dimensions.