mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 14:38:52 +00:00
Fix sound effect playing on spigot
This commit is contained in:
2 files changed
+6
-1
No files matched your search
@@ -108,6 +108,11 @@ public class BukkitUser extends OnlineUser {
|
||||
));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void playSound(@NotNull String soundEffect) throws IllegalArgumentException {
|
||||
player.playSound(player.getLocation(), soundEffect, 1.0f, 1.0f);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NotNull
|
||||
public Audience getAudience() {
|
||||
|
||||
@@ -155,7 +155,7 @@ public abstract class OnlineUser extends User implements Teleportable, CommandUs
|
||||
* @param soundEffect the sound effect to play. If the sound name is invalid, the sound will not play
|
||||
* @implNote If the key is invalid, it will be substituted with {@code minecraft:block.note_block.banjo}
|
||||
*/
|
||||
public void playSound(@Subst(Key.MINECRAFT_NAMESPACE + "block.note_block.banjo")
|
||||
public void playSound(@Subst(Key.MINECRAFT_NAMESPACE + ":block.note_block.banjo")
|
||||
@NotNull String soundEffect) throws IllegalArgumentException {
|
||||
try {
|
||||
getAudience().playSound(
|
||||
|
||||
Reference in new issue
Block a user