2014-04-03 22:12:44 +02:00
|
|
|
From 2a49f5d8789b6509a1458ccd1550a7e3fddd4f73 Mon Sep 17 00:00:00 2001
|
2014-02-09 20:05:23 +01:00
|
|
|
From: Tux <write@imaginarycode.com>
|
|
|
|
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
|
2014-04-03 22:12:44 +02:00
|
|
|
index 9c55316..024cf9c 100644
|
2014-02-09 20:05:23 +01:00
|
|
|
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
|
|
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
|
2014-04-03 22:12:44 +02:00
|
|
|
@@ -1364,6 +1364,12 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
2014-02-09 20:05:23 +01:00
|
|
|
{
|
|
|
|
return getHandle().locale;
|
|
|
|
}
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public Set<Player> getHiddenPlayers()
|
|
|
|
+ {
|
|
|
|
+ return java.util.Collections.unmodifiableSet( new HashSet<Player>( hiddenPlayers.values() ) );
|
|
|
|
+ }
|
|
|
|
};
|
|
|
|
|
|
|
|
public Player.Spigot spigot()
|
|
|
|
--
|
2014-04-03 22:12:44 +02:00
|
|
|
1.8.5.2.msysgit.0
|
2014-02-09 20:05:23 +01:00
|
|
|
|