fix reload bug
This commit is contained in:
parent
8c4aa23461
commit
d5a127fb1d
Binary file not shown.
|
@ -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.");
|
||||
|
|
Loading…
Reference in New Issue