Stop all parties when plugin is disabled

This commit is contained in:
Charlie Wang 2013-06-30 22:16:32 -04:00
parent 5ecbb93091
commit ae8dff9e00

View File

@ -20,6 +20,9 @@ public final class DiscoSheep extends JavaPlugin {
@Override @Override
public void onDisable() { public void onDisable() {
for (String key:getPartyMap().keySet()) {
stopParty(key);
}
} }
public Map<String, DiscoParty> getPartyMap() { public Map<String, DiscoParty> getPartyMap() {