コード例 #1
0
ファイル: get_region_file.py プロジェクト: chipx86/mctools
def main():
    options = parse_options(sys.argv[1:])

    world = World(options.world)
    player = world.get_player(options.player)

    if not player:
        sys.stderr.write('No data found for the player\n')
        sys.exit(1)

    print world.get_region_filename(player.get_chunk_pos())