public static void hidePlayer(Plugin plugin, Player fromPlayer, Player hidePlayer) { // TODO: Use Plugin fromPlayer.hidePlayer(hidePlayer); }
@Override public void run() { for (Player playerInGame : Game.this.getPlayers()) { playerInGame.hidePlayer(p); p.hidePlayer(playerInGame); } }
@Override public void run() { for (Player playerInGame : Game.this.getPlayers()) { playerInGame.hidePlayer(p); p.hidePlayer(playerInGame); } }
@SuppressWarnings("deprecation") private void hideAndShow(Player other) { //removes the entity and display the new skin try { other.getClass().getDeclaredMethod("hidePlayer", Plugin.class, Player.class); other.hidePlayer(plugin, receiver); other.showPlayer(plugin, receiver); } catch (NoSuchMethodException noSuckMethodEx) { other.hidePlayer(receiver); other.showPlayer(receiver); } }
@Override public void setVanished(boolean set, MCPlayer to) { if(!set) { p.showPlayer(CommandHelperPlugin.self, ((BukkitMCPlayer) to)._Player()); } else { p.hidePlayer(CommandHelperPlugin.self, ((BukkitMCPlayer) to)._Player()); } }
protected void execute(Event event) { Player hide = this.hidden.getSingle(event); Player[] tos = this.to.getAll(event); if (hide == null || to == null) { return; } if (this.matchedPattern == 0) { for (Player to : tos) { to.hidePlayer(hide); } } else { for (Player to : tos) { to.showPlayer(hide); } } }
static void refreshPlayer(final Player player, final Player forWhom) { Preconditions.checkState(Main.getInst().isEnabled(), "Not Enabled!"); Preconditions.checkNotNull(player, "player"); Preconditions.checkNotNull(forWhom, "forWhom"); if (player != forWhom && player.getWorld() == forWhom.getWorld() && forWhom.canSee(player)) { forWhom.hidePlayer(player); Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(Main.getInst(), () -> forWhom.showPlayer(player), 2); } }
p.hidePlayer(theGuyToChangeNameFor); wpspi.sendPacket(p);
if (player.getGameMode().equals(GameMode.SURVIVAL)) { for (Player playerInGame : players) { playerInGame.hidePlayer(player); player.showPlayer(playerInGame); teamPlayer.hidePlayer(player); player.showPlayer(teamPlayer);
if (player.getGameMode().equals(GameMode.SURVIVAL)) { for (Player playerInGame : players) { playerInGame.hidePlayer(player); player.showPlayer(playerInGame); teamPlayer.hidePlayer(player); player.showPlayer(teamPlayer);
player.getPlayer().hidePlayer(plugin, pl.getPlayer());
pl.getPlayer().hidePlayer(plugin, player.getPlayer());