Translate Spielo kit UI/messages to English

Replace German UI strings in SpieloKit with English equivalents (inventory title, button labels, and click lore) and add full English localization for the Spielo kit in en_US.yml. Adds spielo kit entries including name, lore, item names/descriptions, and gamble result messages (instant_death, gamble_event, gamble_bad, gamble_neutral, gamble_good).
This commit is contained in:
TDSTOS
2026-04-11 22:57:19 +02:00
parent 8ea957129e
commit 198275973e
2 changed files with 27 additions and 7 deletions

View File

@@ -141,7 +141,7 @@ class SpieloKit : Kit() {
override fun execute(player: Player): AbilityResult {
if (gamblingPlayers.contains(player.uniqueId))
return AbilityResult.ConditionNotMet("Automat läuft bereits!")
return AbilityResult.ConditionNotMet("Slotmachine is already running!")
val now = System.currentTimeMillis()
val lastUse = activeCooldowns[player.uniqueId] ?: 0L
@@ -189,7 +189,7 @@ class SpieloKit : Kit() {
.any { it.location.distanceSquared(player.location) <= SAFE_RADIUS * SAFE_RADIUS }
if (gamblingPlayers.contains(player.uniqueId))
return AbilityResult.ConditionNotMet("Automat läuft bereits!")
return AbilityResult.ConditionNotMet("Slotmachine is already running!")
if (enemyNearby)
{
@@ -235,7 +235,7 @@ class SpieloKit : Kit() {
private val inv: Inventory = Bukkit.createInventory(
this, 27,
mm.deserialize("<gold><bold>🎰 Slot-Automat</bold></gold>")
mm.deserialize("<gold><bold>🎰 Slot-Machine</bold></gold>")
)
private val reelSlots = intArrayOf(11, 13, 15)
@@ -361,9 +361,9 @@ class SpieloKit : Kit() {
private fun buildSpinButton(spinning: Boolean): ItemStack {
val mat = if (spinning) Material.YELLOW_CONCRETE else Material.LIME_CONCRETE
val name = if (spinning)
mm.deserialize("<yellow><bold>⟳ Dreht...</bold></yellow>")
mm.deserialize("<yellow><bold>⟳ Spins...</bold></yellow>")
else
mm.deserialize("<green><bold>▶ Drehen!</bold></green>")
mm.deserialize("<green><bold>▶ Spin!</bold></green>")
return ItemStack(mat).also { item ->
item.editMeta { meta ->
@@ -371,7 +371,7 @@ class SpieloKit : Kit() {
if (!spinning) {
meta.lore(listOf(
Component.empty(),
mm.deserialize("<gray>Klicken um die Walzen zu drehen.")
mm.deserialize("<gray>Click to spin the reels.")
.decoration(TextDecoration.ITALIC, false),
Component.empty()
))