Esempio n. 1
0
def onSmiteCommand(cn, args):
	'''@description Strike a player down
	   @usage <cn>
	   @master'''
	if args == '':
		raise UsageError()
	p = player(cn)
	t = player(int(args))
	sendServerMessage(info(smite_template.substitute(colordict, smiter=p.name(), smited=t.name())))
	t.suicide()
Esempio n. 2
0
File: ctl.py Progetto: pguenth/xsbs
def onSmiteCommand(cn, args):
	'''@description Strike a player down
	   @usage <cn>
	   @master'''
	if args == '':
		raise UsageError()
	p = player(cn)
	t = player(int(args))
	sendServerMessage(info(smite_template.substitute(colordict, smiter=p.name(), smited=t.name())))
	t.suicide()
Esempio n. 3
0
def resumeTimer(count, cn):
	if count > 0:
		sendServerMessage(notice('Resuming in ' + green(str(count)) + white('...')))
		addTimer(1000, resumeTimer, (count-1, cn))
	else:
		setPaused(False, cn)
Esempio n. 4
0
File: ctl.py Progetto: pguenth/xsbs
def resumeTimer(count, cn):
	if count > 0:
		sendServerMessage(notice('Resuming in ' + green(str(count)) + white('...')))
		addTimer(1000, resumeTimer, (count-1, cn))
	else:
		setPaused(False, cn)