Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions config/src/main/java/dev/faststats/config/SimpleConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import static java.nio.charset.StandardCharsets.UTF_8;

@ApiStatus.Internal
public record SimpleConfig(

Check warning on line 24 in config/src/main/java/dev/faststats/config/SimpleConfig.java

View workflow job for this annotation

GitHub Actions / build

no comment
UUID serverId,
boolean enabled,
boolean additionalMetrics,
Expand All @@ -30,10 +30,10 @@
boolean errorTracking,
boolean firstRun
) implements Config {
private static final int CONFIG_VERSION = 2;
private static final int CONFIG_VERSION = 3;

private static final String COMMENT = """
FastStats (https://faststats.dev) collects anonymous usage statistics and errors.
FastStats (https://faststats.dev) collects pseudonymous usage statistics and errors.
# This helps developers understand how their projects are used in the real world.
#
# No IP addresses, player data, or personal information is collected.
Expand All @@ -52,7 +52,7 @@
# For more information, visit: https://faststats.dev/info
""";
private static final String ONBOARDING_MESSAGE = """
This plugin uses FastStats to collect anonymous usage statistics and errors.
This plugin uses FastStats to collect pseudonymous usage statistics and errors.
No personal or identifying information is ever collected.
To opt out, set 'enabled=false' in the metrics configuration file.
Learn more at: https://faststats.dev/info
Expand All @@ -61,7 +61,7 @@
until you restart the server to allow you to opt out if you prefer.""";

@Contract(mutates = "io")
public static SimpleConfig read(final Path file, final LoggerFactory factory) throws RuntimeException {

Check warning on line 64 in config/src/main/java/dev/faststats/config/SimpleConfig.java

View workflow job for this annotation

GitHub Actions / build

no comment
final var logger = factory.getLogger(SimpleConfig.class);

final var debugFlag = Boolean.getBoolean("faststats.debug");
Expand Down
Loading