Skip to content

TrueMB/DiscordNotify

Repository files navigation

[Bungeecord/Velocity/Bukkit] DiscordNotify - Notifications and Utils for Discord!

DiscordNotify is a Spigot Plugin, which depends on a Spicord Bot. It Supports many Features to make your Minecraft Server interact with Discord and the other way! This makes it also possible to be in Minecraft, without being in Minecraft! You can just chat on any Device over Discord with your Minecraft Players! There are also Features which makes it possible, to automate your Discord. Since there is a Verficiation Process implemented, you wont need to set any Role on your Discord for your Minecraft Players. They will get it after successfully verification automaticity!

Installation

Dependencies

This Plugin needs to have Spicord installed and configurated, so that I can talk with a Bot on the Discord Server.

TODO

  1. 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!

  2. Start the Server once and stop it

  3. 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..) Please use the Fork MariaDB, since MySQL wont be updated anymore!
    • Enable the Features you like to use (FeaturesEnbabled..)
    • The Channel ids for the features (Channel...). How?
  4. To enabled the Features PlayerInfo and Verify you need to add following Addons in the Spicord Config:

     disnotify::playerinfo
     disnotify::verify
    

    grafik

  5. 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. grafik

Player Join and Quit

Pretty much like the name says. Informs the Discord on a Player Connection or Disconnection. grafik grafik

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.

image

Player Death

Should a Player die on the Minecraft Server, there will be a message on the Discord as well.

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 . 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: +playerinfo <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 . After that you only need to click on the message Ingame and thats all!

grafik grafik grafik

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 - 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 - Starts a Verification with a Minecraft Account.
+playerinfo <IngameName/UUID> - Sends you all Information for a Player.
grafik

Permissions

All Permissions can be found in the config. You could also change the name of the permission.

dn.staff - Allows Player Ingame to use the Staff Command.

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:

Spigot:

https://www.spigotmc.org/threads/bungeecord-velocity-bukkit-discordnotify-notifications-and-utils-for-discord.515879/

If you like this plugin, please consider to rate it on Spigot. And if you like to donate.
New Bugs will be shortly fixed!