Skip to content

Commit f11aff3

Browse files
committed
ENHANCEMENTS:
- show_passwords added to servers.yaml to allow a per-server password display decision
1 parent e5eaa23 commit f11aff3

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,7 @@ DEFAULT:
414414
accept_rules_on_join: true # True, if rules have to be acknowledged (players will be moved to spectators otherwise, default: false)
415415
My Fancy Server: # Your server name, as displayed in the server list and listed in serverSettings.lua
416416
server_user: Admin # Name of the server user #1 (technical user), default is "Admin".
417+
show_passwords: true # Do you want the password to be displayed in the server status embed? (default: true)
417418
smooth_pause: 5 # Servers that are configured to PAUSE on startup will run for this amount of seconds until they are paused again (default 0 = off)
418419
ping_admin_on_crash: true # Ping DCS Admin role in discord, when the server crashed. Default: true
419420
autoscan: false # Enable autoscan for new missions (and auto-add them to the mission list). Default: false

plugins/mission/status.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ async def render(self, server: Server):
4040
class ServerInfo(report.EmbedElement):
4141

4242
async def render(self, server: Server, show_password: Optional[bool] = True, host: Optional[str] = None,):
43+
if not server.locals.get('show_passwords', True):
44+
show_password = False
4345
name = value = ""
4446
if server.node.public_ip:
4547
name = "Server-IP / Port"

schemas/servers_schema.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ mapping:
6767
display_ai_chat: {type: bool}
6868
profanity_filter: { type: bool }
6969
server_user: {type: str}
70+
show_passwords: {type: bool}
7071
afk:
7172
type: map
7273
mapping:

0 commit comments

Comments
 (0)