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))
from xsbs.ui import error, notice, warning, info from xsbs.colors import colordict, green, orange from xsbs.players import player, all as allPlayers, playerByName, playerByIpString import sbserver import time import string config = PluginConfig('ownage') spreemessagesenable = config.getOption('Config', 'spreemessages', 'yes') == 'yes' neomessagesenable = config.getOption('Config', 'neomessages', 'yes') == 'yes' dommessagesenable = config.getOption('Config', 'dommessages', 'yes') == 'yes' interval = int(config.getOption('Config', 'max_time_btwn_kills', '2')) del config spreemessages = { 5: string.Template(green('$name') + ' is on a ' + orange('KILLING SPREE!')), 10: string.Template(green('$name') + ' is ' + orange('UNSTOPPABLE!')), 15: string.Template(green('$name') + ' is ' + orange('GODLIKE!')) } endmsg = string.Template(orange('$victimname') + '\'s killing spree ended by ' + green('$killername')) suicideendmsg = string.Template(orange('$victimname') + 'has ended his own killing spree!') neomessages = { 2: string.Template(orange('DOUBLE KILL!')), 3: string.Template(orange('TRIPLE KILL!')), 5: string.Template(orange('OVERKILL!')), 7: string.Template(orange('KILLTACULAR!')), 10: string.Template(orange('KILLOTROCITY!')), 15: string.Template(orange('KILLTASTROPHE!')), 20: string.Template(orange('KILLAPOCALYPSE!')), 25: string.Template(orange('KILLIONAIRE!'))