public class MetricsLite extends Object
Constructor and Description |
---|
MetricsLite(org.bukkit.plugin.Plugin plugin) |
Modifier and Type | Method and Description |
---|---|
void |
disable()
Disables metrics for the server by setting "opt-out" to true in the config file and canceling the metrics task.
|
void |
enable()
Enables metrics for the server by setting "opt-out" to false in the config file and starting the metrics task.
|
File |
getConfigFile()
Gets the File object of the config file that should be used to store data such as the GUID and opt-out status
|
static byte[] |
gzip(String input) |
boolean |
isOptOut()
Has the server owner denied plugin metrics?
|
boolean |
start()
Start measuring statistics.
|
public MetricsLite(org.bukkit.plugin.Plugin plugin) throws IOException
IOException
public boolean start()
public boolean isOptOut()
public void enable() throws IOException
IOException
public void disable() throws IOException
IOException
public File getConfigFile()
public static byte[] gzip(String input)
Copyright © 2020. All rights reserved.