List game & server version when starting server (#1181)

* When the server starts, it now outputs the game and server version. Too dumb to not hardcode it - sorry!

* ...

* sorry i dropped my spaghetti, I'll help clean that

* Doing simple stuff: now without hardcoding!

* Restored Git hash functionality

* Fixed other languages and made the output more useful.

* Forgot this file lol
This commit is contained in:
AZ
2022-06-04 09:41:18 +00:00
committed by GitHub
parent 910a5749f0
commit fa2ab59887
6 changed files with 11 additions and 4 deletions

View File

@@ -102,6 +102,8 @@ public final class Grasscutter {
// Initialize server.
Grasscutter.getLogger().info(translate("messages.status.starting"));
Grasscutter.getLogger().info(translate("messages.status.game_version", GameConstants.VERSION));
Grasscutter.getLogger().info(translate("messages.status.version", BuildConfig.VERSION, BuildConfig.GIT_HASH));
// Load all resources.
Grasscutter.updateDayOfWeek();