summaryrefslogtreewikicommitdiff
path: root/src/main/java/net/tylermurphy/hideAndSeek/util/Packet.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/net/tylermurphy/hideAndSeek/util/Packet.java')
-rw-r--r--src/main/java/net/tylermurphy/hideAndSeek/util/Packet.java16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/main/java/net/tylermurphy/hideAndSeek/util/Packet.java b/src/main/java/net/tylermurphy/hideAndSeek/util/Packet.java
index d793f46..9cb17ce 100644
--- a/src/main/java/net/tylermurphy/hideAndSeek/util/Packet.java
+++ b/src/main/java/net/tylermurphy/hideAndSeek/util/Packet.java
@@ -21,9 +21,6 @@ package net.tylermurphy.hideAndSeek.util;
import java.lang.reflect.InvocationTargetException;
-import net.tylermurphy.hideAndSeek.Main;
-import net.tylermurphy.hideAndSeek.util.protocollib.WrapperPlayServerNamedSoundEffect;
-import org.bukkit.Sound;
import org.bukkit.entity.Player;
import com.comphenix.protocol.PacketType;
@@ -31,25 +28,12 @@ import com.comphenix.protocol.ProtocolLibrary;
import com.comphenix.protocol.ProtocolManager;
import com.comphenix.protocol.events.PacketContainer;
import com.comphenix.protocol.wrappers.WrappedDataWatcher;
-import com.comphenix.protocol.wrappers.EnumWrappers.SoundCategory;
import com.comphenix.protocol.wrappers.WrappedDataWatcher.Registry;
import com.comphenix.protocol.wrappers.WrappedDataWatcher.Serializer;
public class Packet {
private static final ProtocolManager protocolManager = ProtocolLibrary.getProtocolManager();
-
- public static void playSound(Player player, Sound sound, float volume, float pitch) {
- WrapperPlayServerNamedSoundEffect packet = new WrapperPlayServerNamedSoundEffect();
- packet.setSoundCategory(SoundCategory.MASTER);
- packet.setSoundEffect(sound);
- packet.setEffectPositionX((int)(player.getLocation().getX() * 8.0));
- packet.setEffectPositionY((int)(player.getLocation().getY() * 8.0));
- packet.setEffectPositionZ((int)(player.getLocation().getZ() * 8.0));
- packet.setPitch(pitch);
- packet.setVolume(volume);
- packet.sendPacket(player);
- }
public static void setGlow(Player player, Player target, boolean glowing) {
PacketContainer packet = protocolManager.createPacket(PacketType.Play.Server.ENTITY_METADATA);