API, optimisation, and fixes & more
Patch note 1.3.0:
Added:
- ElytraRacing loads after others plugins
- PlaceHolders in *almost* every messages/ scoreboard/ titles
- Sounds with *volume and pitch parameter for each*, minecraft sound names have to be with
minecraft:....
- Fixed a lot of things related to 1.18 minecraft version
- Optimisation (a lot still to do but but a pretty good improvement right now)
API:
Elytraracing now have a little API that is only here to get information about player games
You can't modify a game or a map, You can only get information when a game is started, joined, left, ...
This API is in a really early version and don't aim for the moment to let developers to create game and get much deeper information about a game. You will not find any information anywhere else for the moment about this. Every info currently available are there:
API infos:
Events:
-
ElytraRacingGameEndEvent (A game ends) Access: ERGame
-
ElytraRacingJoinGameEvent (A player joins a game) Access: ERGame, Player *Cancellable*
-
ElytraRacingLeaveGameEvent (A player leave a game) Access : ERGame, Player
-
ElytraRacingPlayerEndMapEvent (A player finishes a map) Access: ERGame, Player and player's time
-
ElytraRacingRaceStartEvent (A race starts (Can be a race of a grand prize or a game with only one race)) Access: ERGame
Access: ERGame
-
ERGame: Game information, maps (ERMap), name, players, specs, type. ScoreBoard (score and rank) getScoreBoard(), Live rank of players in a race getRaceRank()
-
ERMap: Information about a map with locations.. checkpoints, ends, ads ...(ERObject)
-
ERObject: Information about objects like locations, rotation...
Enumeration:
- GameType: GRANDPRIX, RACE, TRAINING, OTHER