Display variant and style in UI and Discord
Include the configured lunarclient.variantName in the game start Discord embed and expose both the lunar variant and the player's selected playstyle on the lobby/ingame scoreboards. Added placeholders to language file for variant and style. Files changed: GameManager.kt, ScoreboardManager.kt, and en_US.yml.
This commit is contained in:
@@ -226,8 +226,10 @@ class GameManager(
|
||||
player.sendMsg( "game.invincibility-start", "time" to invincibilityTime.toString() )
|
||||
}
|
||||
|
||||
val variantName = plugin.config.getString( "lunarclient.variantName" )
|
||||
|
||||
plugin.discordWebhookManager.broadcastEmbed(
|
||||
title = "🎮 Spiel gestartet!",
|
||||
title = "🎮 Spiel gestartet! (${variantName})",
|
||||
description = "Eine neue Runde SpeedHG mit **${Bukkit.getOnlinePlayers().size}** Spielern hat begonnen!",
|
||||
colorHex = 0x55FF55 // Grün
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user