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:
@@ -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)
|
||||||
|
Reference in New Issue
Block a user