diff --git a/src/main/java/com/gmail/nossr50/mcMMO.java b/src/main/java/com/gmail/nossr50/mcMMO.java index f90db6374..c98725692 100644 --- a/src/main/java/com/gmail/nossr50/mcMMO.java +++ b/src/main/java/com/gmail/nossr50/mcMMO.java @@ -368,7 +368,7 @@ public class mcMMO extends JavaPlugin { } // Clear the registered XP data so players can earn XP again - if (Config.getInstance().getExperienceDeminishedReturnsThreshold() > 0) { + if (Config.getInstance().getExperienceDeminishedReturnsTimeInterval() > 0 && Config.getInstance().getExperienceDeminishedReturnsThreshold() > 0) { new ClearRegisteredXPGainTask().runTaskTimer(this, 60 * 20, 60 * 20); } } diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index 23d4aa26e..122788874 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -286,6 +286,7 @@ Experience: # Limit the amount of experience a player can earn: # Threshold (amount of experience) per Time_Interval (in minutes) + # Setting one of these values to 0 or below will disable this feature. Deminished_Returns: Threshold: 20000 Time_Interval: 10