hTml's script doesnt work when you use "set timestamp_date 1", because the RegEx doesnt fit then.Just saw it in a quick lookup.
from asyncio import sleepfrom dplib.server import Servers = Server(hostname='127.0.0.1', port=27911, logfile=r'C:\Games\Paintball2\pball\qconsole27911.log', rcon_password='hello')map_settings = { 'airtime': { 'command': 'set elim 10;set timelimit 10;', 'message': '{C}9Special settings for airtime {C}Aenabled' }, 'shazam33': { 'command': 'set elim 10;set timelimit 10;', 'message': '{C}9Special settings for shazam33 {C}Aenabled' }, 'default_settings': { 'command': 'set elim 20;set timelimit 20;', 'message': '{C}9No special settings for map {I}<mapname>{I}, using defaults' }}@s.eventdef on_mapchange(mapname): if mapname not in map_settings: settings = map_settings['default_settings'] else: settings = map_settings[mapname] command = settings.get('command', None) message = settings.get('message', None) if message: message = mapname.join(message.split('<mapname>')) if command: for c in command.split(';'): s.rcon(c) if message: yield from sleep(3) s.say(message)s.run()