About FileWatcher
Description
FileWatcher monitors your server’s config and lang JSON files and automatically reloads the affected plugin when changes are detected. This is aimed at faster iteration while developing or tuning plugins — edit JSON, save, and the plugin reloads itself.
Features
Config + Lang monitoring
- Watches oxide/config/*.json
- Watches oxide/lang/**.json (including subfolders)
Safe reload behavior
- Debounce (1s): prevents multiple reloads while a file is still being written
- Reload cooldown (20s): prevents reload loops and spam
- Ignore list: exclude specific plugins from being reloaded
- Always ignores FileWatcher itself
Stability
- If the watcher throws errors, it auto-restarts itself after 5 seconds
Debug mode
- Optional debug output for watcher init, file changes, cooldown/debounce decisions, etc.
Commands
/fwstatus
Shows watcher status (Config/Lang on/off) and ignored count. Admin only.
Permissions
No Oxide permission is used. Access is gated by player.IsAdmin.
Config
{ "Watch config folder": true, "Watch lang folder": true, "Ignored plugins": [ "PermissionManager" // This is an example. ], "Debug mode": false }
load, run, enjoy
