From 0fa2b146ee915ee4cf5d92287e3a9e0310cb4cf7 Mon Sep 17 00:00:00 2001 From: _OfTeN_ Date: Mon, 10 Jan 2022 17:21:00 +0300 Subject: [PATCH] Fixed toggle sound 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 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 }