mirror of
https://github.com/Auxilor/EcoSkills.git
synced 2025-12-31 21:06:40 +00:00
Merge pull request #31
Fixed invalid messages being sent on toggle command
This commit is contained in:
@@ -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"))
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user