2021-02-26 23:27:53 +01:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Tom <cryptite@gmail.com>
|
|
|
|
Date: Fri, 26 Feb 2021 16:24:25 -0600
|
|
|
|
Subject: [PATCH] Expose Tracked Players
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/entity/Player.java b/src/main/java/org/bukkit/entity/Player.java
|
2021-05-09 22:50:09 +02:00
|
|
|
index 68a03821a5f06308a9c51fdf107d3924c44886c8..34b51466ffb281b05f531b3f7deda245ae7fd96a 100644
|
2021-02-26 23:27:53 +01:00
|
|
|
--- a/src/main/java/org/bukkit/entity/Player.java
|
|
|
|
+++ b/src/main/java/org/bukkit/entity/Player.java
|
|
|
|
@@ -1,6 +1,7 @@
|
|
|
|
package org.bukkit.entity;
|
|
|
|
|
|
|
|
import java.net.InetSocketAddress;
|
|
|
|
+import java.util.Set; // Paper
|
|
|
|
import java.util.UUID;
|
|
|
|
import com.destroystokyo.paper.ClientOption; // Paper
|
|
|
|
import com.destroystokyo.paper.Title; // Paper
|
2021-05-09 22:50:09 +02:00
|
|
|
@@ -1942,6 +1943,14 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
|
2021-02-26 23:27:53 +01:00
|
|
|
void sendOpLevel(byte level);
|
|
|
|
// Paper end
|
|
|
|
|
|
|
|
+ // Paper start
|
|
|
|
+ /**
|
|
|
|
+ * @return Returns a set of Players within this player's tracking range (that the player's client can "see")
|
|
|
|
+ */
|
|
|
|
+ @NotNull
|
|
|
|
+ Set<Player> getTrackedPlayers();
|
|
|
|
+ // Paper end
|
|
|
|
+
|
|
|
|
// Spigot start
|
|
|
|
public class Spigot extends Entity.Spigot {
|
|
|
|
|