aboutsummaryrefslogtreecommitdiffhomepage
path: root/CraftBukkit-Patches/0097-Add-support-for-fetching-hidden-players.patch
diff options
context:
space:
mode:
Diffstat (limited to 'CraftBukkit-Patches/0097-Add-support-for-fetching-hidden-players.patch')
-rw-r--r--CraftBukkit-Patches/0097-Add-support-for-fetching-hidden-players.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/CraftBukkit-Patches/0097-Add-support-for-fetching-hidden-players.patch b/CraftBukkit-Patches/0097-Add-support-for-fetching-hidden-players.patch
new file mode 100644
index 0000000000..b7842459a5
--- /dev/null
+++ b/CraftBukkit-Patches/0097-Add-support-for-fetching-hidden-players.patch
@@ -0,0 +1,32 @@
+From 49dad7268b3e4e5c7bc98bac7f306b90da0e667e Mon Sep 17 00:00:00 2001
+From: Tux <[email protected]>
+Date: Sun, 9 Feb 2014 14:03:03 -0500
+Subject: [PATCH] Add support for fetching hidden players
+
+
+diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
+index b311958..0c4153f 100644
+--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
++++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
+@@ -1373,6 +1373,18 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
+ {
+ return getHandle().locale;
+ }
++
++ @Override
++ public Set<Player> getHiddenPlayers()
++ {
++ Set<Player> ret = new HashSet<Player>();
++ for ( UUID u : hiddenPlayers )
++ {
++ ret.add( getServer().getPlayer( u ) );
++ }
++
++ return java.util.Collections.unmodifiableSet( ret );
++ }
+ };
+
+ public Player.Spigot spigot()
+--
+1.9.1
+