Exemplo n.º 1
0
def onPlayerCommands(cn, args):
	if args != '':
		sbserver.playerMessage(cn, error('Usage: #playercommands'))
	else:
		msg = blue('Available commands: ')
		for command in command_info.keys():
			msg += '#' + command + ' '
		sbserver.playerMessage(cn, orange(msg))
Exemplo n.º 2
0
def onReloadCmd(cn, args):
	'''@description Reload server plugins
	   @usage
	   @admin'''
	if args != '':
		raise ExtraArgumentError()
	else:
		sbserver.playerMessage(cn, yellow('NOTICE: ') + blue('Reloading server plugins.  Fasten your seatbelts...'))
		reloadPlugins()
Exemplo n.º 3
0
Arquivo: ctl.py Projeto: pguenth/xsbs
def onReloadCmd(cn, args):
	'''@description Reload server plugins
	   @usage
	   @admin'''
	if args != '':
		raise ExtraArgumentError()
	else:
		sbserver.playerMessage(cn, yellow('NOTICE: ') + blue('Reloading server plugins.  Fasten your seatbelts...'))
		reloadPlugins()
Exemplo n.º 4
0
def setMM(cn, mm):
    sbserver.message((info(green('%s') + ' set master mode to ' + blue('%s')) %
                      (sbserver.playerName(cn), MMNAMES[mm])))
    sbserver.setMasterMode(mm)
Exemplo n.º 5
0
def setMM(cn, mm):
	sbserver.message((info(green('%s') + ' set master mode to ' + blue('%s')) % (sbserver.playerName(cn), MMNAMES[mm])))
	sbserver.setMasterMode(mm)