Change disable order

This commit is contained in:
fullwall 2014-04-08 16:52:53 +08:00
parent 99862ecf06
commit 560981e452

View File

@ -240,15 +240,15 @@ public class Citizens extends JavaPlugin implements CitizensPlugin {
public void onDisable() {
Bukkit.getPluginManager().callEvent(new CitizensDisableEvent());
Editor.leaveAll();
CitizensAPI.shutdown();
// Don't bother with this part if MC versions are not compatible
if (compatible) {
saves.storeAll(npcRegistry);
saves.saveToDiskImmediate();
despawnNPCs();
npcRegistry = null;
}
CitizensAPI.shutdown();
}
@Override