@ SneakyThrows public static void loadConfig ( Resource resource ) { if ( resource == null || ! resource . exists ( ) ) { return ; } if ( resource . path ( ) != null && getInstance ( ) . loaded . contains ( resource . path ( ) ) ) { return ; //Only load once! } new ConfigParser ( resource ) . parse ( ) ; if ( resource . path ( ) != null ) { getInstance ( ) . loaded . add ( resource . path ( ) ) ; } }
Loads a config file