Added filter command. If the stats is filtered, the data of the players will not be saved. (/dcstats filter <name>)
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.
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'
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
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.'