Add ranking system and /ranking command

Introduce a ranking system: add Rank enum and RankingManager enhancements (isRankingEnabled toggle, getRank(), RR change handling, rank-up/down detection and player notifications with titles/sounds). Add a new /ranking admin command (toggle, status, rank) with tab completion and register it in plugin startup. Surface player rank on the scoreboard (ScoreboardManager) and add related language entries and plugin.yml permission/command metadata. Logging updated to include ranked state.
This commit is contained in:
TDSTOS
2026-04-03 22:28:56 +02:00
parent ab976cc2a4
commit 7b6557122b
7 changed files with 339 additions and 18 deletions

View File

@@ -13,6 +13,9 @@ permissions:
speedhg.admin.timer:
description: 'Change the current game time'
default: false
speedhg.admin.ranking:
description: 'Manage the ranking system (toggle unranked mode, inspect ranks)'
default: false
commands:
kit:
@@ -24,4 +27,8 @@ commands:
timer:
description: 'Change the current game time (Admin Command)'
usage: '/timer <seconds>'
permission: speedhg.admin.timer
permission: speedhg.admin.timer
ranking:
description: 'Manage the SpeedHG ranking system'
usage: '/ranking <toggle|status|rank [player]>'
permission: speedhg.admin.ranking