geforkt von Mirrors/Paper
SPIGOT-7071: Add Player#stopSound(SoundCategory category)
By: SkytAsul <skytasul@gmail.com>
Dieser Commit ist enthalten in:
Ursprung
230282ea44
Commit
5377574bc2
@ -554,6 +554,13 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
||||
getHandle().connection.send(new PacketPlayOutStopSound(new MinecraftKey(sound), category == null ? net.minecraft.sounds.SoundCategory.MASTER : net.minecraft.sounds.SoundCategory.valueOf(category.name())));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void stopSound(org.bukkit.SoundCategory category) {
|
||||
if (getHandle().connection == null) return;
|
||||
|
||||
getHandle().connection.send(new PacketPlayOutStopSound(null, net.minecraft.sounds.SoundCategory.valueOf(category.name())));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void stopAllSounds() {
|
||||
if (getHandle().connection == null) return;
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren