Skip to content
This repository was archived by the owner on Jun 20, 2023. It is now read-only.

Commit 6be8fba

Browse files
committed
Metrics are now optional
1 parent 18dcd15 commit 6be8fba

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

src/main/java/ca/jamiesinn/trailgui/TrailGUI.java

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,16 @@ public void onEnable()
4747
getCommand("trailgui").setExecutor(new CommandTrailGUI(this));
4848
plugin = this;
4949
load();
50-
try
51-
{
52-
Metrics metrics = new Metrics(this);
53-
metrics.start();
54-
}
55-
catch (IOException ignored)
56-
{
57-
}
50+
51+
if (getConfig().getBoolean("metrics"))
52+
try
53+
{
54+
Metrics metrics = new Metrics(this);
55+
metrics.start();
56+
}
57+
catch (IOException ignored)
58+
{
59+
}
5860
}
5961

6062
public void hookEss()

0 commit comments

Comments
 (0)