9
0
mirror of https://github.com/Auxilor/EcoSkills.git synced 2025-12-31 04:46:31 +00:00

Fixed toggle sound command

This commit is contained in:
_OfTeN_
2022-01-10 17:21:00 +03:00
parent e3fa5b4d57
commit 0fa2b146ee

View File

@@ -23,7 +23,7 @@ class CommandToggleSound(plugin: EcoPlugin) :
) {
override fun onExecute(sender: CommandSender, args: List<String>) {
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
}