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);
  }
  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());
  }
  public void initialize() {
    if (database == null) {
      String conn = McPlayerStats.getConfig().getString("connectString");
      String user = McPlayerStats.getConfig().getString("dbUser");
      String passwd = McPlayerStats.getConfig().getString("dbPass");
      this.database = new MCStatsDB(conn, user, passwd);
    }

    try {
      try {
        database.Open();

        categories = database.getCategories();
        statistics = database.getStatistics();
        players = database.getPlayers();
      } catch (Exception e) {
        log.info(e.toString());
      }
    } catch (Exception e) {
      log.info(e.getLocalizedMessage());
    }
  }