mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-01-17 05:31:26 +01:00
Add sendPacketNearby back for Sentry compatibility
This commit is contained in:
parent
8dd2a9b8d4
commit
330565340a
@ -247,6 +247,10 @@ public class NMS {
|
|||||||
NMS.sendPacketsNearby(location, Arrays.asList(packets), 64);
|
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) {
|
public static void sendToOnline(Packet... packets) {
|
||||||
Validate.notNull(packets, "packets cannot be null");
|
Validate.notNull(packets, "packets cannot be null");
|
||||||
for (Player player : Bukkit.getOnlinePlayers()) {
|
for (Player player : Bukkit.getOnlinePlayers()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user