From ae8dff9e00c6cb66d917383da347a6d860316041 Mon Sep 17 00:00:00 2001 From: Charlie Wang Date: Sun, 30 Jun 2013 22:16:32 -0400 Subject: [PATCH] Stop all parties when plugin is disabled --- src/gibstick/bukkit/discosheep/DiscoSheep.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gibstick/bukkit/discosheep/DiscoSheep.java b/src/gibstick/bukkit/discosheep/DiscoSheep.java index 52c1848..3fe3bcd 100644 --- a/src/gibstick/bukkit/discosheep/DiscoSheep.java +++ b/src/gibstick/bukkit/discosheep/DiscoSheep.java @@ -20,6 +20,9 @@ public final class DiscoSheep extends JavaPlugin { @Override public void onDisable() { + for (String key:getPartyMap().keySet()) { + stopParty(key); + } } public Map getPartyMap() {