Added code

Hai.
1) Using public wiki, so I don't trust using my main account, which means don't give me permission to edit stuff, just in case, you know
2) The long comments are just for explanation, if you understand it then just remove it if you want
3) I don't know if I asked (or just forgot), since (I think) bukkit isn't pressuring you to have a working product, do you want the plugin in a working mode first than add more stuff, or just aim for the finished mode, then still add more stuff when it comes up?