Fix TNTLeague Sound

This commit is contained in:
2024-12-11 14:20:38 +01:00
parent f61c27804a
commit c3c4b94e3b
@@ -24,12 +24,12 @@ import de.steamwar.tntleague.config.TNTLeagueConfig
import de.steamwar.tntleague.game.TNTLeagueGame
import de.steamwar.tntleague.message
import de.steamwar.tntleague.plugin
import net.kyori.adventure.sound.Sound
import net.kyori.adventure.text.Component
import net.kyori.adventure.text.format.NamedTextColor
import net.kyori.adventure.text.format.TextDecoration
import org.bukkit.Material
import org.bukkit.NamespacedKey
import org.bukkit.Sound
import org.bukkit.entity.Player
import org.bukkit.inventory.Inventory
import org.bukkit.inventory.ItemStack
@@ -49,7 +49,7 @@ class DealerInventory(val player: Player): SWInventoryHolder() {
if (team.coins < price) {
message.send("NOT_ENOUGH_COINS", player)
player.playSound(Sound.sound(org.bukkit.Sound.ENTITY_VILLAGER_HURT.key, net.kyori.adventure.sound.Sound.Source.MASTER, 1f, 1f))
player.playSound(player, Sound.ENTITY_VILLAGER_HURT, 1f, 1f)
return@to
}