Skip to content

Player Purchases

The MCMetrics plugin is not inherently tied to any storefront. It is designed in a way where you can agnostically track purchases from players from any storefront.

All you need is for the storefront's plugin / platform to emit the console command /playertracker purchase.

/playertracker purchase <player_uuid> <purchase_value> <currency> <product_name>
VariableDescriptionExample
player_uuidThe UUID of the player that made the purchase.0355d54e-cd8d-4db9-90af-789dda8f4ca6
purchase_valueA decimal value representing the value / price point that the player spent on the product.2.50
currencyCurrency code following ISO 4217.USD
product_nameThe name of the product the player purchased."Supporter Tier"