codewarrior0/pymclevel — pull request #60 by chungy (2011-11-13 01:53:57+00:00)
Title: Rewrite gametype command in mce.py

Now supports both single- and multi-player worlds, and it also
sets the player abilities added in Beta 1.9-pre5 to proper values
based on the gametype changed to. No longer will allow flying and
invulnerable players when switching to survival mode!

An additional thought i debated with myself, was to really stick with having to use numbers having the names "creative" and "survival" to be typed out. I ultimately decided against it -- the numbers are the same thing server ops have to type to switch players on a live server, and any future game modes (eg, adventure) wouldn't need any code changes (hopefully! -- abilities may need to be changed).