The Player Panel will now list out the player's Player Ranks (#23621)

* Displays the player ranks into the player panel

* Player ranks can now be checked without considering the admin bypass
This commit is contained in:
GoldenAlpharex
2023-09-10 20:56:15 -04:00
committed by GitHub
parent 40fab1eb86
commit 4086fda4c9
3 changed files with 35 additions and 8 deletions
+14
View File
@@ -32,6 +32,20 @@
if(M.client)
body += "<br>\[<b>First Seen:</b> [M.client.player_join_date]\]\[<b>Byond account registered on:</b> [M.client.account_join_date]\]"
// SKYRAT EDIT ADDITION START - Player Ranks
var/list/player_ranks = list()
if(SSplayer_ranks.is_donator(M.client, admin_bypass = FALSE))
player_ranks += "Donator"
if(SSplayer_ranks.is_mentor(M.client, admin_bypass = FALSE))
player_ranks += "Mentor"
if(SSplayer_ranks.is_veteran(M.client, admin_bypass = FALSE))
player_ranks += "Veteran"
body += "<br><br><b>Player Ranks: </b>[length(player_ranks) ? player_ranks.Join(", ") : "None"]"
// SKYRAT EDIT END
body += "<br><br><b>CentCom Galactic Ban DB: </b> "
if(CONFIG_GET(string/centcom_ban_db))
body += "<a href='?_src_=holder;[HrefToken()];centcomlookup=[M.client.ckey]'>Search</a>"