Example #1
0
    def cmd_rcon(self, player, msg, channel):
        """Sends an rcon command to the server."""
        if len(msg) < 2:
            return minqlx.RET_USAGE

        with minqlx.redirect_print(channel):
            minqlx.console_command(" ".join(msg[1:]))
Example #2
0
    def cmd_rcon(self, player, msg, channel):
        """Sends an rcon command to the server."""
        if len(msg) < 2:
            return minqlx.RET_USAGE

        with minqlx.redirect_print(channel):
            minqlx.console_command(" ".join(msg[1:]))
Example #3
0
    def grabmaps(self):
        if self.supported_maps: return

        def callback(maps=[]):
            self.supported_maps = maps

        with minqlx.redirect_print(GetMaps(callback)):
            minqlx.console_command("dir maps bsp")
Example #4
0
    def grabmaps(self):
        if self.supported_maps: return

        def callback(maps=[]):
            self.supported_maps = maps

        with minqlx.redirect_print(GetMaps(callback)):
            minqlx.console_command("dir maps bsp")