System.out.println(Files.readString(Path.of(plugin.getDataFolder().getPath(), "config/logging.json"))); // load config var configFile = new File(plugin.getDataFolder(), "config/logging.json"); try ( var configResource = new FileInputStream(configFile) ) { var configReader = new InputStreamReader(configResource); this.config = gson.fromJson(configReader, FPLoggerConfig.class); configReader.close(); this.info("Initialized FPLogger with level {0}.", this.config.getLogLevel().name()); } catch (FileNotFoundException ex) { this.warning("Couldn't load logging.json (doesn't exist). Using fallback configuration."); } catch (JsonParseException | IOException ex) { this.warning("Couldn't load logging.json (read error). Using fallback configuration."); } System.out.println(this.config.isClearSpigotLogs());