- File file = new File(configPath);
- if(!file.exists()) {
- gLogger.error("Config file: " + configPath + " not exists! Create it");
- try {
- file.createNewFile();
- }catch (IOException e){
- gLogger.error("Create file error: " + e.getMessage());
- e.printStackTrace();
- }
- }
- }
-
- public static UserInfo getConfig() {
- if (instance != null) return instance;