Mineuniverse
Log in Register
Plugins

StatsMC

Creates API on server, where player statistics can be accessed
by Affenmilchmann
Download Claim this project
603 downloads
0 likes
Updated Jun 30, 2026
0 hypes
General Informational

Description

This plugin creates API that returns vanilla player statistics on "<ip>:11236/mcstats/all_players/". It requires port 11236 to be opened in your hosting settings.

 This plugin is created to work with StatsMC Discord bot that allows you to access player statistic tops. But if you just need an API, you can use it too

Api entry points:


/mcstats/all_players

args:

statistic - the name of statistic. Available arg values you can find here: /mcstats/list

block_type - the name of material (if statistic requires one. example: DROP statistic requires type of item (material) that is dropped). The arg name may be confusing! It's literally any item in the game. Stone, stick, pickaxe. Available arg values you can find here: /mcstats/list/materials

entity_type - the name of entity (if statistic requires one. example: KILL_ENTITY statistic requires type of entity that is killed). Available arg values you can find here: /mcstats/list/entities

return:

Dict of player names as keys and their stat values as values.

examples:

query string: /mcstats/all_players?statistic=DEATHS

json response (dict[str, int]): {"Notch":4,"_jeb":5}

 

query string: /mcstats/all_players?statistic=TIMES_DIED

json response (dict[str, str]): {"error": "Invalid 'statistic' value"}

commentary: There is no "TIMES_DIED" statistic. You must use statistics keywords from /mcstats/list

 

query string: /mcstats/all_players?statistic=MINE_BLOCK&block_type=STONE

json response (dict[str, int]): {"Notch":123,"_jeb":321}

 

query string: /mcstats/all_players?statistic=BREAK_BLOCK&block_type=INVALID_BLOCK_123

json response (dict[str, str]): {"error": "Invalid 'statistic' value"}

commentary: Both "BREAK_BLOCK" and "INVALID_BLOCK_123" are invalid keywords. But statistic arg has higher priority

 

query string: /mcstats/all_players?statistic=PICKUP&block_type=LEAD_ORE

json response (dict[str, str]): {"error": "Invalid 'block_type' value"}

commentary: "PICKUP" is a valid statistic. But there is no "LEAD_ORE" in the game

 

query string: /mcstats/all_players?statistic=PICKUP

json response (dict[str, str]): {"error": "PICKUP requres 'block_type' argument"}

commentary: API will tell you, if statistic needs second argument

 

query string: /mcstats/all_players?statistic=KILL_ENTITY

json response (dict[str, str]): {"error": "KILL_ENTITY requres 'entity_type' argument"}

 

query string: /mcstats/all_players?statistic=KILL_ENTITY&entity_type=CREEPER

json response (dict[str, int]): {"Notch":49,"_jeb":31}

 

query string: /mcstats/all_players?statistic=KILL_ENTITY&entity_type=DROPPED_ITEM

json response (dict[str, int]): {"Notch":0,"_jeb":0}

commentary: This is an impossible statistic. You can not directly kill a dropped item. Yes. Minecraft handles a lot of these. Like amount of player deaths from XP orb. (/mcstats/all_players?statistic=ENTITY_KILLED_BY&entity_type=EXPERIENCE_ORB)

 


/mcstats/list

args:

No args needed

return:

list of all tracked statistics. All items from this list can be used in statistic argument of /mcstats/all_players/

example:

query string: /mcstats/list

json response (list[str]): ["DAMAGE_DEALT","DAMAGE_TAKEN", ... ~ 80 more items ... ,"STRIDER_ONE_CM"]


/mcstats/list/materials

args:

No args needed

return:

list of all materials. All items from this list can be used in block_type argument of /mcstats/all_players/

example:

query string: /mcstats/list/materials

json response (list[str]): ["AIR", "STONE", ... ~ 1220 more items ... ,"POTTED_FLOWERING_AZALEA_BUSH"]


/mcstats/list/entities

args:

No args needed

return:

list of all entities. All items from this list can be used in entity_type of /mcstats/all_players/

example:

query string: /mcstats/list/entities

json response (list[str]): ["DROPPED_ITEM", ... ~ 110 more items ... ,"PLAYER","UNKNOWN"]

StatsMC.jar
MC 1.19.3, 1.18.1, 1.19.2, 1.18, 1.19, 1.18.2, 1.19.1
Release 2023-06-03 Get
StatsMC-java16.jar
MC 1.16, 1.17
Release 2022-06-19 Get
StatsMC.jar
MC 1.18.1, 1.18, 1.18.2
Release 2022-05-18 Get
StatsMC.jar
MC 1.18.1, 1.18, 1.18.2
Release 2022-03-10 Get

More from Affenmilchmann

OnlineMC
451

You Might Also Like

LegendaryMessages
Custom Join Messages
963,227
NoPhantom
Disables and prevents phantom spawning with minimal configuration, removing them from the server
998
Player Profile
Player Profile
996
HubClear
Plugin Request by: LightZz123 -- Clears player's inventory on command /lobby then teleports them to the hub
988
kCmds
kCmds - kCommands
986
PingMe
Legit just a /ping command.
986