One-command setup (SteamCMD + minqlx build), .env settings with a listed/unlisted switch, three factories (lgvamp, lgvamp_nolag, lgvamp100), warmup-text and welcome minqlx plugins, watchdog/backup/daily-restart, docs for admins and players. Co-Authored-By: Claude Opus 5.5 <[email protected]>
24 lines
751 B
Python
24 lines
751 B
Python
# Welcome message: tells each player the text of qlx_welcome (QL_WELCOME in .env) a few seconds
|
|
# after they finish loading the map. Empty = nothing is sent.
|
|
import minqlx
|
|
|
|
|
|
class welcome(minqlx.Plugin):
|
|
def __init__(self):
|
|
super().__init__()
|
|
self.set_cvar_once("qlx_welcome", "")
|
|
self.add_hook("player_loaded", self.handle_player_loaded)
|
|
|
|
def handle_player_loaded(self, player):
|
|
self.greet(player)
|
|
|
|
@minqlx.delay(3)
|
|
def greet(self, player):
|
|
text = self.get_cvar("qlx_welcome")
|
|
if text:
|
|
try:
|
|
player.tell(text)
|
|
player.center_print(text)
|
|
except minqlx.NonexistentPlayerError:
|
|
pass # left before the message went out
|