MobArena plugin for Minecraft
Go to file
garbagemule f269b07998 Actually fix the config-reset bug.
Some of the config-file resets were fixed in a previous commit:
4330885d46

The resets fixed previously were ones where snakeyaml would throw a fit
due to tabs. Because an exception is thrown, the call to saveConfig()
is never reached, which means the config-file is never reset.

However, errors resulting from other illegal characters were not caught
because the built-in reloadConfig() method catches, prints and then
simply does nothing about any exceptions thrown, which means the actual
YamlConfiguration would be empty. Saving this empty file would result
in a reset, because MobArena, during initialization, sees missing bits
and pieces and tries to insert them. Thus, the resets were not an issue
with MobArena's attempt to keep the config-file tidy, but the reckless
handling of errors in the built-in config methods in JavaPlugin.

This commit completely overrides the methods in JavaPlugin that would
result in these resets, and the MobArena plugin class stores its own
reference to the config file and an associated FileConfiguration. When
the reloadConfig() and saveConfig() methods are called, the checked
exceptions are caught and rethrown as unchecked exceptions, causing the
plugin to crash when it needs to do so.
2014-07-24 04:59:08 +02:00
resources Update plugin.yml towards next release. 2014-05-23 00:53:53 +02:00
src/com/garbagemule/MobArena Actually fix the config-reset bug. 2014-07-24 04:59:08 +02:00
.gitignore Update .gitignore 2013-06-25 00:38:06 +02:00
build.xml MobArena no longer depends on Heroes. 2014-04-10 19:20:57 +02:00
LICENSE.md Add license. 2014-06-03 14:45:23 +02:00
README.md So, you got a big source code revamp. Big whoop, wanna fight about it? 2012-02-24 05:11:06 +01:00

Please read the Wiki for details on how to set up MobArena, and remember to read the FAQ before posting questions!