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.
So, after a fun adventure (https://github.com/MLG-Fortress/SlackIntegration/commits/2a84f881c6fdbfea537bbef1cbdc1fdd5b056250) I've found the issues why some of you might not be able to receive messages from Slack nor get join/quit/death messages.
For the former - you probably won't get messages because you haven't set anything in the server-ip in server.properties. I've fixed this by using 0.0.0.0 when this is detected to be the case (Bukkit#getIP returns an empty string in this case, and I guess an empty string is treated as localhost by new InetSocketAddress).
For the latter - the author didn't account for empty/null join/quit/death messages. If you silence these messages or have them displayed elsewhere (e.g. actionbar or w/e), then this will be null. I can fix this either via ignoring null messages, or displaying a preset message.
I'll PR the first fix, but not sure how people want to deal with the second issue; probably the best is to just ignore, and let other plugins handle hooking in and sending custom messages to SlackIntegration if they so wish, since there's no language file in this plugin (nor is there a need for one) anyways.
How do you send messages from Slack to in-game?
Hello, I've got this plugin working for a while, but suddenly Player Disconnect event doesn't broadcast to slack channel anymore. I have HTTP 500 error in my console and when I check the $_REQUEST sent, this plugin doesn't send any text in the message anymore. Here is the var_dump of the Player Disconnect $_REQUEST to Slack's incoming webhook.
Do you have any idea why this is happening? It was working fine before... I've came to uninstall several plugins (including EssentialsXChat) but I still have this error.
Im very much interested in this plugin. Im currently using the ATLauncher Resonant Rise pack with uses FML. on startup it looks for an mcmod.info file to load the mod.sense the file is not present, it doesnt seem to load the mod at all. Here is more information about the file: https://github.com/MinecraftForge/FML/wiki/FML-mod-information-file
Incoming message works. But out coming message does not work.
And If I have same id in the game and Slack, Incoming message does not work. Maybe my Venturechat plugin?
Also I have this.
@teej107
Yes, I did. I don't know what's wrong. Maybe next release we need some log or debug mode.
@jeeperscreeper77
Glad your problem was fixed and even more happy that you like the plugin!
I fixed the memory leak, it was my fault. Good plugin :)
@teej107
If you need any help just ask cnaude on spigotmc or in #purpleirc on EsperNet. I've also made a PR to mavenize your project and also added the softmute feature to my "softmute" branch: https://github.com/MLG-Fortress/SlackIntegration/tree/softmute
@jeeperscreeper77 I highly doubt that it is my plugin causing a memory leak. It could be others too or just the fact that your server uses a lot of RAM and no memory leak is actually happening.
@dfdgsdfg Did you follow my instructions step by step?
@The_PC_Tech_Guy Yeah I'll probably release the source code on Github. There are a lot of requests that may take a while to make/test such as your PurpleIRC suggestion.
@jeeperscreeper77
How did you determine this plugin was using 1GB, did you do a heap dump?
@teej107
If PurpleIRC integration can be established that'd be great, because I use IRC for chatting while most of my staff uses Slack - and at the moment it's impossible to tell if my staff members are using Slack to chat if I'm not in-game but on IRC.
Also, if it can ignore "softmuted" messages from GriefPrevention that'd be great (it works by removing all recipients except the sender and other softmuted players from chat event instead of blindly cancelling it, so the person doesn't know they've been muted).
Would you consider going open source and publishing code to GitHub?
I dunno why but outcoming webfoot does not work.
Another plugins works fine. What should I do?
- http://dev.bukkit.org/bukkit-plugins/slackchat/
I think this plugin has a memory leak, mine was using over a gig of ram, is anyone else having this problem? Lol, I fixed it... I found it was my small "edit" that caused the problem.
@The_PC_Tech_Guy
I haven't had any problems but I'll see what I can do.
I'll also add in options to disable certain messages (like achievements). As for PurpleIRC, I'll have to do some playing around with it to make sure the chat doesn't screw up or something but other than that, it looks like I'll be able to integrate with it.
Apparently this plugin runs an async task which eats 100% of one CPU core. Please fix this! :(
Couple of requests:
@Bennyboy1695
I'll look into it. It may not get done quickly since I am busy with other things.
Love the plugin. :) Possible feature request. Could it be done so that if you type the channel name and then a message after that the messages get sent. And make it configable so you can pick between either all chat or channel chat
@Menphis88
So what seems to be the problem?
@doomlordking
Did you find a solution? i get the same error