Commits
Chris Cowan authored and md_5 committed d41ccca23de
15 15 | import org.bukkit.Sound; |
16 16 | import org.bukkit.SoundCategory; |
17 17 | import org.bukkit.Statistic; |
18 18 | import org.bukkit.WeatherType; |
19 19 | import org.bukkit.advancement.Advancement; |
20 20 | import org.bukkit.advancement.AdvancementProgress; |
21 21 | import org.bukkit.command.CommandSender; |
22 22 | import org.bukkit.conversations.Conversable; |
23 23 | import org.bukkit.event.player.PlayerResourcePackStatusEvent; |
24 24 | import org.bukkit.map.MapView; |
25 + | import org.bukkit.plugin.Plugin; |
25 26 | import org.bukkit.plugin.messaging.PluginMessageRecipient; |
26 27 | import org.bukkit.scoreboard.Scoreboard; |
27 28 | |
28 29 | /** |
29 30 | * Represents a player, connected or not |
30 31 | */ |
31 32 | public interface Player extends HumanEntity, Conversable, CommandSender, OfflinePlayer, PluginMessageRecipient { |
32 33 | |
33 34 | /** |
34 35 | * Gets the "friendly" name to display of this player. This may include |
903 904 | * creative mode. |
904 905 | * |
905 906 | * @param flight If flight should be allowed. |
906 907 | */ |
907 908 | public void setAllowFlight(boolean flight); |
908 909 | |
909 910 | /** |
910 911 | * Hides a player from this player |
911 912 | * |
912 913 | * @param player Player to hide |
914 + | * @deprecated see {@link #hidePlayer(Plugin, Player)} |
913 915 | */ |
916 + | |
914 917 | public void hidePlayer(Player player); |
915 918 | |
919 + | /** |
920 + | * Hides a player from this player |
921 + | * |
922 + | * @param plugin Plugin that wants to hide the player |
923 + | * @param player Player to hide |
924 + | */ |
925 + | public void hidePlayer(Plugin plugin, Player player); |
926 + | |
916 927 | /** |
917 928 | * Allows this player to see a player that was previously hidden |
918 929 | * |
919 930 | * @param player Player to show |
931 + | * @deprecated see {@link #showPlayer(Plugin, Player)} |
920 932 | */ |
933 + | |
921 934 | public void showPlayer(Player player); |
922 935 | |
936 + | /** |
937 + | * Allows this player to see a player that was previously hidden. If |
938 + | * another another plugin had hidden the player too, then the player will |
939 + | * remain hidden until the other plugin calls this method too. |
940 + | * |
941 + | * @param plugin Plugin that wants to show the player |
942 + | * @param player Player to show |
943 + | */ |
944 + | public void showPlayer(Plugin plugin, Player player); |
945 + | |
923 946 | /** |
924 947 | * Checks to see if a player has been hidden from this player |
925 948 | * |
926 949 | * @param player Player to check |
927 950 | * @return True if the provided player is not being hidden from this |
928 951 | * player |
929 952 | */ |
930 953 | public boolean canSee(Player player); |
931 954 | |
932 955 | /** |