From 198275973ef36a02181d14be971c2f2ddae5a3a9 Mon Sep 17 00:00:00 2001 From: TDSTOS Date: Sat, 11 Apr 2026 22:57:19 +0200 Subject: [PATCH] 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). --- .../mcscrims/speedhg/kit/impl/SpieloKit.kt | 12 +++++----- src/main/resources/languages/en_US.yml | 22 ++++++++++++++++++- 2 files changed, 27 insertions(+), 7 deletions(-) diff --git a/src/main/kotlin/club/mcscrims/speedhg/kit/impl/SpieloKit.kt b/src/main/kotlin/club/mcscrims/speedhg/kit/impl/SpieloKit.kt index 7a2801a..03828f7 100644 --- a/src/main/kotlin/club/mcscrims/speedhg/kit/impl/SpieloKit.kt +++ b/src/main/kotlin/club/mcscrims/speedhg/kit/impl/SpieloKit.kt @@ -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("🎰 Slot-Automat") + mm.deserialize("🎰 Slot-Machine") ) 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("⟳ Dreht...") + mm.deserialize("⟳ Spins...") else - mm.deserialize("▶ Drehen!") + mm.deserialize("▶ Spin!") return ItemStack(mat).also { item -> item.editMeta { meta -> @@ -371,7 +371,7 @@ class SpieloKit : Kit() { if (!spinning) { meta.lore(listOf( Component.empty(), - mm.deserialize("Klicken um die Walzen zu drehen.") + mm.deserialize("Click to spin the reels.") .decoration(TextDecoration.ITALIC, false), Component.empty() )) diff --git a/src/main/resources/languages/en_US.yml b/src/main/resources/languages/en_US.yml index 4526d92..b46d801 100644 --- a/src/main/resources/languages/en_US.yml +++ b/src/main/resources/languages/en_US.yml @@ -605,4 +605,24 @@ kits: stunned: '⚡ You are stunned!' ult_fired: '⚡ Static Field hit enemy(s)!' ult_cooldown: 'Ult on cooldown –