Sueta

DiscordEvents [Bungee & Redis] (Minecraft events to Discord

1.6

Have you ever wanted to receive tps reports, new player statistics from mc to your discord?

·Plugin

The plugin is currently under rework but if you have any questions feel free to join my discord.
https://discord.gg/uv5RPC3ESQ

NO support is currently provided.
This is just experimental working concept.

Spigot version
https://www.spigotmc.org/resources/discordevents-spigot-minecraft-events-to-discord-and-more.89568/

ABOUT

Discord Events, do you ever want Minecraft events directly into your discord server? Now you can!

FEATURES

  • Join/Leave Sends a message to discord if someones join/leaves game
  • Configuration Set own colors, texts, links, footer everything!
  • Automatic events Send CPU, MEMORY, New Registrations
  • Server status Automatically sends if the server is online/offline
  • Player peak Track maximum players on the network

COMMANDS

  • .status <server> - On discord
  • MUST HAVE SPIGOT VERSION ON EACH SERVER YOU WANT TO GET STATUS FROM
  • .list - On discord
  • .player <nick> - Locates player on proxy

IMAGES



SETUP
You need to set up your own discord bot and get the bot token.
https://discord.com/developers

1. Creating bot and getting token, invite link (Oauth2)

Getting this?

Than...

Creating an invite


2. After that, if you got the token just insert it into config.yml:

discord:
  bot-token: "HERE-PUT-THE-TOKEN"

3. Setup the bot, guild and channels

discord:
  bot-token: "MYFANCYTOKEN"
  prefix: "."
  guild-id: "572124941806338048"
  log-channel-id: "811581344445366283"
  admin-log-channel-id: "811581344445366283"

4. Reload the plugin or Restart the server
5. ENJOY!

NOTE
How to Find your Guild ID (Server ID)
You will need the full Server ID (not the name) to continue. Follow these steps to find your Server ID:

1. In Discord, open your User Settings by clicking the Settings Cog next to your user name on the bottom.
2. Go to Appearance and enable Developer Mode under the Advanced section, then close User Settings.
3. Open your Discord server, right-click on the server name, then select Copy ID
4. Paste the Server ID on your text editor for later
5. If desired, you can disable Developer Mode now.

CONFIGURATION

config.yml
# Plugin by LIPETL.EU version 1.2
# Discord: BESSGEORG#9763

#DO NOT TOUCH THIS!
config-version: 1.1
#Set server name
server-name: "Proxy"

#If you are using redis, true on just one proxy
bot-commands: true

#Enable which events do you like to see
enabled-events:
  - tps
  - registrations
  - status
  - join
  - notify
  - switch
  - leave
  - first
  - peak

#If you want registration event you might set true
lobby-server: true

#Interval of automatic events in MINUTES
intervals:
  events-rate: 1
  peak-report: 1

#! IMPORTANT !
#SETUP DISCORD BOT IF YOU DONT KNOW WHAT IS THIS
#LOOK AT SETUP SECTION ON SPIGOT PAGE
discord:
  bot-token: "<TOKEN>"
  prefix: "."
  guild-id: "772938942323359756"
  log-channel-id: "803325764740317184"
  admin-log-channel-id: "803325764740317184"
  staff:
    - "310499560101511169"

#Customize discord embeds
  status:
    title: "Current Status"
    link: "https://google.com"
    image: "https://cdn.discordapp.com/emojis/507340024786845706.png?v=1"
    text:
    - "__%server%__\n"
    - "> Total servers: __%servers%__\n"
    - "> Total Online servers: %serversonline%\n"
    - "> Total Online: **%online%**\n"
    - "> Uptime: **%uptime%**\n"
    - "> CPU: **%cpu%**\n"
    - "> RAM: %memory%\n"
    footer: "TPS "
    admin-log: true
    staff-cmd: true

  player:
    staff-cmd: true

  list:
    header: "Online players: %online%\n"
    player-line: "%player%, "
    end-line: "%player%"
    staff-cmd: false

  registrations:
    title: "My-Server.com"
    link: "https://google.com"
    image: "https://cdn.discordapp.com/emojis/507340024786845706.png?v=1"
    text:
    - "> New registered players: **%registered%**"
    footer: "Stats "
    admin-log: false

  join:
    text: "**%player%** just joined the game!"
    footer: "My-Server.com"
    admin-log: false

  peak:
    text:
    - "**Today** current peak: **%today_peak%** players!"
    - "**Month** current peak: **%month_peak%** players!"
    - "**Day** current peak: **%day_peak%** players!"
    footer: "My-Server.com"
    admin-log: false

  leave:
    text: "**%player%** just left the game!"
    footer: "My-Server.com"
    admin-log: false

  switch:
    text: "The **%player%** switched from server %from% to %target%!"
    footer: "My-Server.com"
    admin-log: false

#Customize discord embeds color
  colors:
    online-color: "#27F08F"
    offline-color: "#D81F1F"
    maintance-color: "#000000"
    main-color: "#000000"
    status-color: "#000000"
    join-color: "#000000"
    switch-color: "#000000"
    register-color: "#000000"
    leave-color: "#000000"
    kick-color: "#000000"
    peak-color: "#000000"

#Customize messages
  messages:
    online-title: "The server started successfully!"
    offline-title: "The server is now offline..."
    online-text: "> Server: __%server%__"
    offline-text: "> Server: __%server%__"
    online-image: "https://imgur.com/hjkl"
    offline-image: "https://imgur.com/hjkl"
    online-icon: "https://imgur.com/hjkl"
    offline-icon: "https://imgur.com/hjkl"

minecraft:
  find-player: "%player% is now on %server%"
  notfound-player: "%player% not found on proxy..."

GOALS
✔ 10 Downloads
✔ 20 Downloads

✔ 50 Downloads
✔ 100 Downloads
✔ 500 Downloads

✘ 1000 Downloads ?!


Do not use the review section for help/bug reports just DM me, thanks!

You are not permitted to do decompile&redistribute plugin.

Similar projects

Plugin →