Refactor skill lookup logic and vote system, update language files

Refactored command handling to improve player and skill lookup logic, replaced some list operations with direct queries, and updated method signatures for clarity and null safety. The vote system was reworked to support more robust vote tracking, cooldowns, and localized chat messages. Language files were updated to add new vote-related translations. Various code style and nullability improvements were made throughout the plugin.
This commit is contained in:
Juzlus 2025-09-04 04:53:23 +02:00
parent 54b265d43d
commit e33975fe8b
117 changed files with 1532 additions and 1674 deletions

View file

@ -414,6 +414,14 @@
"healed": "You have been healed.",
"game_start": "Game started!",
"vote_started": "Vote started: '{0}'",
"vote_timeout": "Vote '{0}' timed out!",
"vote_wait": "You need to wait before starting another vote!",
"vote_same_wait": "You need to wait before starting the same vote again!",
"vote_not_enough_players": "Not enough players to start a vote!",
"vote_alredy_voted": "You have already voted!",
"vote_vote": "Vote",
"teammate_skills": "Your teammates' skills",
"summary_start": "======SUMMARY=OF=THE=LAST=ROUND======",
"summary_end": "======================================="

View file

@ -414,6 +414,14 @@
"healed": "Zostałeś uleczony.",
"game_start": "Gra rozpoczęta!",
"vote_started": "Głosowanie rozpoczęte: '{0}'",
"vote_timeout": "Głosowanie '{0}' przekroczyło limit czasu!",
"vote_wait": "Musisz poczekać, zanim rozpoczniesz kolejne głosowanie!",
"vote_same_wait": "Musisz poczekać, zanim ponownie rozpoczniesz to samo głosowanie!",
"vote_not_enough_players": "Za mało graczy, aby rozpocząć głosowanie!",
"vote_alredy_voted": "Już zagłosowałeś!",
"vote_vote": "Głosowanie",
"teammate_skills": "Supermoce twoich sojuszników",
"summary_start": "======PODSUMOWANIE=Z=OSTATNIEJ=RUNDY======",
"summary_end": "============================================"

View file

@ -414,6 +414,14 @@
"healed": "Você foi curado.",
"game_start": "Jogo iniciado!",
"vote_started": "Votação iniciada: '{0}'",
"vote_timeout": "Votação '{0}' expirou!",
"vote_wait": "Você precisa esperar antes de iniciar outra votação!",
"vote_same_wait": "Você precisa esperar antes de iniciar a mesma votação novamente!",
"vote_not_enough_players": "Não há jogadores suficientes para iniciar uma votação!",
"vote_alredy_voted": "Você já votou!",
"vote_vote": "Votar",
"teammate_skills": "Habilidades dos seus companheiros de equipe",
"summary_start": "=======RESUMO=DA=ÚLTIMA=RODADA=======",
"summary_end": "======================================="

View file

@ -414,6 +414,14 @@
"healed": "你已被治疗。",
"game_start": "游戏开始!",
"vote_started": "投票开始:'{0}'",
"vote_timeout": "投票'{0}'超时!",
"vote_wait": "您需要等待才能开始另一轮投票!",
"vote_same_wait": "您需要等待才能再次发起相同投票!",
"vote_not_enough_players": "投票人数不足!",
"vote_alredy_voted": "您已投票!",
"vote_vote": "投票",
"teammate_skills": "你队友的技能",
"summary_start": "=============上一回合总结==============",
"summary_end": "======================================="