From d2ea2fba924d5c041a9a979332dbda929a589163 Mon Sep 17 00:00:00 2001 From: _OfTeN_ Date: Mon, 10 Jan 2022 21:30:47 +0300 Subject: [PATCH] Fixed invalid messages being sent on toggle command --- .../kotlin/com/willfp/ecoskills/commands/CommandToggleSound.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoskills/commands/CommandToggleSound.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoskills/commands/CommandToggleSound.kt index c689f35..6595aeb 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoskills/commands/CommandToggleSound.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoskills/commands/CommandToggleSound.kt @@ -36,6 +36,6 @@ class CommandToggleSound(plugin: EcoPlugin) : else -> "disabled" } - player.sendMessage(this.plugin.langYml.getMessage("xp-gain-sound-$key")) + player.sendMessage(this.plugin.langYml.getMessage("$key-xp-gain-sound")) } } \ No newline at end of file