{% if players|length == 0 %}
Server Status
Currently no one is playing on {{ config.lua.serverName }}.
{% else %} {% if not status.online %} Server is offline.
{% else %} {% if config.online_afk %} {% set players_count = players|length %} {% set afk = players_count - status.players %} {% if afk < 0 %} {% set players = players + afk|abs %} {% set afk = 0 %} {% endif %} Currently there are {{ status.players }} active and {{ afk }} AFK players.
Total number of players: {{ players_count }}.
{% else %} Currently {{ players|length }} players are online.
{% endif %} {% endif %} {# vocation statistics #} {% if config.online_vocations %}
{% if config.online_vocations_images %}
Sorcerers Druids Paladins Knights
{{ vocs[1] }} {{ vocs[2] }} {{ vocs[3] }} {{ vocs[4] }}
 
{% else %} {% for i in 1..config.vocations_amount %} {% endfor %}
Vocation statistics
{{ config.vocations[i] }} {{ vocs[i] }}

{% endif %} {% endif %} {# show skulls #} {% if config.online_skulls %}
- 1 - 6 Frags
- 6+ Frags or Red Skull
- 10+ Frags or Black Skull
{% endif %} {% if config.account_country %} {% endif %} {% if config.online_outfit %} {% endif %} {% set i = 0 %} {% for player in players %} {% set i = i + 1 %} {% if config.account_country %} {% endif %} {% if config.online_outfit %} {% endif %} {% endfor %}
#OutfitName Level Vocation
{{ player.country_image|raw }}player outfit{{ player.name|raw }}{{ player.skull }} {{ player.level }} {{ player.vocation }}
{% endif %}