Added stopAllParties()
This commit is contained in:
parent
ae8dff9e00
commit
95fdf1295e
@ -20,9 +20,7 @@ public final class DiscoSheep extends JavaPlugin {
|
||||
|
||||
@Override
|
||||
public void onDisable() {
|
||||
for (String key:getPartyMap().keySet()) {
|
||||
stopParty(key);
|
||||
}
|
||||
this.stopAllParties();
|
||||
}
|
||||
|
||||
public Map<String, DiscoParty> getPartyMap() {
|
||||
@ -38,6 +36,12 @@ public final class DiscoSheep extends JavaPlugin {
|
||||
this.getParty(name).stopDisco();
|
||||
}
|
||||
}
|
||||
|
||||
public void stopAllParties(){
|
||||
for(DiscoParty party :this.parties.values()){
|
||||
party.stopDisco();
|
||||
}
|
||||
}
|
||||
|
||||
public boolean hasParty(String name) {
|
||||
return this.parties.containsKey(name);
|
||||
|
Loading…
Reference in New Issue
Block a user