Slack 1.5.0

Link your server to Slack!

  1. mastercoms
    Contributors:
    Janmm14, LaxWasHere, it3d
    Slack
    Link your server to Slack!

    Features
    • Send chat messages and commands to Slack
    • Send login and quit messages to Slack
    • Uses minecraft username and avatar as bot information
    • Blacklist players or commands from being sent to Slack
    • Use permissions to block messages to Slack
    • API to send custom events
    • BungeeCord support
    • See the console (coming soon)
    • Formatting (coming soon)
    • Send commands from Slack (coming soon)

    Download

    Dev builds

    Installation
    1. Drop the plugin in your server folder.
    2. Create a new incoming webhook and set it up however you would like.
    3. Start and stop the server.
    4. Copy the webhook URL and set webhook: in the config.yml to that.
    5. Start the server.

    Verified compatible with BungeeCord, CraftBukkit, Spigot, Spigot/CraftBukkit 1.8, PaperSpigot and Glowstone. Definitely works with any Bukkit API server, probably.


    Slack Setup
    1. Log into your Slack account and go to https://my.slack.com/services/new/incoming-webhook
    2. Click on the Add New Integration link on the left-hand side.
    3. Scroll down and select Incoming Webhooks.
    4. Select a channel/direct message recipient and click the green Add Incoming WebHook button.
    5. A green "New Integration added!" confirmation message will appear. Scroll down the page and copy the URL under "Your Unique Webhook URL." It will look something like this: https://yourcompany.slack.com/services/hooks/incoming-webhook?token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    6. Under the Integration Settings section, you have the option to label your integration, change the name of your Slack bot and its icon. By default, the bot name is incoming-webhook and the default icon is a Sprintly icon. These are optional settings.
    7. Scroll down to the bottom of the page and click the blue Save Integration button.

    Commands

    /slack - The main slack command and command for all subcommands. Returns help.
    permission: slack.command

    /slack send - Sends a command to slack. Read the custom messages section for details.

    /slack reload- Reloads Slack's config. Does not reload the plugin.

    Configuration

    version - the plugin's current version. Do not touch this.
    debug - whether to post HTTP response codes to console
    webhook - the incoming webhook URL for slack.
    use-perms - whether to use permissions or not (for sending to Slack)
    use-blacklist - whether to use the command blacklist or not
    blacklist - list of commands you don't want to be sent to slack.

    Permissions

    slack.hide.command - does not post commands you do to Slack.
    default: no one

    slack.command - allows you to do /slack and all sub commands
    default: op

    slack.hide.login - does not post to Slack when you login.
    default: no one

    slack.hide.logout - does not post to Slack when you login.
    default: no one

    slack.hide.chat - does not post your chats to Slack.
    default: no one

    API
    On the server, you may use /slack send to send a custom message to Slack. You can use null as image URL to use the username's minecraft head skin.
    Programmatically, you can add the plugin as a dependency, and then import the API for the platform you're using (either Bukkit or BungeeCord)

    Code (Text):
    import us.circuitsoft.slack.api.BukkitPoster

    or

    Code (Text):
    import us.circuitsoft.slack.api.BungeePoster

    If you're using Bukkit,

    Code (Text):
    new BukkitPoster(message, name, iconUrl).runTaskAsynchronously(this);

    where message is the message you want to send to Slack, name is the username, and iconUrl is the image URL. You can set iconUrl to null if name is a Minecraft player username, it will then use the player's skin head.

    If you're using BungeeCord,


    Code (Text):
    getProxy().getScheduler().runAsync(this, new BungeePoster(message, name, iconUrl));

    Same parameters as in the Bukkit version.

    Support

    For support questions on how to use the plugin and troubleshooting, post a forum reply so if I am not available, other people can help you. Explain your problem and use the latest version before asking for help.

    For bug reports, please post an issue on GitHub. Just make sure to explain the problem, how to reproduce it, and make sure you are using the latest version.

    If you get an error, please post it to https://gist.github.com/ and then post the URL here.

    If you have a feature request, PM me, or code it yourself and pull request it on GitHub.

    If You Love This Plugin...

    Give me money with PayPal!
    Rate this resource!
    Send a compliment!
    Send a pull request!
    Report a bug!
    Request a feature!

    Source

    https://github.com/CircuitSoftGroup/SlackMC

Recent Updates

  1. 1.5.0
  2. 1.4.4
  3. 1.4.3

Recent Reviews

  1. FenixFire
    FenixFire
    5/5,
    Version: 1.5.0
    Is there a way to have it send a message to slack every time users type in a specific command? We have a ticketing plugin, and it would be great if any time someone makes a ticket, we can send it to slack as well.
    1. mastercoms
      Author's Response
      All commands should be sent to Slack. A whitelist for commands will be coming in the next version.
  2. miguel456
    miguel456
    5/5,
    Version: 1.5.0
    It works like a charm, but player prefixes come unformatted when they arrive at the Slack channel. I would love to see the formatted messages, but I don't know if it's a Slack limitation tough.
    1. mastercoms
      Author's Response
      That's a Bukkit event priority problem I'm trying to fix. The plugin is capturing the chat message before another plugin formats it. If you are talking about chat colors, I need to process the color codes.
  3. hexacubist
    hexacubist
    5/5,
    Version: 1.5.0
    Really excellent plugin! A must have for any team that is using Slack. Looking forward to more updates.
    1. mastercoms
      Author's Response
      Sorry for the lack of updates! I've been really busy but I really want to get a new update out!
  4. Daeden
    Daeden
    5/5,
    Version: 1.5.0
    Awesome plugin!
    I'd love outgoing integration as well. With the option to block commands, just allow chat.
    It would be worth it as a paid addition.

    Thank you!
    1. mastercoms
      Author's Response
      Thank you! I'm adding that feature in 2.0.0. However, I'm never going to make this a paid plugin. If you want to pay for it, just donate :).
  5. matagin
    matagin
    5/5,
    Version: 1.5.0
    Awesome! Works right out of the gate. I was able to follow the directions on the page and setup everything. Thank you!!
    1. mastercoms
      Author's Response
      Thanks! Glad you found the directions helpful.
  6. iArcanex
    iArcanex
    4/5,
    Version: 1.5.0
    Awesome! slack.hide.logout, doesn't seem to be working for me though ;(
    1. mastercoms
      Author's Response
      Thanks! I know the cause of this bug, but I'm not sure whether to work on a fix for 1.5.0, or continue working on 2.0, which includes a rewrite of the ignoring system and already fixes this problem. Please message me on what I should do.
  7. Tallcraft
    Tallcraft
    5/5,
    Version: 1.4.4
    Great! :)
    1. mastercoms
      Author's Response
      You're great :D
  8. SmeXhy
    SmeXhy
    5/5,
    Version: 1.4.4
    WOW! This is the best plugin what I ever saw!
    1. mastercoms
      Author's Response
      Wow, thank you so much :D
  9. Apecengo
    Apecengo
    5/5,
    Version: 1.4.4
    Really useful
    1. mastercoms
      Author's Response
      Thank you so much!
  10. frdmn
    frdmn
    5/5,
    Version: 1.4.4
    Superb plugin!
    1. mastercoms
      Author's Response
      Wow, thank you! You are superb as well!