Dynmap2CraftIRC3
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:
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)
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.
This didn't work for me. Update please.
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
@MonsterTKE
I'll take a look into that, I hadn't heard of MonsterIRC yet.
@doughsay
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.
@onotoleonide
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.)
http://dev.bukkit.org/server-mods/craftxmpp/ I'll just leave it here
@doughsay
0.3 works great. Thanks :)
@Gnintendo
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.
I'm using Dynmap .30.1. This happens while server is starting up.
@king_nothing_
Sorry for the late response, this sounds most likely like CraftIRC not being set up right. I had lots of echo problems until I turned auto-paths to false and manually specified my paths. Are you using auto-paths? If not, post your CraftIRC config on a pastebin somewhere and I'll take a look at it.
Also, I have uploaded an example config file that works for me: config.yml
I set this up exactly as you described, but there's a bit of a problem: it's echoing. For instance, if a message is sent from the game, it goes to the Dynmap and the IRC, but then it goes from the IRC to the Dynmap again, so the Dynmap ends up getting the same message twice. It does the same thing with chat from the Dynmap; the Minecraft server gets it twice.