Finally has became real!,
since here you had to verify you email adress to recover you account on the server. Now, if the server has AuthMe you can add this plugin following the setup and allow your players to recover their password with Discord
How a player links their account He joins your guild / discord server He does /link name#0000 The bot sends a verification code saying to do the command /confirm 123456 (all the messages are configurable in the config) After that the account was linked
How a player recovers his account The player it’s unlogged and doesn’t know the password. Then he remembers he has linked the account and does /recover name#0000 The bot will send a recover message saying to type /recover ABC123 After that the player will be unregistered and can do now the authme command /register password password
Permissions: For now the commands can be done by everyone.
Requirements: - A discord account
-
AuthMe (version doesn't matter)
Planned features:
Adding a random two factor autentication (enabled on the config)
Integrating PlaceHolderApi to set placeholders like %discord_tag and %discord_status (online/offline)
Installation
Download the discordX.xx.jar and place it on the /plugins/ folder
Click "click to reveal the token" button and copy that key
Go to the /plugins/discordAuthme/ folder and open config.yml
Paste the token in the
On the left menu press OAuth2
In the scopes box select the option "Bot"
And then below there is another box called "BOT PERMISSIONS"
Check theese values:
View server insights
Send messages
Read message history
Then go back in the "scopes" box and copy the link
Paste that link in the browser and choose what discord server you want it on
After having added the bot to the discord server, go with your discord account on the server you've added the bot and go in
SERVER SETTINGS --> Widget --> ID of the SERVER [copy]
Copy that ID and paste it on the config.yml at
Save the
config.yml and reload the server. It should work. For any problems contact me on
my discord server.
Configuration here's the config.yml file
Code (YAML):
############################# # Plugin created by NickP05 # #############################
#Do I have to send a message after the login if the player #hasn't linked his/her account? (for the message go to Messages-->notLinked) rememberToLink: true
#Theese are the informations for the clickable and hoverable %discordUrl discordServerMessage: "click here Discord Server" discordServerUrl: "https://discord.gg/u5vYznP" hoverUrlMessage: "&6Join the xx Discord Server!"
#The discord bot needs to stay in the same guild of a player #to send the message. Enter here you'r discord Guild ID #Discord--> server settings --> widget --> Server ID guildID: "000000000000000000"
############################################################################## # HOW TO ADD THE BOT TO YOUR GUILD/SERVER # # After you created the bot (see below paragraph) # # - go on "OAuth2" (in the left screen menu) # # - Go on the div "Scopes" and select bot # # - In the div down called "BOT PERMISSIONS" select # # ° View server insights # # ° Send messages # # ° Read message history # # - in the "Scopes" div has been created a link. Copy that on your browser # # - select what server you want the bot to be added # # - then click "authorize" # ##############################################################################
#Discord bot TOKEN # - Go to this page # https://discord.com/developers/applications # then if you have already a bot paste it here, probably you won't so: # - Click "New Application" on the top right corner # - Enter your private bot name (means only you see that name) # - Then there's a menu on the left. Click "Bot" # - Then click "Add Bot" (Yes do it) # - Then do "click to reveal the token" # - copy that token and paste it below (botToken:) botToken: "abcdefghilmnopqrstuvzABCDEFGHILMNOPQRSTUVZ123456789.abcdefg" messages: #For the messages are the special chars #&2 Green; &4 Red; &6Gold; &f Reset; &l Bold; &v Light Purple; &vd Dark Purple; &g Gray; &a Aqua #Here's the internal placeholders # %playername: returns the player name (not the nick) # %discordUrl: return an clickable text configurable hover here # %discordPIN: returns the current discord pin to link the account # %discordRecoverPIN: returns the pin for doing /recover PIN notLinked: "&2Link your &v&lDiscord Account&2 to in a future &6recover \n&2your password. &g/link name#0000" inGameSuccessSentLinkMessage: "&2Well done %playername, I've just sent you the code" nonMemberOfDiscordServer: "&2You have to be member of our %discordUrl" minimumRequestDelay: "&4Please wait at least twenty minutes between link requests." minimumRecoverDelay: "&4Please wait at least twelve minutes between requests. \n&4We've sure your message has arrived" failedGetAccountId: "&4The account you entered was not found. \n&4Are you member of our&v&l %discordUrl &4?" accountAlreadyLinked: "&4This account has been already linked. \n&4You can unlink it doing: &g/unlink" successfullyLinked: "&2The account has been successfully linked!" successfullyUnLinked: "&2The account has been successfully unlinked!" accountNeverLinked: "&4This account was never linked, sorry." sentAnRecoverPassword: "&2We've just sent to your discord your recovery command" discordConfirmMessage: "Hi %playername!, here's your code:" discordConfirmMessage2: "/confirm %discordPIN" discordRecoverMessage: "A recover password request was sent. If were you do" discordRecoverMessage2: "/recover %discordRecoverPIN"
Contact me My Discord Server can be ok as contact You can contact me on my discord server for everything