From d03908639744f653f33db8cc6a818b3c2a854238 Mon Sep 17 00:00:00 2001 From: ProSavage Date: Sun, 18 Nov 2018 11:24:52 -0600 Subject: [PATCH] Option to toggle MassiveStats --- .../java/com/massivecraft/factions/SavageFactions.java | 7 +++++-- src/main/resources/config.yml | 3 +++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/massivecraft/factions/SavageFactions.java b/src/main/java/com/massivecraft/factions/SavageFactions.java index 28a50639..cb61a988 100644 --- a/src/main/java/com/massivecraft/factions/SavageFactions.java +++ b/src/main/java/com/massivecraft/factions/SavageFactions.java @@ -191,8 +191,11 @@ public class SavageFactions extends MPlugin { // start up task which runs the autoLeaveAfterDaysOfInactivity routine startAutoLeaveTask(false); - // massive stats - new MassiveStats(this); + if (getConfig().getBoolean("MassiveStats")) { + // massive stats + new MassiveStats(this); + } + if (version > 8) { diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index cf2f8d5f..222f8662 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -986,6 +986,9 @@ Tntfill: max-radius: 32 max-amount: 64 +# Statistics Engine. +MassiveStats: true + ############################################################ # +------------------------------------------------------+ # # | Big List of variables | #