Add default config for allowinstantbreak.

This commit is contained in:
asofold 2013-01-21 06:06:48 +01:00
parent 8d1ee85d9d
commit 542dafc6f7
2 changed files with 3 additions and 1 deletions

View File

@ -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";
}

View File

@ -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<String>());
// Update internal factory based on all the new entries to the "actions" section.
regenerateActionLists();
}