From 901df48d134079d648a18f9d82b60182e818ac02 Mon Sep 17 00:00:00 2001 From: slawkens Date: Fri, 3 Oct 2025 00:31:03 +0200 Subject: [PATCH] Add promotion into getTopPlayers --- system/functions.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/system/functions.php b/system/functions.php index b5141b2f..212a043e 100644 --- a/system/functions.php +++ b/system/functions.php @@ -1142,6 +1142,10 @@ function getTopPlayers($limit = 5, $skill = 'level') { 'looktype', 'lookhead', 'lookbody', 'looklegs', 'lookfeet' ]; + if ($db->hasColumn('players', 'promotion')) { + $columns[] = 'promotion'; + } + if ($db->hasColumn('players', 'lookaddons')) { $columns[] = 'lookaddons'; }