1717# Engines
1818from engines .server import server
1919from engines .server import engine_server
20- from engines .server import execute_server_command
20+ from engines .server import queue_server_command
2121from engines .server import server_game_dll
2222from engines .sound import Attenuation
2323from engines .sound import Channel
@@ -687,7 +687,7 @@ def kick(self, message=''):
687687 if message :
688688 self .client .disconnect (message )
689689 else :
690- execute_server_command ('kickid' , self .userid , message )
690+ queue_server_command ('kickid' , self .userid , message )
691691
692692 def ban (self , duration = 0 , kick = True , write_ban = True ):
693693 """Ban a player from the server.
@@ -699,10 +699,10 @@ def ban(self, duration=0, kick=True, write_ban=True):
699699 :param bool write_ban:
700700 If ``True``, the ban will be written to ``cfg/banned_users.cfg``.
701701 """
702- execute_server_command (
702+ queue_server_command (
703703 'banid' , duration , self .userid , 'kick' if kick else '' )
704704 if write_ban :
705- execute_server_command ('writeid' )
705+ queue_server_command ('writeid' )
706706
707707 def play_sound (
708708 self , sample , volume = VOL_NORM , attenuation = Attenuation .NONE ,
0 commit comments