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..d798c03 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 @@ -32,10 +32,10 @@ class CommandToggleSound(plugin: EcoPlugin) : player.toggleGainSoundEnabled() val key = when(player.hasGainSoundEnabled()) { - true -> "enabled" - else -> "disabled" + true -> "disabled" + else -> "enabled" } - 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