reformatted project
This commit is contained in:
@@ -24,16 +24,17 @@ public class Main {
|
||||
private final static Logger logger = Logger.getGlobal();
|
||||
public static ConfigurationNode globalConfig;
|
||||
|
||||
@SuppressWarnings("ResultOfMethodCallIgnored")
|
||||
public static void main(String[] args) throws ConfigurateException {
|
||||
//noinspection ResultOfMethodCallIgnored
|
||||
Resource.values(); // This initializes and preloads the enum and extracts the resources
|
||||
Languages.getInstance(); //Preload languages into the jvm
|
||||
|
||||
globalConfig = YamlConfigurationLoader
|
||||
.builder()
|
||||
.path(Resource.CONFIG.getPath())
|
||||
.build()
|
||||
.load();
|
||||
.builder()
|
||||
.path(Resource.CONFIG.getPath())
|
||||
.build()
|
||||
.load();
|
||||
|
||||
ConfigurationNode serverConfig = globalConfig.node("server");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user