Author Topic: Protocol idea: Minecraft Dynmap chat poller  (Read 8161 times)

0 Members and 1 Guest are viewing this topic.

Offline AnrDaemon

Protocol idea: Minecraft Dynmap chat poller
« on: 23 05 2015, 23:18:14 »
The structure of the chat is fairly simple.
You poll "<baseurl>/up/world/world/<timestamp>" for updates and obtain a JSON encoded result.
The interesting parts of it is "timestamp", which you should use to get the next update, and array "updates", the events that have "type" = "chat".
The protocol supports sending messages as well as optional authentification.

https://github.com/webbukkit/dynmap/wiki (there's no updates protocol description, though)
 

Offline Robyer

Re: Protocol idea: Minecraft Dynmap chat poller
« Reply #1 on: 24 05 2015, 21:27:31 »
Here you go: [dropbox link removed, plugin is officially available] 8)
« Last Edit: 25 05 2015, 10:23:12 by Robyer »
I was developing mainly Facebook, Omegle, Steam, Dummy and MobileState plugins. Now I'm retired. Goodbye, everyone. ~ You can still find me on Facebook.
 

Offline AnrDaemon

Re: Protocol idea: Minecraft Dynmap chat poller
« Reply #2 on: 24 05 2015, 21:37:23 »
 :o Now, I though I was just throwing ideas to the wind. Totally did not expect an answer, thank you! I'll check it in a day or two, when I get to my -NG install.
Is there a source available somewhere, too?
 

Offline Robyer

Re: Protocol idea: Minecraft Dynmap chat poller
« Reply #3 on: 24 05 2015, 22:09:48 »
AnrDaemon, I wasn't expecting implementing it either, but luckily I've got in mood :D

Sources are now in svn repository, and it was added to solutions and nighly builds too.

----

EDIT: Plugin is available officially for download from here: 32-bit / 64-bit or via Plugin Updater.
« Last Edit: 25 05 2015, 10:23:51 by Robyer »
I was developing mainly Facebook, Omegle, Steam, Dummy and MobileState plugins. Now I'm retired. Goodbye, everyone. ~ You can still find me on Facebook.
 

Offline AnrDaemon

Re: Protocol idea: Minecraft Dynmap chat poller
« Reply #4 on: 25 05 2015, 20:47:13 »
Works on a basic level :) Thank you.
However, sending messages is a bit iffy. The sender name appears as a question mark in chat.
 

Offline Robyer

Re: Protocol idea: Minecraft Dynmap chat poller
« Reply #5 on: 26 05 2015, 07:31:46 »
AnrDaemon,
I'm showing name what came from server. When I was testing it on one server, I've got my ip address as a name - correctly.
Could you give me your server IP so I can test it?
I was developing mainly Facebook, Omegle, Steam, Dummy and MobileState plugins. Now I'm retired. Goodbye, everyone. ~ You can still find me on Facebook.
 

Offline AnrDaemon

Re: Protocol idea: Minecraft Dynmap chat poller
« Reply #6 on: 26 05 2015, 09:28:04 »
I mean my name when I send messages through plugin :)
It show up at server side borked.
Anyway, it is not any priority, and I'm grateful for this plugin as it is.
I'll install a test server myself and we could get to the more productive debugging later.
 

Offline Robyer

Re: Protocol idea: Minecraft Dynmap chat poller
« Reply #7 on: 26 05 2015, 12:11:37 »
I mean my name when I send messages through plugin

Your name in Miranda chat window or your name on server?
In Miranda chat window is showed name as it is readed from server (for received and also for send messages).

I was developing mainly Facebook, Omegle, Steam, Dummy and MobileState plugins. Now I'm retired. Goodbye, everyone. ~ You can still find me on Facebook.
 

Offline AnrDaemon

Re: Protocol idea: Minecraft Dynmap chat poller
« Reply #8 on: 27 05 2015, 04:43:26 »
Err, let's put it on the ice for amoment :)