Add event when battle ends

Actually no, I just forgot to stage this.
This commit is contained in:
cmastudios 2013-09-20 16:15:05 -05:00
parent a4f1b29922
commit e38b2aa62b

View File

@ -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;
}
}