{% set onlineTTL = setting('core.online_cache_ttl') %}
{% if onlineTTL > 0 and cache.enabled() %}
*Note: Online List is updated every {{ onlineTTL > 1 ? ' ' ~ onlineTTL : '' }} minute{{ onlineTTL > 1 ? 's' : '' }}.
{% endif %}
{# vocation statistics #}
{% if setting('core.online_vocations') %}
	{% if setting('core.online_vocations_images') %}
	
|  |  |  |  | 
| Sorcerers | Druids | Paladins | Knights | 
| {{ vocs[1] }} | {{ vocs[2] }} | {{ vocs[3] }} | {{ vocs[4] }} | 
| Vocation statistics | |
| {{ config.vocations[i] }} | {{ vocs[i] }} | 
|  - 1 - 6 Frags  - 6+ Frags or Red Skull  - 10+ Frags or Black Skull | 
| Status: | {% if not status.online %}Offline{% else %}Online{% endif %} | 
| Players Online: | {% if setting('core.online_afk') %}
				{% set players_count = players|length %}
				{% set afk = players_count - status.players %}
				{% if afk < 0 %}
					{% set players_count = players_count + afk|abs %}
					{% set afk = 0 %}
				{% endif %}
				Currently there are {{ status.players }} active and {{ afk }} AFK players. Total number of players: {{ players_count }}. {% else %} {{ players|length }} {% endif %} | 
| Online Record: | {{ record }} | 
| Location Datacenter: | {{ setting('core.online_datacenter')|raw }} (Server date & time: - {{ "now"|date("d/m/Y H:i:s") }}) | 
| PvP Type: | {% set worldType = config('lua')['worldType']|lower %} {% if worldType in ['pvp','2','normal','open','openpvp'] %} Open PvP {% elseif worldType in ['no-pvp','nopvp','non-pvp','nonpvp','1','safe','optional','optionalpvp'] %} Optional PvP {% elseif worldType in ['pvp-enforced','pvpenforced','pvp-enfo','pvpenfo','pvpe','enforced','enfo','3','war','hardcore','hardcorepvp'] %} Hardcore PvP {% endif %} | 
| #{% endif %} {% if setting('core.online_outfit') %} | Outfit{% endif %} | Name  
			[sort]  }}.gif) | Level  
			[sort]  }}.gif)  | Vocation  
			[sort]  }}.gif)  | 
| {{ player.country_image|raw }}{% endif %} {% if setting('core.online_outfit') %} | {{ player.name|raw }}{{ player.skull|raw }} | {{ player.level }} | {{ player.vocation }} |