use of com.djrapitops.plan.settings.upkeep.FileWatcher in project Plan by plan-player-analytics.
the class NetworkSettingManager method prepareFileWatcher.
private FileWatcher prepareFileWatcher() {
FileWatcher fileWatcher = new FileWatcher(serverSettingsFolder, errorLogger);
File[] configFiles = getConfigFiles();
if (configFiles != null) {
for (File file : configFiles) {
addFileToWatchList(fileWatcher, file);
}
}
return fileWatcher;
}
use of com.djrapitops.plan.settings.upkeep.FileWatcher in project Plan by plan-player-analytics.
the class ServerSettingsManager method prepareFileWatcher.
private FileWatcher prepareFileWatcher() {
FileWatcher fileWatcher = new FileWatcher(files.getDataFolder(), errorLogger);
File configFile = files.getConfigFile();
fileWatcher.addToWatchlist(new WatchedFile(configFile, () -> updateConfigInDB(configFile)));
return fileWatcher;
}
Aggregations