Skip to content

Commit

Permalink
feat: print build version
Browse files Browse the repository at this point in the history
  • Loading branch information
smartcmd committed Sep 21, 2024
1 parent 83b0c36 commit 6e9ed3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/src/main/java/org/allaymc/server/Allay.java
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ private static void initAllayAPI() throws MissingImplementationException {
api.bind(CommandNodeFactory.class, AllayCommandNodeFactory::new);

api.implement("allay");
log.info(I18n.get().tr(TrKeys.A_API_IMPLEMENTED, AllayAPI.getInstance().getCoreName(), GitProperties.getBranch() + "-" + GitProperties.getCommitIdAbbrev(), AllayAPI.API_VERSION));
log.info(I18n.get().tr(TrKeys.A_API_IMPLEMENTED, AllayAPI.getInstance().getCoreName(), GitProperties.getBranch() + "-" + GitProperties.getCommitIdAbbrev() + " " + GitProperties.getBuildVersion(), AllayAPI.API_VERSION));
}

private static void initRegistries() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public VersionCommand() {
@Override
public void prepareCommandTree(CommandTree tree) {
tree.getRoot().exec(context -> {
context.addOutput(TrKeys.A_API_IMPLEMENTED, AllayAPI.getInstance().getCoreName(), GitProperties.getBranch() + "-" + GitProperties.getCommitIdAbbrev(), AllayAPI.API_VERSION);
context.addOutput(TrKeys.A_API_IMPLEMENTED, AllayAPI.getInstance().getCoreName(), GitProperties.getBranch() + "-" + GitProperties.getCommitIdAbbrev() + " " + GitProperties.getBuildVersion(), AllayAPI.API_VERSION);
return context.success();
});
}
Expand Down

0 comments on commit 6e9ed3c

Please sign in to comment.