예제 #1
0
  public void IncrementStatistic(BlockEvent event, Player player) {
    McPlayerStats.debugMsg(
        String.format(
            "You %1s %2s %3s",
            event.getEventName().toString(), 1, event.getBlock().getType().toString()));

    IncrementStatistic(
        player, event.getBlock().getType().toString(), event.getEventName().toString(), 1);
  }
예제 #2
0
  public void IncrementStatistic(PlayerEvent event, ItemStack item) {
    McPlayerStats.debugMsg(
        String.format(
            "You %1s %2s %3s",
            event.getEventName().toString(), item.getAmount(), item.getType().toString()));

    IncrementStatistic(
        event.getPlayer(),
        item.getType().toString(),
        event.getEventName().toString(),
        item.getAmount());
  }