Add LobbyItemManager; PDC support; misc fixes

Introduce LobbyItemManager to provide interactive lobby hotbar items (kits & perks) tagged via PersistentDataContainer and open the appropriate GUIs. Wire the manager into SpeedHG (field, init, event registration) and clear lobby items at game start in GameManager. Add ItemBuilder.pdc helper and necessary imports for setting PDC. Fix potion duration calculation to use invincibilityTime*20. Change AnchorKit icon/trigger material to ANVIL. Update config (border start/end/shrink and disable anti-runner) and update en_US language entries (lobby item names, leaderboard format, kit lore/formatting and small text fixes).
This commit is contained in:
TDSTOS
2026-04-11 01:18:38 +02:00
parent cd8e3e37a7
commit 0896bc85a5
7 changed files with 275 additions and 27 deletions

View File

@@ -154,6 +154,8 @@ class GameManager(
feastManager.reset()
pitManager.reset()
plugin.lobbyItemManager.clearAll()
setGameState( GameState.INVINCIBILITY )
timer = invincibilityTime
@@ -170,7 +172,7 @@ class GameManager(
val speedEffect = PotionEffect(
PotionEffectType.SPEED,
timer,
invincibilityTime * 20,
0,
false,
false,
@@ -179,7 +181,7 @@ class GameManager(
val hasteEffect = PotionEffect(
PotionEffectType.HASTE,
timer,
invincibilityTime * 20,
0,
false,
false,