mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-21 05:44:17 +00:00
SPIGOT-3663: Add plugin parameter to hidePlayer+showPlayer.
This commit is contained in:
parent
69e52f64f9
commit
d41ccca23d
1 changed files with 23 additions and 0 deletions
|
@ -22,6 +22,7 @@ import org.bukkit.command.CommandSender;
|
||||||
import org.bukkit.conversations.Conversable;
|
import org.bukkit.conversations.Conversable;
|
||||||
import org.bukkit.event.player.PlayerResourcePackStatusEvent;
|
import org.bukkit.event.player.PlayerResourcePackStatusEvent;
|
||||||
import org.bukkit.map.MapView;
|
import org.bukkit.map.MapView;
|
||||||
|
import org.bukkit.plugin.Plugin;
|
||||||
import org.bukkit.plugin.messaging.PluginMessageRecipient;
|
import org.bukkit.plugin.messaging.PluginMessageRecipient;
|
||||||
import org.bukkit.scoreboard.Scoreboard;
|
import org.bukkit.scoreboard.Scoreboard;
|
||||||
|
|
||||||
|
@ -910,16 +911,38 @@ public interface Player extends HumanEntity, Conversable, CommandSender, Offline
|
||||||
* Hides a player from this player
|
* Hides a player from this player
|
||||||
*
|
*
|
||||||
* @param player Player to hide
|
* @param player Player to hide
|
||||||
|
* @deprecated see {@link #hidePlayer(Plugin, Player)}
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public void hidePlayer(Player player);
|
public void hidePlayer(Player player);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Hides a player from this player
|
||||||
|
*
|
||||||
|
* @param plugin Plugin that wants to hide the player
|
||||||
|
* @param player Player to hide
|
||||||
|
*/
|
||||||
|
public void hidePlayer(Plugin plugin, Player player);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Allows this player to see a player that was previously hidden
|
* Allows this player to see a player that was previously hidden
|
||||||
*
|
*
|
||||||
* @param player Player to show
|
* @param player Player to show
|
||||||
|
* @deprecated see {@link #showPlayer(Plugin, Player)}
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public void showPlayer(Player player);
|
public void showPlayer(Player player);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Allows this player to see a player that was previously hidden. If
|
||||||
|
* another another plugin had hidden the player too, then the player will
|
||||||
|
* remain hidden until the other plugin calls this method too.
|
||||||
|
*
|
||||||
|
* @param plugin Plugin that wants to show the player
|
||||||
|
* @param player Player to show
|
||||||
|
*/
|
||||||
|
public void showPlayer(Plugin plugin, Player player);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks to see if a player has been hidden from this player
|
* Checks to see if a player has been hidden from this player
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue