- Native Minecraft Version:
- 1.16
- Tested Minecraft Versions:
- 1.7
- 1.8
- 1.9
- 1.10
- 1.11
- 1.12
- 1.13
- 1.14
- 1.15
- 1.16
- Source Code:
- https://github.com/eylexlive/DiscordPAPIStats
- Contributors:
- umut (stopped development for a while)
DiscordPAPIStats
DiscordPAPIStats is a plugin to allow you to show your players stats on your Discord server using PlaceholderAPI placeholders.
Bot setup
Usage
- Create a new application at https://discordapp.com/developers/applications/
- On the application's page, go to the Bot tab, click Add Bot, and confirm.
- Enable the SERVER MEMBERS INTENT option under Privileged Gateway Intents on the bot tab as well.
- Click copy button under Token on the bot tab.
- Stop your server, and install the plugin then open configuration file.
- Paste the bot token you copied earlier into the bot-token value.
- Click here and paste your bot's Client ID value to the page.
- Done! you're now created & invited a new bot and installed the plugin. You can configurie all settings in configuration file.
Commands
- Download your papi expansion if you need it. -> /papi ecloud download <expansion>
**If you are not familiar with the PlaceholderAPI, you should read this topic**
https://spigotmc.org/wiki/placeholderapi-tutorial- Create new stats -> /dcstats create <name> <placeholder>
- Check it on your Discord server -> .stats <player>
- Done!
MYSQL support
- /dcstats create <stats name> <placeholder>
- /dcstats delete <stats name>
- /dcstats setName <stats name> <new name>
- /dcstats setPlaceholder <stats name> <new placeholder>
- /dcstats filter <stats name>
- /dcstats info <player | offline player>
- /dcstats list
- /dcstats reload
- Only one permission required (dcpapistats.admin)
Thanks to MySQL support, you may want to show the data of more than one server in the same embed message, or you can use it for another purpose.
DiscordSRV support
- If you want to show multiple server data in one embed message
Connect all servers to the same database
- If you don't want to show multiple server data in one embed message
Create a new database for each server on MySQL like: 'discordstats_server1, discordstats_server2'
- If user's account is linked
- If the tagged user's account is linked
- Unlinked account
Without DiscordSRV support
Per-stats commands
**DiscordSRV support**
Config
Code (YAML):# TOKEN
bot-token: Your token here.
# Database settings, if set to false, SQLite is used
# 1- If you want to show multiple server data in one embed message
# Connect all servers to the same database
# 2- If you don't want to show multiple server data in one embed message
# Create a new database for each server on MySQL like: 'discordstats_server1, discordstats_server2'
# Otherwise, data may conflict
mysql:
enabled: false
host: localhost
port: 3306
database: discordstats_server1
username: root
password: 1234
use-ssl: false
# The character used to separate the stats name and the stats placeholder
# You may need to use it when necessary
# DO NOT change unless necessary
stats-separator: '%'
# Stats added to this list are ignored. (The data are not saved)
stats-filter-list:
- 'Example_Stats_Name'
# DO NOT change unless necessary
avatar-api: 'https://minotar.net/avatar/{player}'
# Stats command "prefix + command"
stats-command: '.stats'
stats-command-aliases:
- '.mcstats'
# What should display when there is no player data available
no-data-available: '----'
# The online status content of the embed message
online-status:
# If player is online, the text to write in the embed message
online: Online
online-image: 'https://eylexlive.github.io/green.png'
# If player is offline, the text to write in the embed message
offline: Offline
offline-image: 'https://eylexlive.github.io/red.png'
# Per-stats commands
# If you enable this option,
# A command is defined for each statistic you add
per-stats-commands:
enabled: false
command-format: '.s-{stats_name}'
embed:
description: '{stats_name} stats for player `{player}`'
author: '{online_status}' # It can be editable from above
color: gray
fields:
- '**{stats_name}**%VALUE {stats_value}'
# Stats command's embed
stats-embed:
description: 'Stats for player `{player}`'
author: '{online_status}' # It can be editable from above
color: gray
field-format: '**{stats_name}**%VALUE {stats_value}'
custom-fields:
# Field limit: 25
enabled: false
fields:
- '**Name**%VALUE {player_name}'
# {stats_Kills_value} = The value of the statistic named Kills.
- '**Kills**%VALUE {stats_Kills_value}'
# {stats_Deaths_value} = The value of the statistic named Deaths.
- '**Deaths**%VALUE {stats_Deaths_value}'
# {nl} = new line
discord-messages:
correct-usage: '> Correct usage: `{command} <player>`'
# For DiscordSRV support
account-unlinked: '> No account linked to your Discord account.{nl}
> Correct usage: `{command} <player | @mention>`'
account-unlinked-target: '> {target}, does not have an account linked to a Discord account.'

DiscordPAPIStats 2.3
Show your players stats on your Discord server!
-
zMario, fantasyserver, amiroslo and 2 others like this.
Recent Updates
- DiscordPAPIStats - v2.3 May 6, 2021
- DiscordPAPIStats - v2.2 Apr 3, 2021
- DiscordPAPIStats - v2.1 Mar 3, 2021
Recent Reviews
-
qAbdullah
- 3/5,
The bot is getting crashed by users thru using commands in the bot's DM. Please give us a option to disable DM listening!!!
-
Nyukey
- 5/5,
Update 1.17 pls
....................................................................thx -
HeavenCrafter
- 5/5,
I am deeply in love with this plugin, though I do have a feature that I wish it had. A way to make different seperate categories of statistics instead of just have one standard one which shows all details. This would be amazing if lets say I wanted to make a dedicated embed for maybe server details and TPS or a leaderboard. The possibility there would be endless and it gives server owners more options to make multiple embeds instead of having just one standard one. Honestly, would make a good premium feature if there is ever a "pro/premium" version of this plugin.
-
AlonsoASD
- 5/5,
Excellent plugin, i love this, easy to set up and customizable.
Also i have a suggestion, can you make that placeholders containing color codes, deletes it? For example i used player_displayname and it shows all the whole thing §b§ki§x§0§E§7 ^^-
Author's Response
Thank you! Yes, I can.
-
elkin1547992
- 5/5,
Really good plugin, but i have a question...
How Can i Change The Embed's color?
And Use PlaceHolders On The Descripcion?. Thanks-
Author's Response
Thanks for the review. Its not possible to show placeholders in the description of the embed, but you can change color of the embed. Check the config file.
-
zMario
- 5/5,
BEST plugin for Discord! The developer is very helpful and if you have any bugs or question, he help you
10/10-
Author's Response
Thank you!!
-
zMario
- 5/5,
Best plugin for discord, good DiscordSRV integration! My suggestion is to add more words for every placeholder name (example: Victory - placeholder to Total Victory - placeholder etc)
-
Author's Response
Thank you! You can add more words with custom fields.
-
SrJesusxD
- 5/5,
Excellent plugin and I hope you don't leave this plugin, by the way the author answers the questions in time
-
Author's Response
Thank you!
-
hitewaer
- 5/5,
GREAT GREAT GREAT PLUG!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
....................................-
Author's Response
Thank you!
-
Nyukey
- 5/5,
Thank you, very good plugin!Good luck! What about Mcmmo placeholder? I can`t add skill statistic. Maybe use wrong PAPI or not -_0
-
Author's Response
Thanks for the review. This problem may be related to the mcmmo placeholder. Contact the dev of that.