mmcgill/mc3p — pull request #9 by fredreichbier (2012-04-14 16:36:58+00:00)
Title: Added a log plugin

Hey there!

I needed to look at the communication between mineserver and the minecraft client and since mc3p got recommended to me and it seemed to be pretty nice, I did a quick and dirty mc3p plugin that just prints all messages to stdout. I found it pretty useful (it required a little change to the mc3p core code though) and thought it might also be helpful for other people, so I'm doing this pull request =)

Example output:

```

Server -> Client 0x23 (Entity head look) 6 bytes
raw_bytes: ...
msgtype: 35
eid: 4
head_yaw: 36

Client -> Server 0x0a (Player state) 2 bytes
raw_bytes: ...
msgtype: 10
on_ground: True

Client -> Server 0x0a (Player state) 2 bytes
raw_bytes: ...
msgtype: 10
on_ground: True

Client -> Server 0x0a (Player state) 2 bytes
raw_bytes: ...
msgtype: 10
on_ground: True
```