diff --git a/system/pages/team.php b/system/pages/team.php
index 202ee1bb..16b9beb4 100644
--- a/system/pages/team.php
+++ b/system/pages/team.php
@@ -56,11 +56,11 @@ foreach($groupList as $id => $group)
'group_name' => $group->getName(),
'player' => $member,
'outfit' => $config['team_display_outfit'] ? $config['outfit_images_url'] . '?id=' . $member->getLookType() . ($outfit_addons ? '&addons=' . $member->getLookAddons() : '') . '&head=' . $member->getLookHead() . '&body=' . $member->getLookBody() . '&legs=' . $member->getLookLegs() . '&feet=' . $member->getLookFeet() : null,
- 'status' => $member->isOnline(),
+ 'status' => $config['team_display_status'] ? $member->isOnline() : null,
'link' => getPlayerLink($member->getName()),
- 'flag_image' => getFlagImage($member->getAccount()->getCountry()),
- 'world_name' => getWorldName($member->getWorldId()),
- 'last_login' => $lastLogin
+ 'flag_image' => $config['account_country'] ? getFlagImage($member->getAccount()->getCountry()) : null,
+ 'world_name' => ($config['multiworld'] || $config['team_display_world']) ? getWorldName($member->getWorldId()) : null,
+ 'last_login' => $config['team_display_lastlogin'] ? $lastLogin : null
);
}
diff --git a/system/templates/team.html.twig b/system/templates/team.html.twig
index b3353644..93fdbf19 100644
--- a/system/templates/team.html.twig
+++ b/system/templates/team.html.twig
@@ -52,89 +52,17 @@
{% for group in groupmember|reverse %}
- {% for member in group.members|reverse %}
-
- {{ group.group_name }} |
-
- {% if config.team_display_outfit %}
-
-
- |
- {% endif %}
-
-
- {% if config.account_country %}
- {{ member.flag_image|raw }}
- {% endif %}
- {{ member.link|raw }}
- |
-
- {% if config.team_display_status %}
-
- {% if member.status %}
- Online
- {% else %}
- Offline
- {% endif %}
- |
- {% endif %}
-
- {% if (config.multiworld or config.team_display_world) %}
-
- {{ member.world_name }}
- |
- {% endif %}
-
- {% if config.team_display_lastlogin %}
-
- {{ member.last_login }}
- |
- {% endif %}
-
- {% endfor %}
- {% endfor %}
-
- {% elseif config.team_style == 2 %}
- {% for group in groupmember|reverse %}
- {{ group.group_name }}
-
-
+ {% if group.members is not empty %}
+ {% for member in group.members|reverse %}
- {% if config.team_display_outfit %}
- Outfit |
- {% endif %}
+ {{ group.group_name }} |
-
- Name
- |
-
- {% if config.team_display_status %}
-
- Status
- |
- {% endif %}
-
- {% if (config.multiworld or config.team_display_world) %}
-
- World
- |
- {% endif %}
-
- {% if config.team_display_lastlogin %}
-
- Last login
- |
- {% endif %}
-
-
- {% for member in group.members %}
-
{% if config.team_display_outfit %}
|
{% endif %}
-
+
{% if config.account_country %}
{{ member.flag_image|raw }}
@@ -162,10 +90,86 @@
|
{{ member.last_login }}
|
- {% endif %}
+ {% endif %}
{% endfor %}
-
+ {% endif %}
+ {% endfor %}
+
+ {% elseif config.team_style == 2 %}
+ {% for group in groupmember|reverse %}
+ {% if group.members is not empty %}
+ {{ group.group_name }}
+
+
+
+ {% if config.team_display_outfit %}
+ Outfit |
+ {% endif %}
+
+
+ Name
+ |
+
+ {% if config.team_display_status %}
+
+ Status
+ |
+ {% endif %}
+
+ {% if (config.multiworld or config.team_display_world) %}
+
+ World
+ |
+ {% endif %}
+
+ {% if config.team_display_lastlogin %}
+
+ Last login
+ |
+ {% endif %}
+
+
+ {% for member in group.members %}
+
+ {% if config.team_display_outfit %}
+
+
+ |
+ {% endif %}
+
+
+ {% if config.account_country %}
+ {{ member.flag_image|raw }}
+ {% endif %}
+ {{ member.link|raw }}
+ |
+
+ {% if config.team_display_status %}
+
+ {% if member.status %}
+ Online
+ {% else %}
+ Offline
+ {% endif %}
+ |
+ {% endif %}
+
+ {% if (config.multiworld or config.team_display_world) %}
+
+ {{ member.world_name }}
+ |
+ {% endif %}
+
+ {% if config.team_display_lastlogin %}
+
+ {{ member.last_login }}
+ |
+ {% endif %}
+
+ {% endfor %}
+
+ {% endif %}
{% endfor %}
{% endif %}