execute_server_command not working

Please post any questions about developing your plugin here. Please use the search function before posting!
varunkishore
Junior Member
Posts: 11
Joined: Wed Mar 28, 2018 6:47 am

execute_server_command not working

Postby varunkishore » Sat Mar 31, 2018 8:23 am

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()
Last edited by Ayuto on Sun Apr 01, 2018 2:12 pm, edited 1 time in total.
Reason: code -> python
User avatar
Kami
Global Moderator
Posts: 263
Joined: Wed Aug 15, 2012 1:24 am
Location: Germany

Re: execute_server_command not working

Postby Kami » Sat Mar 31, 2018 10:27 am

I think in this case you should do:

queue_command_string('mp_warmup_end').
varunkishore
Junior Member
Posts: 11
Joined: Wed Mar 28, 2018 6:47 am

Re: execute_server_command not working

Postby varunkishore » Tue Apr 03, 2018 1:09 pm

thanks bro !!! it works

Return to “Plugin Development Support”

Who is online

Users browsing this forum: No registered users and 12 guests