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()
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)