run-task icon indicating copy to clipboard operation
run-task copied to clipboard

Option to disable bStats

Open XHawk87 opened this issue 1 year ago • 1 comments

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?

XHawk87 avatar Mar 12 '24 15:03 XHawk87

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

jpenilla avatar Mar 22 '24 00:03 jpenilla