[Bleeding] Added Vanish API for hiding players from each other.
Adds Player.hidePlayer, Player.showPlayer, and Player.canSee for managing what players are hidden from a player. When someone is hidden from a player the player cannot see them in the user list or /list and they cannot /tell them so they appear to be completely gone from the server. By: Travis Watkins <amaranth@ubuntu.com>
This commit is contained in:
@@ -490,4 +490,26 @@ public interface Player extends HumanEntity, CommandSender, OfflinePlayer, Plugi
|
||||
*/
|
||||
public void setAllowFlight(boolean flight);
|
||||
|
||||
/**
|
||||
* Hides a player from this player
|
||||
*
|
||||
* @param player Player to hide
|
||||
*/
|
||||
public void hidePlayer(Player player);
|
||||
|
||||
/**
|
||||
* Allows this player to see a player that was previously hidden
|
||||
*
|
||||
* @param player Player to show
|
||||
*/
|
||||
public void showPlayer(Player player);
|
||||
|
||||
/**
|
||||
* Checks to see if a player has been hidden from this player
|
||||
*
|
||||
* @param player Player to check
|
||||
* @return True if the provided player is not being hidden from this player
|
||||
*/
|
||||
public boolean canSee(Player player);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user