DiscordRewards

DiscordRewards 2.0.3

Fixed typo that would show count of users with expired tokens in the bot status message instead of users with valid tokens when "Require Re-validation" was set to true
Added config option to wipe reward cooldowns when a map wipe is detected
Added config option to revoke rewards and wipe data when the map is wiped
  • Like
Reactions: Oxinix
Display message to user when using /discord with the UI disabled and user is already registered (lang key "Msg.AlreadyRegistered")
  • Like
Reactions: Dimple
If you are using a bot status message backup your message from your config before updating!
Added support for multiple status messages that cycle through

This will remove any existing status message and the new format in the config will be as follows
Code:
"Bot Status Messages":
    [
      "Test message 1",
      "Test message 2"
    ],
Remove data entries for users with a null Discord ID when using the purge command
Ensure connection is established before trying to set bot status
Added support for custom bot status messages with optional variables;
{playersMin} - Displays the current amount of players on your server
{playersMax} - Displays your server capacity
{rewardPlayers} - Displays the current amount of players who are receiving rewards from this plugin and have a valid token


See the overview for more information on how to set one
Added command "discord.admin validatepermissions" to validate user data and reinstate any permissions that are missing
Try and detect when users leave your Discord and revoke their rewards (This is not a solid solution and I recommend you continue using validation tokens)

Prevent storing tokens and send a error to the user if they have DM's disabled which prevents the bot from contacting them

Added config option "Automatically try and re-validate users when their token has expired" which when a users token has expired and they are required to re-validate it will automatically check if they are still in the Discord and re-validate them automatically with out them needing to do anything
Fixed revoke command
Added a bunch of stuff to try and verify the extension is still connected to Discord, and reload the plugin if it isn't
Added checks to make sure the config doesn't have null values
Added support to grant Discord roles to users when validating, which last for as long as they are validated (You will need to update you bots permissions to use this!)

Added console command "discord.admin purge" which will force revoke rewards for any user with an expired token and remove them from the data file
Added console command "discord.admin wipe" which will revoke rewards every user and wipe the data file
Added console command "discord.admin revoke <playerID" which will remove rewards for the specified player and remove them from the data file
  • Like
Reactions: michiel marcelis