Add Feast, Pit modules and Discord webhook
Introduce two new game modules (FeastManager and PitManager) to handle timed endgame events: announcements, world edits, loot generation, teleportation and escape-prevention logic. Add DiscordWebhookManager to send asynchronous webhook messages (embeds/text) and wire it into SpeedHG and GameManager to broadcast game start/end events. Integrate managers into the game loop and reset lifecycle (startGame), add config entries for Discord, and add corresponding language strings. Also include small tweaks (killer XP reward, minor formatting) and updated resource files.
This commit is contained in:
@@ -45,6 +45,17 @@ craft:
|
||||
no_shield: '<prefix><red>Shields are not allowed in SpeedHG!</red>'
|
||||
iron_nerf: '<prefix><red>Your item has been nerfed as it contains iron!</red>'
|
||||
|
||||
feast:
|
||||
announcement: '<prefix><gold>⚔ The Feast spawns in <time>!</gold> <gray>Location: <yellow>X: <x> Z: <z></yellow></gray>'
|
||||
spawned: '<prefix><red><bold>THE FEAST HAS SPAWNED!</bold></red> <gray>Head to <yellow>X: <x> Z: <z></yellow> for the loot!</gray>'
|
||||
|
||||
pit:
|
||||
announcement: '<prefix><dark_red>⚠ The Pit spawns in <time>!</dark_red> <gray>All surviving players will be forced into the final deathmatch!</gray>'
|
||||
spawned: '<prefix><dark_red><bold>THE PIT HAS OPENED!</bold></dark_red> <gray>All players have been teleported. There is no escape!</gray>'
|
||||
title-main: '<dark_red><bold>FINAL DEATHMATCH</bold></dark_red>'
|
||||
title-sub: '<red>Survive at all costs!</red>'
|
||||
escape-warning: '<red>⚠ Leave the pit and you will die! Return immediately!</red>'
|
||||
|
||||
commands:
|
||||
kit:
|
||||
usage: '<red>Usage: /kit <kitName> <playstyle></red>'
|
||||
|
||||
Reference in New Issue
Block a user