Mineplex2018-withcommit/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/stats/SkywarsTNTStatTracker.java

27 lines
604 B
Java
Raw Normal View History

package nautilus.game.arcade.stats;
import nautilus.game.arcade.game.Game;
import nautilus.game.arcade.game.games.skywars.events.TNTPickupEvent;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
2015-06-26 09:55:49 +02:00
public class SkywarsTNTStatTracker extends StatTracker<Game>
{
2015-06-26 09:55:49 +02:00
public SkywarsTNTStatTracker(Game game)
{
super(game);
}
@EventHandler(ignoreCancelled = true, priority = EventPriority.MONITOR)
public void onTNTPickup(TNTPickupEvent event)
{
if (getGame().GetState() != Game.GameState.Live)
return;
addStat(event.getWho(), "BombPickups", 1, false, false);
}
}