2014-08-22 23:20:02 +02:00
|
|
|
package nautilus.game.arcade.stats;
|
|
|
|
|
|
|
|
import org.bukkit.event.EventHandler;
|
|
|
|
import org.bukkit.event.EventPriority;
|
|
|
|
|
|
|
|
import nautilus.game.arcade.game.Game;
|
2014-08-28 06:53:54 +02:00
|
|
|
import nautilus.game.arcade.game.games.dragonescape.DragonEscape;
|
2014-08-22 23:20:02 +02:00
|
|
|
|
|
|
|
public class WinMapStatTracker extends StatTracker<Game>
|
|
|
|
{
|
|
|
|
public WinMapStatTracker(Game game)
|
|
|
|
{
|
|
|
|
super(game);
|
|
|
|
}
|
|
|
|
|
|
|
|
@EventHandler(ignoreCancelled = true, priority = EventPriority.MONITOR)
|
2014-08-28 06:53:54 +02:00
|
|
|
public void onDragonEscapePlayerFinish(DragonEscape.PlayerFinishEvent event)
|
2014-08-22 23:20:02 +02:00
|
|
|
{
|
2014-08-28 06:53:54 +02:00
|
|
|
addStat(event.getPlayer(), "Win." + getGame().WorldData.MapName, 1, true, false);
|
2014-08-22 23:20:02 +02:00
|
|
|
}
|
|
|
|
}
|