Merge branch 'master' of https://github.com/Gibstick/DiscoSheep.git
This commit is contained in:
commit
5cce339172
@ -20,9 +20,7 @@ public final class DiscoSheep extends JavaPlugin {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onDisable() {
|
public void onDisable() {
|
||||||
for (String key:getPartyMap().keySet()) {
|
this.stopAllParties();
|
||||||
stopParty(key);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public Map<String, DiscoParty> getPartyMap() {
|
public Map<String, DiscoParty> getPartyMap() {
|
||||||
@ -39,6 +37,12 @@ public final class DiscoSheep extends JavaPlugin {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void stopAllParties(){
|
||||||
|
for(DiscoParty party :this.parties.values()){
|
||||||
|
party.stopDisco();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public boolean hasParty(String name) {
|
public boolean hasParty(String name) {
|
||||||
return this.parties.containsKey(name);
|
return this.parties.containsKey(name);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user