2015-06-25 02:08:31 +02:00
|
|
|
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-25 02:08:31 +02:00
|
|
|
{
|
|
|
|
|
2015-06-26 09:55:49 +02:00
|
|
|
public SkywarsTNTStatTracker(Game game)
|
2015-06-25 02:08:31 +02:00
|
|
|
{
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|