Refactor admin command cooldown handling and update localization

- Updated cooldown handling in AdminCommandHandler to use localized messages.
- Added new method in Locales class to retrieve strings based on CommandSender type.
- Introduced cooldown messages in English and Russian localization files.
- Removed outdated DuelMode section from TODO.md and updated the last modified date.
This commit is contained in:
loki 2026-04-01 16:25:41 +02:00
parent 3100c53229
commit 46f7b794c6
5 changed files with 29 additions and 9 deletions

View file

@ -293,5 +293,8 @@ modes:
player_joined: "&#00FF00%s &#A0A0Aприсоединился к кооперативной сессии!"
stats: "&#A0A0AКомандный счёт: &#FFFFFF%s &#A0A0A| Ваши блоки: &#FFFFFF%s &#A0A0A(&#FFFFFF%s%%&#A0A0A)"
admin:
cooldown: "<gray>Подождите немного перед повторным использованием."
ghost:
saved: "&#00D4FFВаш призрак сохранён с результатом %s очков!"