WMCAlliance / BukkitIRCd

BukkitIRCd was an IRC bridge plugin for Minecraft servers running Bukkit. It creates individual 'bot' users for every player to allow seamless communication.
https://wma.im
Other
5 stars 6 forks source link

Cache files before reload, so if there are issues in the config/messages, they don't reset #77

Open WizardCM opened 11 years ago

WizardCM commented 11 years ago

Currently, if you have one issue in either of the files, they'll reset to default, and if you're unlucky to not have it open and ready to re-save.. you can easily lose everything.

Here's my idea; periodically, or on server launch, cache a temporary version - if an updated/modified version of either file on a reload has some YAML issues, display a message ingame, irc and console. In console, include more detail - where the issues can be found, etc, and revert the currently loaded config to the cached copy - but leave the real version unedited so the user can fix the issues and try again.