Mineplex2018-withcommit/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/stats/WinMapStatTracker.java
2014-08-28 00:53:54 -04:00

22 lines
582 B
Java

package nautilus.game.arcade.stats;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import nautilus.game.arcade.game.Game;
import nautilus.game.arcade.game.games.dragonescape.DragonEscape;
public class WinMapStatTracker extends StatTracker<Game>
{
public WinMapStatTracker(Game game)
{
super(game);
}
@EventHandler(ignoreCancelled = true, priority = EventPriority.MONITOR)
public void onDragonEscapePlayerFinish(DragonEscape.PlayerFinishEvent event)
{
addStat(event.getPlayer(), "Win." + getGame().WorldData.MapName, 1, true, false);
}
}