예제 #1
0
파일: ctl.py 프로젝트: GunioRobot/xsbs
def unspecAll(cn, args):
	'''@description Make all clients players
	   @usage
	   @master'''
	if args != '':
		raise ExtraArgumentError()
	else:
		for s in sbserver.spectators():
			sbserver.unspectate(s)
예제 #2
0
파일: ctl.py 프로젝트: pguenth/xsbs
def unspecAll(cn, args):
	'''@description Make all clients players
	   @usage
	   @master'''
	if args != '':
		raise ExtraArgumentError()
	else:
		for s in sbserver.spectators():
			sbserver.unspectate(s)
예제 #3
0
파일: __init__.py 프로젝트: greghaynes/xsbs
def spectators():
	'''Get list of spectators as Player instances'''
	return cnsToPlayers(sbserver.spectators())
예제 #4
0
파일: __init__.py 프로젝트: greghaynes/xsbs
def spectatorCount():
	'''Number of spectators in server'''
	return len(sbserver.spectators())
예제 #5
0
파일: __init__.py 프로젝트: pguenth/xsbs
def spectators():
    '''Get list of spectators as Player instances'''
    return cnsToPlayers(sbserver.spectators())
예제 #6
0
파일: __init__.py 프로젝트: pguenth/xsbs
def spectatorCount():
    '''Number of spectators in server'''
    return len(sbserver.spectators())