From 542dafc6f719dada0df25f67a57b3999dffda266 Mon Sep 17 00:00:00 2001 From: asofold Date: Mon, 21 Jan 2013 06:06:48 +0100 Subject: [PATCH] Add default config for allowinstantbreak. --- .../main/java/fr/neatmonster/nocheatplus/config/ConfPaths.java | 1 + .../java/fr/neatmonster/nocheatplus/config/DefaultConfig.java | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NCPPlugin/src/main/java/fr/neatmonster/nocheatplus/config/ConfPaths.java b/NCPPlugin/src/main/java/fr/neatmonster/nocheatplus/config/ConfPaths.java index 7713ab4b..53c8a744 100644 --- a/NCPPlugin/src/main/java/fr/neatmonster/nocheatplus/config/ConfPaths.java +++ b/NCPPlugin/src/main/java/fr/neatmonster/nocheatplus/config/ConfPaths.java @@ -528,6 +528,7 @@ public abstract class ConfPaths { // Sub-paths that are used with different path prefixes potentially. public static final String SUB_DEBUG = "debug"; public static final String SUB_IGNOREPASSABLE = RootConfPaths.SUB_IGNOREPASSABLE; + public static final String SUB_ALLOWINSTANTBREAK = RootConfPaths.SUB_ALLOWINSTANTBREAK; public static final String SUB_LAG = "lag"; } diff --git a/NCPPlugin/src/main/java/fr/neatmonster/nocheatplus/config/DefaultConfig.java b/NCPPlugin/src/main/java/fr/neatmonster/nocheatplus/config/DefaultConfig.java index 7ddf566c..927a7b57 100644 --- a/NCPPlugin/src/main/java/fr/neatmonster/nocheatplus/config/DefaultConfig.java +++ b/NCPPlugin/src/main/java/fr/neatmonster/nocheatplus/config/DefaultConfig.java @@ -2,6 +2,7 @@ package fr.neatmonster.nocheatplus.config; import java.util.ArrayList; import java.util.Arrays; +import java.util.LinkedList; import org.bukkit.Material; @@ -472,7 +473,7 @@ public class DefaultConfig extends ConfigFile { Material.PISTON_EXTENSION.name(), Material.PISTON_MOVING_PIECE.name() // TODO: ? )); - + set(ConfPaths.COMPATIBILITY_BLOCKS + ConfPaths.SUB_ALLOWINSTANTBREAK, new LinkedList()); // Update internal factory based on all the new entries to the "actions" section. regenerateActionLists(); }