Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Yakonche opened this issue Sep 7, 2020 · 0 comments
Open
Labels
enhancement New features, improvements to existing features

Comments

@Yakonche
Copy link
Collaborator

Yakonche commented Sep 7, 2020

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
@Yakonche Yakonche added the enhancement New features, improvements to existing features label Sep 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New features, improvements to existing features
Projects
None yet
Development

No branches or pull requests

1 participant