[AB-xxx] adding level progress to rank command

This commit is contained in:
Sheldan
2022-12-21 01:39:10 +01:00
parent 3eb08360ec
commit 0bc7105b62
2 changed files with 6 additions and 0 deletions

View File

@@ -29,6 +29,11 @@
"name": "<@safe_include "rank_rank_field_title"/>",
"value": "${rankUser.rank}",
"inline": "true"
},
{
"name": "<@safe_include "rank_level_progress_field_title"/>",
"value": "${inLevelExperience} <#list 1..currentLevelPercentage/10?floor as cent>🔹</#list><#if (currentLevelPercentage % 10) gt 4>🔸<#else>▫</#if><#assign restCent></#assign><#list 0..(10 - currentLevelPercentage/10?ceiling) as cent><#if cent gt 0>▫</#if></#list> ${nextLevelExperience - experienceForCurrentLevel}",
"inline": "false"
}
]
}