コード例 #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
ファイル: playerstate.py プロジェクト: GunioRobot/xsbs
def onReqUnspectate(cn, tcn):
	if tcn != cn:
		if isAtLeastMaster(cn):
			sbserver.unspectate(tcn)
		else:
			insufficientPermissions(cn)
	else:
		if sbserver.masterMode() > 1 and not isAtLeastMaster(cn):
			sbserver.playerMessage(cn, error('Master mode is locked.  You cannot unspectate.'))
		else:
			sbserver.unspectate(tcn)
コード例 #4
0
ファイル: playerstate.py プロジェクト: pguenth/xsbs
def onReqUnspectate(cn, tcn):
    if tcn != cn:
        if isAtLeastMaster(cn):
            sbserver.unspectate(tcn)
        else:
            insufficientPermissions(cn)
    else:
        if sbserver.masterMode() > 1 and not isAtLeastMaster(cn):
            sbserver.playerMessage(
                cn, error('Master mode is locked.  You cannot unspectate.'))
        else:
            sbserver.unspectate(tcn)
コード例 #5
0
ファイル: servercommands.py プロジェクト: Pat61/hyperserv
def spectatorHelpler(boolean,cn):
	if boolean:
		sbserver.spectate(cn)
	else:
		sbserver.unspectate(cn)
コード例 #6
0
ファイル: __init__.py プロジェクト: greghaynes/xsbs
	def unspectate(self):
		'''Make client not a spectator'''
		sbserver.unspectate(self.cn)
コード例 #7
0
ファイル: __init__.py プロジェクト: pguenth/xsbs
 def unspectate(self):
     '''Make client not a spectator'''
     sbserver.unspectate(self.cn)