Add toggle for snow golem exploit to experience.yml - SnowGolemExcavation

This commit is contained in:
nossr50 2020-01-24 18:28:41 -08:00
parent 15d3119627
commit 33f4ac14b5
5 changed files with 4 additions and 3 deletions

View File

@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>com.gmail.nossr50.mcMMO</groupId> <groupId>com.gmail.nossr50.mcMMO</groupId>
<artifactId>mcMMO</artifactId> <artifactId>mcMMO</artifactId>
<version>2.1.113</version> <version>2.1.114-SNAPSHOT</version>
<name>mcMMO</name> <name>mcMMO</name>
<url>https://github.com/mcMMO-Dev/mcMMO</url> <url>https://github.com/mcMMO-Dev/mcMMO</url>
<scm> <scm>

View File

@ -144,6 +144,7 @@ public class ExperienceConfig extends AutoUpdateConfigLoader {
*/ */
/* EXPLOIT TOGGLES */ /* EXPLOIT TOGGLES */
public boolean isSnowExploitPrevented() { return config.getBoolean("SnowGolemExcavation", true); }
public boolean isEndermanEndermiteFarmingPrevented() { return config.getBoolean("ExploitFix.EndermanEndermiteFarms", true); } public boolean isEndermanEndermiteFarmingPrevented() { return config.getBoolean("ExploitFix.EndermanEndermiteFarms", true); }
public boolean isPistonCheatingPrevented() { return config.getBoolean("ExploitFix.PistonCheating", true); } public boolean isPistonCheatingPrevented() { return config.getBoolean("ExploitFix.PistonCheating", true); }
public boolean isPistonExploitPrevented() { return config.getBoolean("ExploitFix.Pistons", false); } public boolean isPistonExploitPrevented() { return config.getBoolean("ExploitFix.Pistons", false); }

View File

@ -3,7 +3,6 @@ package com.gmail.nossr50.datatypes.skills;
import com.gmail.nossr50.config.Config; import com.gmail.nossr50.config.Config;
import com.gmail.nossr50.mcMMO; import com.gmail.nossr50.mcMMO;
import com.gmail.nossr50.util.BlockUtils; import com.gmail.nossr50.util.BlockUtils;
import com.gmail.nossr50.util.MaterialMapStore;
import com.gmail.nossr50.util.Permissions; import com.gmail.nossr50.util.Permissions;
import com.gmail.nossr50.util.StringUtils; import com.gmail.nossr50.util.StringUtils;
import org.bukkit.Material; import org.bukkit.Material;

View File

@ -178,7 +178,7 @@ public class BlockListener implements Listener {
BlockState blockState = event.getNewState(); BlockState blockState = event.getNewState();
if(BlockUtils.shouldBeWatched(blockState)) if(ExperienceConfig.getInstance().isSnowExploitPrevented() && BlockUtils.shouldBeWatched(blockState))
{ {
mcMMO.getPlaceStore().setTrue(blockState.getBlock()); mcMMO.getPlaceStore().setTrue(blockState.getBlock());
} }

View File

@ -34,6 +34,7 @@ ExploitFix:
LavaStoneAndCobbleFarming: true LavaStoneAndCobbleFarming: true
TreeFellerReducedXP: true TreeFellerReducedXP: true
PistonCheating: true PistonCheating: true
SnowGolemExcavation: true
Experience_Bars: Experience_Bars:
# Turn this to false if you wanna disable XP bars # Turn this to false if you wanna disable XP bars
Enable: true Enable: true