DiscordPAPIStats icon

DiscordPAPIStats -----

Show your players stats on your Discord server!




  1. The code structure of SQL managers has been changed. (better now)
  2. The default avatar api has been changed. (mc-heads.net)
  3. Added permission requirement for /dcstats command. (dcpapistats.admin)
  4. Fixed a few bugs.
----------, May 6, 2021

  1. Added bot activity. If you want to enable bot activity, check the 'bot-activity' value in the config file.
  2. Fixed a few bugs.
  3. Updated Java Discord API and HikariCP libraries.
I'm looking new ideas for the plugin.
If you have new ideas, you can contact me via discord or spigot discussion.
Thank you!
----------, Apr 3, 2021

  1. Fixed a few bugs.
  2. Plugman ignored. DiscordPAPIStats can no longer be loaded/unloaded with Plugman.
----------, Mar 3, 2021

  1. Added MYSQL support!
  2. Added filter command. If the stats is filtered, the data of the players will not be saved. (/dcstats filter <name>)
  3. For example, fixed the 'Stats already exists' bug when you tried to create a stats named 'KillsTest' while there is a stats named 'Kills'
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.
  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'
Code (YAML):
# 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
----------, Feb 24, 2021

  1. Added info command to get more information about the player's stats.
Command: /dcstats info <player | offline player>

[​IMG]

MYSQL SUPPORT IN NEXT UPDATE!
----------, Feb 19, 2021

  1. Fixed an error that occurred while creating new stats.
  2. Fixed an error that occurred when copying a default value to the configuration file.
----------, Feb 13, 2021

  1. Added per-stats commands. If you enable this option, a command is defined for each statistic you add.
Code (YAML):
# Per-stats commands
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}'
[​IMG]

**DiscordSRV Support**
[​IMG]
----------, Feb 6, 2021

  1. More options have been added to edit values in the configuration file.
New options
Code (YAML):
# NEW OPTIONS
# -----------
# 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'

# {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.'
----------, Jan 25, 2021

  1. Fixed an error while executing stats command.
[​IMG]
----------, Jan 22, 2021

  1. Added {player_name} placeholder for custom fields.
----------, Jan 19, 2021

  1. Added DiscordSRV support. If DiscordSRV is found, support is automatically enabled.
If user's account is linked
[​IMG]

If the tagged user's account is linked
[​IMG]

Unlinked account
[​IMG]
----------, Jan 18, 2021

  1. Added setName method to edit your stat's name.
    /dcstats setName <stats name> <new name>
  2. Added setPlaceholder method to edit your stat's placeholder.
    /dcstats setPlaceholder <stats name> <new placeholder>
  3. Added custom fields option for embed message. If you enable this option, only what you add will be shown in the fields of the embed message.
    Code (YAML):
     custom-fields:
        enabled
    : false
        fields
    :
        - '** {stats_Kills }** %VALUE {stats_Kills_value}'
        - '** {stats_Deaths }** %VALUE {stats_Deaths_value}'
     
----------, Jan 17, 2021

  1. Added update checker.
  2. Added aliases for Discord command.
    Code (YAML):
    stats-command-aliases :
     - '.mcstats'
  3. Case sensitivity ignored when searching for an offline player.
My plans for future updates
  1. DiscordSRV support
  2. MySQL support
  3. ... (if you have a suggestion, contact me)
----------, Jan 16, 2021

Resource Information
Author:
----------
Total Downloads: 1,607
First Release: Jan 15, 2021
Last Update: May 6, 2021
Category: ---------------
All-Time Rating:
13 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings