Skip to content

Commit c42194d

Browse files
committed
send the apollo version in the start server request
1 parent 23cbb6d commit c42194d

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

common/src/main/java/com/lunarclient/apollo/api/request/ServerStartRequest.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,13 @@ public final class ServerStartRequest implements ApiRequest<ServerStartResponse>
133133
*/
134134
private final List<String> modules;
135135

136+
/**
137+
* The current version of Apollo that is running.
138+
*
139+
* @since 1.2.0
140+
*/
141+
private final String apolloVersion;
142+
136143
@Override
137144
public ApiServiceType getService() {
138145
return ApiServiceType.ANALYTICS;

common/src/main/java/com/lunarclient/apollo/stats/ApolloStatsManager.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,8 @@ private void handleServerStartStats() {
153153
.platformType(platform.getKind().name())
154154
.platformSubtype(stats.getPlatformSubtype())
155155
.platformVersion(stats.getPlatformVersion())
156-
.modules(enabledModules);
156+
.modules(enabledModules)
157+
.apolloVersion(platform.getApolloVersion());
157158
}
158159

159160
if (softwareInformation) {

0 commit comments

Comments
 (0)