1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-19 04:52:30 +02:00

[Fix] Switch around the if statement for enabling metrics

This commit is contained in:
ementalo
2013-04-04 21:45:07 +01:00
parent 3d2106e198
commit d377c5cae7

View File

@@ -48,17 +48,18 @@ public class MetricsStarter implements Runnable
ISettings settings = ess.getSettings(); ISettings settings = ess.getSettings();
if (!metrics.isOptOut()) if (!metrics.isOptOut())
{ {
if (settings.getData().getGeneral().getMetricsEnabled() == true)
{ if (settings.getData().getGeneral().getMetricsEnabled() == null)
start = true;
}
else if (settings.getData().getGeneral().getMetricsEnabled() == null)
{ {
ess.getLogger().info(_("metrics1")); ess.getLogger().info(_("metrics1"));
ess.getLogger().info(_("metrics2")); ess.getLogger().info(_("metrics2"));
ess.getLogger().info(_("metrics4")); ess.getLogger().info(_("metrics4"));
start = false; start = false;
} }
else if (settings.getData().getGeneral().getMetricsEnabled() == true)
{
start = true;
}
} }
} }
catch (Exception ex) catch (Exception ex)