public class LapisCoreFileWatcher extends Object
| Constructor and Description |
|---|
LapisCoreFileWatcher(LapisCorePlugin core)
Start the file watcher
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkOtherFile(File f)
Override this method to deal with an unhandled file being edited
This will only be fired for unknown files, it will not trigger when config or messages files are edited
|
void |
fileUpdate(File f)
Override this method to deal with a file being edited
This will be fired for every file change, including config.yml and messages.yml files
|
void |
stop()
Used to safely stop the file watcher
|
public LapisCoreFileWatcher(LapisCorePlugin core)
core - The LapisCorePlugin that the file watcher should be registered topublic void stop()
public void fileUpdate(File f)
f - The file that has been updatedpublic void checkOtherFile(File f)
f - The file that has been updatedCopyright © 2019. All rights reserved.