#!/usr/bin/env python
"""
admin commands.
"""
from scratchmud import status

def rooms(self, args):
    """docstring for rooms"""
    rooms = status.WORLD.locate_client_map(self.client).get_rooms()
    for room in rooms:
        self.client.send("%s\n" % repr(room))

def maps(self, args):
    """docstring for maps"""
    maps = status.WORLD.get_maps()
    for map_ in maps:
        self.client.send("%s\n" % repr(map_))

def mobs(self, args):
    """docstring for mobs"""
    maps = status.WORLD.get_maps()
    for map_ in maps:
        for mob in map_.get_mobs():
            self.client.send("%s\n" % repr(mob))

@@ -609,8 +609,399 @@
 r(mob))%0A
+%0Adef goto(self, args):%0A    %22%22%22docstring for goto%22%22%22%0A    if len(args) == 3:%0A        x, y, map_ = args%0A    elif len(args) == 2:%0A        x, y = args%0A        map_ = self.character.map_name%0A    else:%0A        return self.invalid_args()%0A    try:%0A        x, y = int(x), int(y)%0A    except Exception:%0A        return self.invalid_args()%0A    return status.CHARACTERS.get(self.client).goto((x, y), map_)%0A

move command 'goto' into commmand.cmd.admin.