Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

org.bukkit.sound changes in Bukkit/Spigot api version 1.21.3+ #514

Open
EnchantedHay opened this issue Dec 6, 2024 · 2 comments
Open

org.bukkit.sound changes in Bukkit/Spigot api version 1.21.3+ #514

EnchantedHay opened this issue Dec 6, 2024 · 2 comments

Comments

@EnchantedHay
Copy link

See latest bukkit/spigot api document, and 1.21.1/1.21.2 document for comparison
Enum Class Sound → Interface Sound

In the current implementation of Taboolib's Bukkitplayer.kt:

override fun playSound(location: Location, sound: String, volume: Float, pitch: Float) {
        if (volume == -1f && pitch == -1f) {
            player.stopSound(sound)
            return
        }
        player.playSound(location.toBukkitLocation(), Sound.valueOf(sound), volume, pitch)
    }

This will cause a IncompatibleClassChangeError: Method 'org.bukkit.Sound org.bukkit.Sound.valueOf(java.lang.String)' must be InterfaceMethodref constant.

@Bkm016
Copy link
Collaborator

Bkm016 commented Dec 6, 2024

好的工作!Mojang!

@microvencn
Copy link

HelpChat/DeluxeMenus#158
提供一个DeluxeMenus对这个问题的解决方案,帮助大佬解决问题,帮助不了的话当我没说

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants