Syntax: Select all
Code: Select all
from engines.server import execute_server_command
@TypedSayCommand(cvar_saycommand_bot_kick.get_string())
def on_bot_kick(commandInfo):
execute_server_command('bot_kick')
commandInfo.reply("Bots kicked!")
return False
This snippet doesn't work, as no bots get kicked. Works fine from console (all bots are kicked), just not via the command. The same code would work with the mp_warmup_end and changelevel commands.
Any idea why?