Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(5)  |  Derive(0)  |  Import(0)

src/x/s/xsbs-HEAD/src/pyscripts/MapRotation/maprotation.py   xsbs(Download)
		clientReloadRotate()
	else:
		sbserver.setMap(map, sbserver.gameMode())
	if sbserver.numClients() == 0:
		rotate_on_join[0] = True
	rotate_on_join = [False]
	mn = modes.index(start_mode)
	sbserver.setMap(modeMapLists[start_mode][0], mn)
	registerServerEventHandler('intermission_ended', presetRotate)
	registerCommandHandler('nextmap', onNextMapCmd)

src/x/s/xsbs-HEAD/src/pyscripts/DuelMode/duel.py   xsbs(Download)
		currently_dueling[0] = True
		sbserver.message(green('Fight!'))
		sbserver.setMap(map, mode)
		sbserver.setPaused(False)
	else:

src/x/s/xsbs-HEAD/src/pyscripts/MapVote/mapvote.py   xsbs(Download)
		mapreload[0] = False
	elif isAtLeastMaster(cn) and sbserver.masterMode() > 0:
		sbserver.setMap(mapname, mapmode)
	elif mapmode != sbserver.gameMode() and (lock_mode or not allow_modevote):
		p.message(error('You cannot request a new game mode'))

src/x/s/xsbs-HEAD/src/pyscripts/xsbs/game.py   xsbs(Download)
def setMap(map_name, mode_number):
	'''Set current map and mode'''
	if isFrozen():
		raise StateError('Server is currently frozen')
	sbserver.setMap(map_name, mode_number)