SlackIntegration
This plugin allows for the communication between your Minecraft server and Slack.
Slack GUI
The Slack GUI does not come with the plugin!
Features
- Minecraft server chat and other events get sent to Slack
- Slack messages can be sent to your server
- Multiple/single Slack channel support
- Shows player heads in Slack
- Customize message format that is sent from Slack to the server.
Commands
- /slack url [url] - Get and set the Webhook URL
- /slack port [port] - Get and set the listening plugin port
- /slack token [token] - Get and set the Token
- /slack add <channel> - Add a channel to the list of channels to send the chat to
- /slack remove <channel> - Remove a channel from the list of channels to send chat
- /slack channels - List all the channels that the chat is being sent to
- /slack format [format] - Get and set the format when a Slack message is sent to the server
- /slack reload - Reloads the plugin config
- /slack deaths [true|false] - Get and set whether deaths will be sent to Slack
- /slack achievements [true|false] - Get and set whether achievements will be sent to Slack
All of the commands require the slack.use permission
How to setup
For Slack
- Go to your Team Settings
- Go to the Integrations page
- Enable the Incoming WebHooks integration
- In the Incoming WebHooks settings, select the channel to post to and take note of the WebHook URL
- Enable the Outcoming WebHooks integration
- In the Outcoming WebHooks settings, select the appropriate channel to listen on
- Input the server address with the plugin's port (found in config) in the URL(s) section. http://<server address>:<port>/
- Take note of the Token
For Plugin
- Set the WebHook URL (found in the Incoming WebHook settings) in the config or via command
- Set the Token (found in the Outcoming WebHook settings) in the config or via command
- Add the appropriate slack channel names in the config or via command
- Reload the plugin
When done properly, you should be able to see messages sent from the server on Slack and send messages to the server via Slack.
For some reason I can't get the outgoing webhook to work. I followed the how-to exactly. Anything obvious I could be missing?
Note: I'm wary of just posting pics of my urls and stuff so lemme know what you might need to see if you can help me
This is a neat little plugin. I wasn't familiar with Slack, but it seems as though I would use this plugin to integrate with it. I like the idea, very creative and detailed. Deserves more than just 13 downloads :P
@doomlordking
it looks to me like you put in the wrong URL in the config.
I when talk in game it error with this message [18:27:04 WARN]: java.io.IOException: Server returned HTTP response code: 500 fo r URL: "HOOKSLACKLINK" [18:27:04 WARN]: at sun.net.www.protocol.http.HttpURLConnection.getInputS tream0(Unknown Source) [18:27:04 WARN]: at sun.net.www.protocol.http.HttpURLConnection.getInputS tream(Unknown Source) [18:27:04 WARN]: at sun.net.www.protocol.https.HttpsURLConnectionImpl.get InputStream(Unknown Source) [18:27:04 WARN]: at com.teej107.slack.SlackReceiver.run(SlackReceiver.jav a:70) [18:27:04 WARN]: at java.util.concurrent.Executors$RunnableAdapter.call(U nknown Source) [18:27:04 WARN]: at java.util.concurrent.FutureTask.run(Unknown Source) [18:27:04 WARN]: at java.util.concurrent.ThreadPoolExecutor.runWorker(Unk nown Source) [18:27:04 WARN]: at java.util.concurrent.ThreadPoolExecutor$Worker.run(Un known Source) [18:27:04 WARN]: at java.lang.Thread.run(Unknown Source)