DefaultStats

DefaultStats

Automatically logs full vanilla Minecraft statistics for every player into MySQL/SQLite.

61 downloads 2 followers

DefaultStats

A lightweight plugin that automatically writes each player's vanilla Minecraft statistics into a database - SQLite or MySQL, your choice.

Features

  • Collects every untyped vanilla statistic automatically: deaths, player kills, mob kills, distances (walking, sprinting, swimming, elytra, boat, horse, minecart), playtime, jumps, fishing, villager trades, chests opened, damage dealt/taken, and more - no setup needed.
  • Tracks block mining and mob kills per type (diamond ore, iron ore, zombies, skeletons, etc.) - fully configurable list in config.yml.
  • Writes one row per player, one column per statistic - a clean, ready-to-query table. No key-value mess, no extra SQL needed.
  • Configurable sync interval, plus save-on-quit.
  • Database writes run asynchronously - no main-thread lag, even on busy servers.
  • Folia-compatible.

Example table

uuid player_name deaths player_kill mine_block_diamond_ore kill_entity_zombie ...
... Steve 12 3 47 210 ...

Configuration

database:
  type: MYSQL   # or SQLITE
  mysql:
    host: localhost
    port: 3306
    database: minecraft
    username: root
    password: ""
sync:
  interval-seconds: 300
  save-on-quit: true
track-materials:
  - DIAMOND_ORE
  - IRON_ORE
track-entities:
  - ZOMBIE
  - SKELETON

Commands

  • /defaultstats sync - force-save all online players right now
  • /defaultstats reload - reload config.yml without a restart

Permission: defaultstats.admin (default: op)

Why use this?

Perfect if you want to build your own leaderboard website, Discord bot integration, or just query raw player stats directly with SQL - without digging through Plan's internal generic tables or writing your own Statistic API code from scratch.

No gallery available for this project.

Version Minecraft Loader Download

DefaultStats 1.1.0

1.1.0

1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11, 26.1, 26.1.1, 26.1.2, 26.2, 26.3
folia, paper, purpur
Download

DefaultStats 1.0.0

1.0.0

1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11, 26.1, 26.1.1, 26.1.2, 26.2, 26.3
paper, purpur
Download