fix reload bug

This commit is contained in:
aPunch 2012-01-25 17:09:02 -06:00
parent 8c4aa23461
commit d5a127fb1d
2 changed files with 4 additions and 0 deletions

Binary file not shown.

View File

@ -113,8 +113,12 @@ public class Citizens extends JavaPlugin {
@Override
public void onDisable() {
// Save an despawn all NPCs
config.save();
saveNPCs();
for (NPC npc : npcManager.getSpawnedNPCs())
npc.despawn();
Bukkit.getScheduler().cancelTasks(this);
Messaging.log("v" + getDescription().getVersion() + " disabled.");