mirror of
https://github.com/taoneill/war.git
synced 2024-12-05 00:23:24 +01:00
Add event when battle ends
Actually no, I just forgot to stage this.
This commit is contained in:
parent
a4f1b29922
commit
e38b2aa62b
@ -0,0 +1,37 @@
|
|||||||
|
package com.tommytony.war.event;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import org.bukkit.event.Event;
|
||||||
|
import org.bukkit.event.HandlerList;
|
||||||
|
|
||||||
|
import com.tommytony.war.Team;
|
||||||
|
import com.tommytony.war.Warzone;
|
||||||
|
|
||||||
|
public class WarBattleWinEvent extends Event {
|
||||||
|
private static final HandlerList handlers = new HandlerList();
|
||||||
|
private List<Team> winningTeams;
|
||||||
|
private Warzone zone;
|
||||||
|
|
||||||
|
public WarBattleWinEvent(Warzone zone, List<Team> winningTeams) {
|
||||||
|
this.zone = zone;
|
||||||
|
this.winningTeams = winningTeams;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Warzone getZone() {
|
||||||
|
return zone;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public HandlerList getHandlers() {
|
||||||
|
return handlers;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static HandlerList getHandlerList() {
|
||||||
|
return handlers;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Team> getWinningTeams() {
|
||||||
|
return winningTeams;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user