spigot/Bukkit-Patches/0019-Add-support-for-fetching-hidden-players.patch

31 lines
1,017 B
Diff
Raw Normal View History

2017-01-18 10:14:37 +11:00
From b08df40dcec023357d676c4c8fd26fcd782ac3ee Mon Sep 17 00:00:00 2001
From: Tux <write@imaginarycode.com>
Date: Sun, 9 Feb 2014 14:02:11 -0500
Subject: [PATCH] Add support for fetching hidden players
diff --git a/src/main/java/org/bukkit/entity/Player.java b/src/main/java/org/bukkit/entity/Player.java
2017-01-18 10:14:37 +11:00
index 405241b..1935ea4 100644
--- a/src/main/java/org/bukkit/entity/Player.java
+++ b/src/main/java/org/bukkit/entity/Player.java
2017-01-18 10:14:37 +11:00
@@ -1397,6 +1397,16 @@ public interface Player extends HumanEntity, Conversable, CommandSender, Offline
{
throw new UnsupportedOperationException( "Not supported yet." );
}
+
+ /**
2016-03-04 16:19:11 +11:00
+ * Gets all players hidden with {@link #hidePlayer(org.bukkit.entity.Player)}.
+ *
+ * @return a Set with all hidden players
+ */
+ public java.util.Set<Player> getHiddenPlayers()
+ {
+ throw new UnsupportedOperationException( "Not supported yet." );
+ }
}
Spigot spigot();
--
2016-11-06 12:16:37 +11:00
2.9.3