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:
@@ -7,13 +7,13 @@ game:
|
||||
min-players: 2
|
||||
lobby-time: 60
|
||||
invincibility-time: 60
|
||||
border-start: 300.0
|
||||
border-end: 20.0
|
||||
border-shrink-time: 600 # 10 Minuten
|
||||
border-start: 600.0
|
||||
border-end: 100.0
|
||||
border-shrink-time: 900 # 10 Minuten
|
||||
ranked: false
|
||||
|
||||
anti-runner:
|
||||
enabled: true
|
||||
enabled: false
|
||||
check-radius: 20.0
|
||||
warn-time: 15
|
||||
punish-time: 25
|
||||
|
||||
@@ -18,6 +18,11 @@ game:
|
||||
death-killed: '<prefix><yellow><player> has died whilst fighting <killer>! There are <left> players left.</yellow>'
|
||||
death-pve: '<prefix><yellow><player> has died! There are <left> players left.</yellow>'
|
||||
win-chat: '<prefix><green><winner> has won the game! Thanks for playing!</green>'
|
||||
lobby-items:
|
||||
kits:
|
||||
name: '<gold><bold>Kits</bold></gold> <gray>(right-click)</gray>'
|
||||
perks:
|
||||
name: '<light_purple><bold>Perks</bold></light_purple> <gray>(right-click)</gray>'
|
||||
|
||||
ranking:
|
||||
placement_progress: '<prefix><gray>Placement <aqua><current>/<total></aqua> — Placed <aqua>#<placement></aqua> · <aqua><kills></aqua> Kill(s)</gray>'
|
||||
@@ -139,7 +144,7 @@ commands:
|
||||
leaderboard:
|
||||
header: '<gray>====== <gold>Leaderboard</gold> ======</gray>'
|
||||
empty: '<red>There are currently no stats</red>'
|
||||
line: '#<rank> - <green><name></green> - <aqua><score></aqua>'
|
||||
line: '#<rank> - <green><name></green> <dark_gray>[<white><playerrank></white>]</dark_gray> - <aqua><score></aqua>'
|
||||
footer: '<gray>====== <gold>Leaderboard</gold> ======</gray>'
|
||||
timer:
|
||||
usage: '<red>Usage: /timer <seconds></red>'
|
||||
@@ -311,11 +316,8 @@ kits:
|
||||
name: '<gradient:dark_green:gray><bold>Goblin</bold></gradient>'
|
||||
lore:
|
||||
- ' '
|
||||
- 'AGGRESSIVE:'
|
||||
- 'Copy your enemies kit'
|
||||
- ' '
|
||||
- 'DEFENSIVE:'
|
||||
- 'Summon a bunker for protection'
|
||||
- 'AGGRESSIVE: Copy your enemies kit'
|
||||
- 'DEFENSIVE: Summon a bunker for protection'
|
||||
items:
|
||||
steal:
|
||||
name: '§cSteal Kit'
|
||||
@@ -331,11 +333,8 @@ kits:
|
||||
name: '<gradient:dark_aqua:aqua><bold>IceMage</bold></gradient>'
|
||||
lore:
|
||||
- ' '
|
||||
- 'AGGRESSIVE:'
|
||||
- 'Gain speed in ice biomes and give slowness'
|
||||
- ' '
|
||||
- 'DEFENSIVE:'
|
||||
- 'Summon snowballs and freeze enemies'
|
||||
- 'AGGRESSIVE: Gain speed in ice biomes and give slowness'
|
||||
- 'DEFENSIVE: Summon snowballs and freeze enemies'
|
||||
items:
|
||||
snowball:
|
||||
name: '§bFreeze'
|
||||
@@ -350,11 +349,8 @@ kits:
|
||||
name: '<gradient:dark_red:red><bold>Venom</bold></gradient>'
|
||||
lore:
|
||||
- ' '
|
||||
- 'AGGRESSIVE:'
|
||||
- 'Summon a deafening beam'
|
||||
- ' '
|
||||
- 'DEFENSIVE:'
|
||||
- 'Create a shield for protection'
|
||||
- 'AGGRESSIVE: Summon a deafening beam'
|
||||
- 'DEFENSIVE: Create a shield for protection'
|
||||
items:
|
||||
wither:
|
||||
name: '§8Deafening Beam'
|
||||
@@ -371,7 +367,7 @@ kits:
|
||||
shield_break: '<red>Your shield of darkness has broken!</red>'
|
||||
ability_charged: '<yellow>Your ability has been recharged</yellow>'
|
||||
rattlesnake:
|
||||
name: '<gradient:green:lime><bold>Rattlesnake</bold></gradient>'
|
||||
name: '<gradient:green:dark_green><bold>Rattlesnake</bold></gradient>'
|
||||
lore:
|
||||
- ' '
|
||||
- 'AGGRESSIVE: Sneak-charged pounce'
|
||||
@@ -508,10 +504,10 @@ kits:
|
||||
- 'DEFENSIVE: Blindness + Slowness III (4 s)'
|
||||
items:
|
||||
drain:
|
||||
name: '<dark_purple>Life Drain'
|
||||
name: '<dark_purple>Life Drain</dark_purple>'
|
||||
description: 'Drain life from nearby enemies. Sneak to cancel.'
|
||||
fear:
|
||||
name: '<dark_purple>Puppeteer''s Fear'
|
||||
name: '<dark_purple>Puppeteer''s Fear</dark_purple>'
|
||||
description: 'Apply Blindness + Slowness to nearby enemies'
|
||||
messages:
|
||||
drain_start: '<dark_purple>Draining life...'
|
||||
|
||||
Reference in New Issue
Block a user