SPIGOT-6436: Add Player#stopAllSounds
This commit is contained in:
parent
eb19161294
commit
b58f4299c6
@ -513,6 +513,13 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
||||
getHandle().connection.sendPacket(new PacketPlayOutStopSound(new MinecraftKey(sound), category == null ? net.minecraft.sounds.SoundCategory.MASTER : net.minecraft.sounds.SoundCategory.valueOf(category.name())));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void stopAllSounds() {
|
||||
if (getHandle().connection == null) return;
|
||||
|
||||
getHandle().connection.sendPacket(new PacketPlayOutStopSound(null, null));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void playEffect(Location loc, Effect effect, int data) {
|
||||
if (getHandle().connection == null) return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user