mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-02-24 00:01:36 +01:00
fix reload bug
This commit is contained in:
parent
0edd66c227
commit
7fc22a2e27
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
Block a user