Merge remote-tracking branch 'origin/ver/6.0.0' into ver/6.0.0

This commit is contained in:
dfsek
2021-11-21 19:54:00 -07:00
8 changed files with 6 additions and 17 deletions

View File

@@ -19,8 +19,6 @@ public interface PluginConfig {
boolean isDebugCommands();
boolean isDebugLogging();
boolean isDebugProfiler();
boolean isDebugScript();

View File

@@ -43,10 +43,6 @@ public class PluginConfigImpl implements ConfigTemplate, com.dfsek.terra.api.con
@Default
private boolean debugCommands = false;
@Value("debug.log")
@Default
private boolean debugLog = false; // TODO: 2021-08-30 remove me
@Value("debug.profiler")
@Default
private boolean debugProfiler = false;
@@ -128,11 +124,6 @@ public class PluginConfigImpl implements ConfigTemplate, com.dfsek.terra.api.con
return debugCommands;
}
@Override
public boolean isDebugLogging() {
return debugLog;
}
@Override
public boolean isDebugProfiler() {
return debugProfiler;

View File

@@ -398,7 +398,7 @@ public class ConfigPackImpl implements ConfigPack {
Map<String, Configuration> configurations = new HashMap<>();
platform.getEventManager().callEvent(new ConfigurationDiscoveryEvent(this, loader, configurations::put)); // Create all the configs.
platform.getEventManager().callEvent(new ConfigurationDiscoveryEvent(this, loader, (s, c) -> configurations.put(s.replace("\\","/"), c))); // Create all the configs.
MetaStringPreprocessor stringPreprocessor = new MetaStringPreprocessor(configurations);
selfLoader.registerPreprocessor(Meta.class, stringPreprocessor);