Description:
This was at first a small Plugin that was mainly created for a User Request (
Link).
After Version 1.2.0 there came new Features that @everyone should need with a Discord Server. If you still miss a Feature, feel free to write me on Discord!
Installation:
Dependencies:
This Plugin needs to have
Spicord installed, so that I can talk with a Bot on the Discord Server.
TODO:
- Put all the .jars (Spicord.jar and DiscordNotify.jar) in the plugins folder
For Bungeecord put the DiscordNotify.jar and Config on every Server and Spicord only on Bungeecord!
- Start the Server once and stop it
- Look into the Spicord Installation and then setup the config in the DiscordNotify directory.
- The Name of the Bot, that is defined in the config from Spicord (Options.DiscordBot)
- The MySQL Connection (Database..)
- Enable the Features you like to use (FeaturesEnbabled..)
- The Channel ids for the features (Channel...). How?
- To enabled the Features PlayerInfo and Verify you need to add following Addons in the Spicord Config:
Code (Text):
disnotify::playerinfo
disnotify::verify
Then you can start the Server and are good to go!
If you update a config on Bungeecord Setup, then copy it to every server again.
Features:
Inactivity:
Checks in the Config given Timer for Players Inactivity. Should a player be offline for days, the bot will send a message to the channel.
Player Join and Quit:
Pretty much like the name says. Informs the Discord on a Player Connection or Disconnection.
Player Death:
Should a Player die on the Minecraft Server, there will be a message on the Discord as well.
Server Status:
On a server shutsdown or start a message will be send. For Networks the Bungeecord Server needs to be running first to check the Server-Status changes.
Chat:
Synchronisation between the Minecraft Server and Discord. If you want Player to send messages from Discord to Minecraft, you need to leave "
Options.Chat.syncDiscord" enabled. Otherwise only Minecraft Message will be send to Discord.
Staff:
Works the same like the Chat Feature, but can only be triggert ingame with
/staff <message>. The players also need the Permission "dn.staff" for it. On Discord you need to change on your own the Permissions for the channel.
Broadcast Channel:
You can configure discord Channels, that will send every message (also from bots) to the named or all minecraft servers.
PlayerInfo:
Allows you to get Player Informations from the Discord!
Command: +
player
info <IngameName/UUID>
The + is your Discord Prefix.
Verification:
Verification between Discord and Minecraft. You need to create the "verified" group on your Discord. Or change the Name in the Config.
But a group is needed! To start you need to send a Discord command: +verify <IngameName>. After that you only need to click on the message Ingame and thats all!
Role Sync:
Synchronisation of your Ingame Groups with Discord! Normally the same group name will be searched on your Discord. If there is a difference, please disable
"Options.RoleSync.useIngameGroupNames" in the Config and set them up under "Options.RoleSync.customGroupSync".
Commands:
Minecraft:
/verify accept - Accept the Verification Request
/verify deny - Deny the Verification Request
/verify unlink - Unlink your Minecraft Account with Discord
/staff <Message> - Write a Message in the Staff Only Chat
/staff <on/off> - Turns on/off the Staff Chat for you.
/dchat - Joins or Leaves the Discord Chat (only if enabled in Config, otherwise it is always synced).
Discord:
+ is my discord Prefix. Please use your own there
+verify <IngameName> - Starts a Verification with a Minecraft Account
+playerinfo <IngameName/UUID> - Sends you all Information for a Player
Permissions:
Possible to edit in the Config.
StaffChat:
dn.staff
Placeholder:
There are many Placeholders in the Config to use.
For Bungeecord it is also sometimes possible to use %server% for the current server.
Contact Informations:
Discord:
Here in
Discussions:
https://www.spigotmc.org/threads/discordnotify-notifications-and-utils-for-discord.515879/
If you like this plugin please consider to rate it. And if you like to donate.
