Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ID parser implemented. * Cleanup player join logging. Since last update all data necessary to identify a player comes in 2 logs within the same chain, so many previous loggers are deprecated. `JOIN_SUCCEEDED` is now used as an emit trigger because this is where we obtain the last piece of data for the log - `playerSuffix`. * Rework admins features to be able to recieve any ID as an identifier. As an added side effect, methods like `server.getAdminPermsBySteamID()` will only return data for admins that are currently in-game (because to map anyID onto eosID it needs player's data which is not persistent and is available only when a player is online). * Migrate core code to eosID and anyID. * Update plugins to eosID. Plugins that were not updated: 1. db-log SteamID is basically it's backbone. Migrading to EOS would require obtaining all steam -> EOS pairs, migrating databasesm etc. Maybe we could make a db-logV2 with new data and migration assisting tools so that anyone willing to migrate can do it in an assisted mode. 2. awn-api Not something that I use or know, left as is. 3. cbl-info Again, steamID seems to be it's backbone, I don't want to mess with a project that has maintainers that know ins and outs way better than me. Plugins that were partially updated: 1. discord-killfeed CBL integration is left untouched, other things are updated. * Fix attemts to access non-existent oldPlayerInfo. * Refactor id-parser. Renamed main function, rewrote ID iterations, fixed a bug in `anyIDsToPlayers()` (wasn't eliminating duplicats in returned list), minor comments cleanup. * refactor: getAdminsWithPermission extended. 1. `getAdminsWithPermission` now supports both legacy and new call conventions. 2. any-id.js is also refactored a bit (added `isPlayerID` function). 3. Minor JSDoc fixes. * Add safeguerds for `INVALID` IDs. Parsers will skip lines with `INVALID` Online IDs.
- Loading branch information