CivMC / Civ

Monorepo for development of and running a Civ Server.
MIT License
4 stars 11 forks source link

Optimise command registration #375

Closed okx-code closed 6 months ago

okx-code commented 6 months ago

By only getting all the online players once, this should speed the server startup time by a few minutes or ~23 seconds per plugin.

Example from the log files

[05:43:21] [Server thread/INFO]: [CivChat2] Connected to database!
[05:43:44] [Server thread/INFO]: [CivChat2] [CivChatCommandManager] Command [Afk] registered.
Protonull commented 6 months ago

Semi-duplicate of #339

okx-code commented 6 months ago

I missed that one