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 7bcb3b9..c689f35 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 @@ -23,7 +23,7 @@ class CommandToggleSound(plugin: EcoPlugin) : ) { override fun onExecute(sender: CommandSender, args: List) { - if (this.plugin.configYml.getBool("skills.progress.sound.enabled")) { + if (!this.plugin.configYml.getBool("skills.progress.sound.enabled")) { sender.sendMessage(this.plugin.langYml.getMessage("xp-gain-sound-disabled")) return }