public class MetricsLite
extends java.lang.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.
|
java.io.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(java.lang.String input)
GZip compress a string of bytes
|
boolean |
isOptOut()
Has the server owner denied plugin metrics?
|
boolean |
start()
Start measuring statistics.
|
public MetricsLite(org.bukkit.plugin.Plugin plugin) throws java.io.IOException
java.io.IOException
public boolean start()
public boolean isOptOut()
public void enable() throws java.io.IOException
java.io.IOException
public void disable() throws java.io.IOException
java.io.IOException
public java.io.File getConfigFile()
public static byte[] gzip(java.lang.String input)
input
-