Git Product home page Git Product logo

minecraft-discord-bot-bukkit's Introduction

Minecraft-Discord-Bot-Bukkit

Minecraft Bukkit plugin which integrates Minecraft to the Discord and vice versa.

Features

  • Messages from Minecraft chat can be delivered to the selected Discord channel
  • Messages from selected Discord channel can be delivered to the Minecraft Chat
  • Different types of messages can be turned off by using commands or by editing the config file
  • Minecraft users can be authenticated using Discord
  • Existing users vote if new user should be let in to the server on the Discord

Also following can set to be sent to the Discord channel:

  • Death notices
  • Advancement messages
  • Join/quit messages (with a count of the current players online)
  • Server status to specific Discord Channel with list of users currently online
  • Server "say" messages from the server console

Requirements

  • Minecraft server which supports Bukkit plugins
  • Be an owner of a Discord server

Setup

  1. Download latest plugin .jar from the releases and place it to the plugin folder of your server
  2. When you start server first time with the plugin it generates default config file (explained below)
  3. Go to https://discordapp.com/developers/
  4. Create new application
  5. Create new bot for the application (Bot -> Add bot)
  6. Copy bot token to the config.yml
  7. Restart Minecraft Server
  8. Invite it to your server:
    • Click "OAuth"
    • Select "bot"
    • Select bot permissions (at least "Administrator")
    • Copy URL and go to it
    • Select server where you want the bot to join and authorize it (If you do not see server in the list, you might not be an owner of that server)
  9. If bot is running at the server and it has correct token, you can write command "!set integratedchannel" on the textchannel which you want integrate with Minecraft chat
  10. Select channel were you want access voting messages to appear. (You should change channel permission to allow only readin channel and its history and disallow everything else)
  11. Create role to the server that has the access to the integrated channel and access requesting channel
  12. Copy role's ID (Enable development mode from the Discord settings and then right click role name) and activate it to the bot by editing config file or using command "!set SERVERNAME role ROLEIDHERE"

Configuration file

discord:
  botToken: "DEFAULTTOKEN" # Discord bots authentication token
  channelID: "DEFAULTCHANNELID" # Discord channel id which is integrated with the Minecraft channel
  requestAccessChannelID: "ACCESSREQUESTCHANNELID" # Discord channel id of the channel were already allowed users vote if new user should be let in to the server
  syncedChannelRoleID: "DEFAULTROLE" # Discord role id of the role that have access to integrated Discord and request voting channel 
  commandPrefix: "!" # Prefix that has to be used before bot commands
  serverName: "SERVERNAME" # Server identificator, used on commands and before messages
  statusChannelID: "STATUSCHANNELID" # Discord channel id where status message is send
  statusMessageID: "STATUSMESSAGEID" # Discord message id where status is updated

integration:
  mincraftChatToDiscord: true       # Enables message integration from Minecraft chat to Discord channel
  discordToMinecraftChat: true      # Enables messages integration from Discord channel to Minecraft chat 
  deathMessagesToDiscord: true      # Enables death notices to be delivered to Discord channel
  joinQuitMessagesToDiscord: true   # Enables join/quit notices to be delivered to Discord channel
  serverStatusChannel: true         # Enables status channel and message to the Discord
  serverSayMessagesToDiscord: true  # Enables server say messages to be delivered to Discord channel
  advancementsToDiscord: true       # Enables join/quit notices to be delivered to Discord channel
  discordWhitelist: true            # Enables Discord whitelist (remember to disable original whitelist from the server settings)
  serverSayMessageFilterPrefix: '!' # Filters server say messages that begins with this prefix

Commands

Only Discord server owner can use these commands. SERVERNAME

Command Explanation
!set SERVERNAME integratedchannel Integrates Discord channel where command was send with the Minecraft chat
!set SERVERNAME prefix NEWPREFIX Changes prefix used before commands. Default is "!"
!set SERVERNAME minecraftchattodiscord Enable/disable message flow from the Minecraft chat to the Discord
!set SERVERNAME discordtominecraftchat Enable/disable message flow from the Discord channel to the Minecraft
!set SERVERNAME deadMessagesToDiscord Enable/disable death notices to the Discord channel
!set SERVERNAME joinQuitMessagesToDiscord Enable/disable join/quit messages to the Discord channel
!set SERVERNAME serverStatusChannelToDiscord Enable/disable server status channel and message to the Discord
!set SERVERNAME serverSayMessagesToDiscord Enable/disable server console "say"-messages to the Discord channel
!set SERVERNAME advancementstodiscord Enable/disable advancement messages to the Discord channel
!set SERVERNAME accessrequestchannel Set channel were bot should post access voting messages
!set SERVERNAME role ROLEID Set role id which bot should add to authenticated user to get access to the other Minecraft Discord channels

minecraft-discord-bot-bukkit's People

Contributors

oodi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

minecraft-discord-bot-bukkit's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.