Page 1 of 1

execute_server_command not working

Posted: Sat Mar 31, 2018 8:23 am
by varunkishore
im trying to execute "execute_server_command" which supposed to execute mp_warmup_end command.
Say text 2 is working but the command is not getting executed.
Did i miss something?

Syntax: Select all

from events import Event
from messages import SayText2
from engines.server import execute_server_command
from commands.typed import TypedServerCommand,TypedSayCommand

@TypedSayCommand('!test3')
def cmd_on_test3(command_info):
execute_server_command('mp_warmup_end')
SayText2(f"Warmup ended").send()

Re: execute_server_command not working

Posted: Sat Mar 31, 2018 10:27 am
by Kami
I think in this case you should do:

queue_command_string('mp_warmup_end').

Re: execute_server_command not working

Posted: Tue Apr 03, 2018 1:09 pm
by varunkishore
thanks bro !!! it works