File tree Expand file tree Collapse file tree 3 files changed +2
-15
lines changed
common/src/main/java/com/lunarclient/apollo Expand file tree Collapse file tree 3 files changed +2
-15
lines changed Original file line number Diff line number Diff line change @@ -81,13 +81,6 @@ public <T extends ApiResponse> Future<T> request(ApiRequest<T> request) {
8181 ApiRequestType requestType = request .getType ();
8282 Type responseType = request .getResponseType ();
8383
84- System .out .println ("Request:" );
85- System .out .println (ApolloManager .GSON .toJson (request ));
86-
87- if (true ) {
88- return future ;
89- }
90-
9184 this .requestExecutor .submit (() -> {
9285 try {
9386 URL url = new URL ("https://" + request .getService ().getUrl () + request .getRoute ());
Original file line number Diff line number Diff line change 3636import java .util .List ;
3737import java .util .UUID ;
3838import java .util .stream .Collectors ;
39- import lombok .Getter ;
4039
4140/**
4241 * Manages Apollo statistics.
4342 *
4443 * @since 1.0.0
4544 */
46- @ Getter
4745public final class ApolloStatsManager {
4846
4947 public static final String SESSION_ID = UUID .randomUUID ().toString ();
@@ -85,7 +83,7 @@ public final class ApolloStatsManager {
8583 .defaultValue (true ).build ();
8684
8785 public static final SimpleOption <Boolean > HEARTBEAT_USER_METADATA = Option .<Boolean >builder ()
88- .comment ("Set to 'true' to send players user metadata such as TODO to MCStats, otherwise 'false'." )
86+ .comment ("Set to 'true' to send players user metadata to MCStats, otherwise 'false'." )
8987 .node (CONFIG_PREFIX , "user-metadata" ).type (TypeToken .get (Boolean .class ))
9088 .defaultValue (true ).build ();
9189
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ public final class ApolloStatsThread extends Thread {
4343
4444 private static final long MB_BYTES = 1024 * 1024 ;
4545 private static final OperatingSystemMXBean MX_BEAN = ManagementFactory .getPlatformMXBean (OperatingSystemMXBean .class );
46- private static final long HEARTBEAT_INTERVAL = TimeUnit .MINUTES .toMillis (2 );
46+ private static final long HEARTBEAT_INTERVAL = TimeUnit .MINUTES .toMillis (15 );
4747
4848 /**
4949 * Constructs the {@link ApolloStatsThread} thread.
@@ -99,12 +99,8 @@ public void run() {
9999
100100 requestBuilder
101101 .metadata (metadataManager .extract ());
102- System .out .println ("Metadata" );
103- System .out .println (metadataManager .extract ());
104102
105103 metadataManager .clear ();
106- System .out .println ("After clear" );
107- System .out .println (metadataManager .extract ());
108104 }
109105
110106 final ServerHeartbeatRequest finalRequest = request = requestBuilder .build ();
You can’t perform that action at this time.
0 commit comments