Add sendPacketNearby back for Sentry compatibility

This commit is contained in:
fullwall 2013-03-01 10:29:38 +08:00
parent 8dd2a9b8d4
commit 330565340a

View File

@ -247,6 +247,10 @@ public class NMS {
NMS.sendPacketsNearby(location, Arrays.asList(packets), 64);
}
public static void sendPacketNearby(Location location, Packet packet) {
NMS.sendPacketsNearby(location, Arrays.asList(packet), 64);
}
public static void sendToOnline(Packet... packets) {
Validate.notNull(packets, "packets cannot be null");
for (Player player : Bukkit.getOnlinePlayers()) {