1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-18 20:41:37 +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();
if (!metrics.isOptOut())
{
if (settings.getData().getGeneral().getMetricsEnabled() == true)
{
start = true;
}
else if (settings.getData().getGeneral().getMetricsEnabled() == null)
if (settings.getData().getGeneral().getMetricsEnabled() == null)
{
ess.getLogger().info(_("metrics1"));
ess.getLogger().info(_("metrics2"));
ess.getLogger().info(_("metrics4"));
start = false;
}
else if (settings.getData().getGeneral().getMetricsEnabled() == true)
{
start = true;
}
}
}
catch (Exception ex)