Add sound effects

This commit is contained in:
William committed 2022-08-24 20:19:10 +01:00
1 parent 7b1930e554
commit 7d4dc6f11d
5 files changed
+33 -4

No files matched your search

@@ -110,6 +110,11 @@ public class BukkitPlayer extends OnlineUser {
player.spigot().sendMessage(new TranslatableComponent(translationKey));
}
@Override
public void playSound(@NotNull String soundEffect) {
player.playSound(player.getLocation(), soundEffect, 1, 1);
}
@Override
public CompletableFuture<TeleportResult> teleport(@NotNull Location location, boolean asynchronous) {
return CompletableFuture.supplyAsync(() -> {