mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-09-05 03:31:09 +02:00
Add default config for allowinstantbreak.
This commit is contained in:
parent
8d1ee85d9d
commit
542dafc6f7
|
@ -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";
|
||||
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user