mirror of
https://github.com/songoda/EpicVouchers.git
synced 2025-02-16 19:51:28 +01:00
Play voucher sounds only for the redeeming player.
This commit is contained in:
parent
073828616d
commit
823b41ca1a
@ -142,7 +142,7 @@ public class VoucherExecutor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (voucher.getSound() != null && !voucher.getSound().isEmpty()) {
|
if (voucher.getSound() != null && !voucher.getSound().isEmpty()) {
|
||||||
player.getWorld().playSound(player.getLocation(), Sound.valueOf(voucher.getSound()), Integer.MAX_VALUE, voucher.getSoundPitch());
|
player.playSound(player.getLocation(), Sound.valueOf(voucher.getSound()), Integer.MAX_VALUE, voucher.getSoundPitch());
|
||||||
}
|
}
|
||||||
|
|
||||||
String particle = voucher.getParticle();
|
String particle = voucher.getParticle();
|
||||||
|
Loading…
Reference in New Issue
Block a user