Change UtilPlayer.sendPacket(Packet) to UtilPlayer.sendPacket(Packet...)
This commit is contained in:
parent
503106892d
commit
18094fea9b
@ -16,7 +16,9 @@ import org.bukkit.entity.Entity;
|
||||
import org.bukkit.entity.LivingEntity;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.util.Vector;
|
||||
|
||||
import net.minecraft.server.v1_7_R4.Packet;
|
||||
import net.minecraft.server.v1_7_R4.PlayerConnection;
|
||||
|
||||
public class UtilPlayer
|
||||
{
|
||||
@ -570,9 +572,14 @@ public class UtilPlayer
|
||||
return ((CraftPlayer) player).getHandle().playerConnection.networkManager.getVersion() >= 47;
|
||||
}
|
||||
|
||||
public static void sendPacket(Player player, Packet packet)
|
||||
public static void sendPacket(Player player, Packet... packets)
|
||||
{
|
||||
((CraftPlayer) player).getHandle().playerConnection.sendPacket(packet);
|
||||
PlayerConnection connection = ((CraftPlayer) player).getHandle().playerConnection;
|
||||
|
||||
for (Packet packet : packets)
|
||||
{
|
||||
connection.sendPacket(packet);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user