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:]))
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")