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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user