diff options
Diffstat (limited to 'Bukkit-Patches/0021-Add-support-for-fetching-hidden-players.patch')
-rw-r--r-- | Bukkit-Patches/0021-Add-support-for-fetching-hidden-players.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Bukkit-Patches/0021-Add-support-for-fetching-hidden-players.patch b/Bukkit-Patches/0021-Add-support-for-fetching-hidden-players.patch new file mode 100644 index 0000000000..fd24a4a153 --- /dev/null +++ b/Bukkit-Patches/0021-Add-support-for-fetching-hidden-players.patch @@ -0,0 +1,30 @@ +From 266978702acb2bddfc32ffe598a3980fe2bb14b4 Mon Sep 17 00:00:00 2001 +From: Tux <[email protected]> +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 +index 2cc19a7..37c8a58 100644 +--- a/src/main/java/org/bukkit/entity/Player.java ++++ b/src/main/java/org/bukkit/entity/Player.java +@@ -1094,6 +1094,16 @@ public interface Player extends HumanEntity, Conversable, CommandSender, Offline + { + throw new UnsupportedOperationException( "Not supported yet." ); + } ++ ++ /** ++ * 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(); +-- +1.9.1 + |