Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to disable bStats #44

Open
XHawk87 opened this issue Mar 12, 2024 · 1 comment
Open

Option to disable bStats #44

XHawk87 opened this issue Mar 12, 2024 · 1 comment

Comments

@XHawk87
Copy link

XHawk87 commented Mar 12, 2024

This is set up by default in Bukkit, Spigot and Paper servers, but isn't really appropriate for a development and testing environment, unless bStats integration is what you're testing. Docs here: https://bstats.org/getting-started

Is there a way to automatically disable bStats when starting the server?

@jpenilla
Copy link
Owner

tasks.runServer {
  doFirst {
    val cfg = runDirectory.get().asFile().resolve("plugins/bStats/config.yml")
    if (!cfg.exists()) {
        cfg.writeText("enabled: false\n")
        cfg.parentFile.mkdirs()
    }
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants