Skip to content

[FEATURE] To be able to configure Clan motto, web link at url of banner #177

@Yakonche

Description

@Yakonche

The idea would be to have only one configuration file to configure the whole welcome screen (for example: Survival_WelcomeScreen.ini).

Adding a function that allows you to change url according to a predefined list every x seconds would be interesting.

The file could be made up as follows :

[URLBanner]
update_banner=30000 # time expressed in milliseconds for more precision
list_banner=http://art.tripwirecdn.com/TestItemIcons/MOTDServer.png, https://i.imgur.com/A0LdqFQ.png # place a single banner so that there is no change / update of the banner

[ClanMotto]
Welcome to my Zedternal Server ! <font color="#0055A4">Hosted</font> <font color="#FFFFFF">in</font> <font color="#EF4135">France</font>
Number of custom maps : <font color="#FFFAFA">500</font> | Server IP : <font color="#FFFAFA">85.168.60.156:7783</font>
Total Kills = <font color="#00BFFF">{{ millify(server_kills) }}</font> | Total Dosh = <font color="#00BFFF">{{ millify(server_dosh) }}</font>

[MOTD]
<font color="#FF0000">Top Players by Kills :</font>
{% for player in top_kills[0:12] -%}
{{loop.index}}. {{player.username|truncate(10)|replace('<','?')}} <font color="#42C535">[{{millify(player.score)}}]</font>{% if loop.index is divisibleby 3 %}
{% endif %}{%- endfor %}

[URLLink]
update_link=30000 # time in ms
list_link=https://kf2-ma.th3-z.xyz, https://github.com/th3-z/kf2-magicked-admin

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew features, improvements to existing features

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions