예제 #1
0
def register_handlers():
    minqlx.register_handler("client_command", handle_client_command)
    minqlx.register_handler("server_command", handle_server_command)
    minqlx.register_handler("frame", handle_frame)
    minqlx.register_handler("new_game", handle_new_game)
    minqlx.register_handler("set_configstring", handle_set_configstring)
    minqlx.register_handler("player_connect", handle_player_connect)
    minqlx.register_handler("player_loaded", handle_player_loaded)
    minqlx.register_handler("player_disconnect", handle_player_disconnect)
예제 #2
0
def register_handlers() -> None:
    minqlx.register_handler("rcon", handle_rcon)
    minqlx.register_handler("client_command", handle_client_command)
    minqlx.register_handler("server_command", handle_server_command)
    minqlx.register_handler("frame", handle_frame)
    minqlx.register_handler("new_game", handle_new_game)
    minqlx.register_handler("set_configstring", handle_set_configstring)
    minqlx.register_handler("player_connect", handle_player_connect)
    minqlx.register_handler("player_loaded", handle_player_loaded)
    minqlx.register_handler("player_disconnect", handle_player_disconnect)
    minqlx.register_handler("player_spawn", handle_player_spawn)
    minqlx.register_handler("console_print", handle_console_print)

    minqlx.register_handler("kamikaze_use", handle_kamikaze_use)
    minqlx.register_handler("kamikaze_explode", handle_kamikaze_explode)
예제 #3
0
파일: _handlers.py 프로젝트: h4t3/minqlx
def register_handlers():
    minqlx.register_handler("rcon", handle_rcon)
    minqlx.register_handler("client_command", handle_client_command)
    minqlx.register_handler("server_command", handle_server_command)
    minqlx.register_handler("frame", handle_frame)
    minqlx.register_handler("new_game", handle_new_game)
    minqlx.register_handler("set_configstring", handle_set_configstring)
    minqlx.register_handler("player_connect", handle_player_connect)
    minqlx.register_handler("player_loaded", handle_player_loaded)
    minqlx.register_handler("player_disconnect", handle_player_disconnect)
    minqlx.register_handler("player_spawn", handle_player_spawn)
    minqlx.register_handler("console_print", handle_console_print)