use of com.andrei1058.bedwars.api.events.gameplay.NextEventChangeEvent in project BedWars1058 by andrei1058.
the class Arena method setNextEvent.
/**
* Set next event for the arena.
*/
public void setNextEvent(NextEvent nextEvent) {
if (this.nextEvent != null) {
Sounds.playSound(this.nextEvent.getSoundPath(), getPlayers());
Sounds.playSound(this.nextEvent.getSoundPath(), getSpectators());
}
Bukkit.getPluginManager().callEvent(new NextEventChangeEvent(this, nextEvent, this.nextEvent));
this.nextEvent = nextEvent;
}
Aggregations