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/MapVote/mapvote.py   xsbs(Download)
		setMap(mapname, mapmode)
		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):
def onMapVote(cn, mapname, mapmode):
	p = player(cn)
	if sbserver.mapName() == '':
		setMap(mapname, mapmode)
	elif isAtLeastMaster(cn) and sbserver.masterMode() > 0:

src/x/s/xsbs-HEAD/src/pyscripts/DuelMode/duel.py   xsbs(Download)
		duelers[0] = players[0]
		duelers[1] = players[1]
		prev_mastermode = sbserver.masterMode()
		sbserver.setMasterMode(2)
		sbserver.message(green('Duel begins in...'))

src/x/s/xsbs-HEAD/src/pyscripts/SpectatorControl/playerstate.py   xsbs(Download)
			insufficientPermissions(cn)
	else:
		if sbserver.masterMode() > 1 and not isAtLeastMaster(cn):
			sbserver.playerMessage(cn, error('Master mode is locked.  You cannot unspectate.'))
		else:

src/x/s/xsbs-HEAD/src/pyscripts/MMControl/mmctl.py   xsbs(Download)
def onNoClients():
	if sbserver.masterMode() > 1:
		sbserver.setMasterMode(1)
 
registerServerEventHandler('player_set_mastermode', setMM)