Dynmap2CraftIRC3

dynmap webchat screenshot

Dynmap2CraftIRC3

Do you use both dynmap and CraftIRC together? If so you will have noticed that
people chatting in the IRC channel will not see any messages that were sent
from dynmap's webchat feature and vice versa. This annoyed me since it created
many awkward looking one sided conversations, and just caused general confusion
among my players. So I decided to fix it!

What does this do?

This plugin connects CraftIRC 3 to dynmap's webchat. More specifically, it
creates a new tag and endpoint visible to CraftIRC 3. With this plugin loaded,
you can specify communication paths in your CraftIRC 3 config.yml to point to
the tag "dynmap" to allow for chat flow between dynmap's webchat and any IRC
channels that CraftIRC may be connected to.

How do I use it?

Dependencies

First, you need CraftIRC of at least version 3.1 and dynmap at least version
0.29. It may work with lower versions of dynmap, but that hasn't been tested.
It definitely won't work with CraftIRC 2.

Setup

The only configuration required is in CraftIRC's config.yml. If you have:

setting:
    ...
    auto-paths: true
    ...

Then skip this section, it should automatically connect your dynmap webchat
with IRC chat. I Don't recommend this way, as auto-paths seems to always
create double messages for me. If it's false, and you're manually specifying
your communication paths (my preferred method), then you will need to set up
some new paths for this to work:

paths:
    ...
  - source: 'yourirctag'
    target: 'dynmap'

  - source: 'dynmap'
    target: 'yourirctag'
    ...

Formatting and Attributes configuration

The dynmap webchat endpoint is configured as a "plain" source, using the event
type "dynmap". So if you wanted to format how the messages appeared, you would
add a section under formatting called "from-plain" with a "dynmap" option, like
so:

formatting:
    from-game:
        ...
    from-irc:
        ...
    from-plain:
        dynmap: '%green%[%source%]%o% %sender%: %message%'

Also, in order for the chat events to actually be sent, you must add
"dynmap: true" under the default-attributes section:

    default-attributes:
        ...
        attributes:
            chat: true
            action: true
            join: true
            ...
            dynmap: true

Using it with CraftIRCDeath

If you would like death messages to also appear in dynmap's webchat, see my
other plugin CraftIRCDeath!

Screenshots

This is what it looks like when you're chatting across the webchat, the game,
and an IRC channel:

Dynmap Webchat

Dynmap webchat screenshot

IRC channel

IRC chat screenshot

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of dequis dequis Feb 17, 2013 at 16:55 UTC - 0 likes

    This seems to be outdated/broken. Seems like it doesn't provide a source tag for the messages.

    Use this instead: http://dev.bukkit.org/server-mods/dynmap-irc/ (the current craftirc maintainer is one of the devs)

  • Avatar of alexholliz alexholliz Jan 03, 2013 at 23:47 UTC - 0 likes

    I'm using the latest Dynmap (Dec 31st) and the newest versions of both CraftIRC and Dynmap2CraftIRC3 and I cannot get the map chat to go into IRC.

    Here is my config: http://pastebin.com/Ny4mkq5i

    I think I have the paths set right, not sure what's going on.

  • Avatar of MrProtagonist MrProtagonist Jul 26, 2012 at 02:38 UTC - 0 likes

    This didn't work for me. Update please.

  • Avatar of onotoleonide onotoleonide May 10, 2012 at 13:06 UTC - 0 likes

    Update please, and can you make "cyrrilic chat" option like in dynmap? Here is cyrrilic font.txt (it must be copied in craftbukkit.jar and minecraft.jar) - http://pastebin.com/QCGJDDdL

  • Avatar of doughsay doughsay Feb 23, 2012 at 13:47 UTC - 1 like

    @MonsterTKE: Go

    I'll take a look into that, I hadn't heard of MonsterIRC yet.

    Last edited Feb 23, 2012 by doughsay
  • Avatar of MonsterTKE MonsterTKE Feb 18, 2012 at 06:09 UTC - 0 likes

    @doughsay: Go

    Would you be interested in adapting this to MonsterIRC? We are in the process of integrating a mini-plugin loader and already have a fairly advanced api.

  • Avatar of doughsay doughsay Feb 15, 2012 at 01:49 UTC - 0 likes

    @onotoleonide: Go

    Thanks, but that plugin looks very outdated, and I suspect it couldn't solve the problem I'm solving here. Dynmap chat isn't regular minecraft chat, so that plugin probably wouldn't catch it and forward it out. (Of course I didn't actually try it.)

  • Avatar of onotoleonide onotoleonide Feb 09, 2012 at 11:09 UTC - 0 likes
  • Avatar of Gnintendo Gnintendo Feb 06, 2012 at 03:36 UTC - 0 likes

    @doughsay: Go

    0.3 works great. Thanks :)

  • Avatar of doughsay doughsay Feb 05, 2012 at 22:37 UTC - 0 likes

    @Gnintendo: Go

    I'm sorry, I completely forgot that dynmap is not yet compatible with version 1.0 of Dynmap2CrafIRC3. They have not yet implemented certain features that are required for CB 1.1-R3. I asked them to update it but they are waiting a while for full 1.1 support. You will have to use an older version of my plugin, Beta 0.3 should work. If not, try 0.2?

    EDIT: For details see this: https://github.com/webbukkit/dynmap-api/pull/2. As you can see, they say dynmap 0.31 will support it.

    Last edited Feb 05, 2012 by doughsay

Facts

Date created
Jan 18, 2012
Category
Last update
Feb 23, 2012
Development stage
Release
License
GNU General Public License version 3 (GPLv3)
Curse link
Dynmap2CraftIRC3
Downloads
3,133
Recent files

Authors