Class Player.Spigot

Enclosing interface:
Player

public static class Player.Spigot extends Entity.Spigot
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets all players hidden with Player.hidePlayer(org.bukkit.entity.Player).
    Gets the connection address of this player, regardless of whether it has been spoofed or not.
    void
    Respawns the player if dead.
    void
    sendMessage(net.md_5.bungee.api.chat.BaseComponent component)
    Sends this sender a chat component.
    void
    sendMessage(net.md_5.bungee.api.chat.BaseComponent... components)
    Sends an array of components as a single message to the sender.
    void
    sendMessage(net.md_5.bungee.api.ChatMessageType position, UUID sender, net.md_5.bungee.api.chat.BaseComponent component)
    Sends the component to the specified screen position of this player
    void
    sendMessage(net.md_5.bungee.api.ChatMessageType position, UUID sender, net.md_5.bungee.api.chat.BaseComponent... components)
    Sends an array of components as a single message to the specified screen position of this player
    void
    sendMessage(net.md_5.bungee.api.ChatMessageType position, net.md_5.bungee.api.chat.BaseComponent component)
    Sends the component to the specified screen position of this player
    void
    sendMessage(net.md_5.bungee.api.ChatMessageType position, net.md_5.bungee.api.chat.BaseComponent... components)
    Sends an array of components as a single message to the specified screen position of this player

    Methods inherited from class org.bukkit.command.CommandSender.Spigot

    sendMessage, sendMessage

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Spigot

      public Spigot()
  • Method Details

    • getRawAddress

      @NotNull public InetSocketAddress getRawAddress()
      Gets the connection address of this player, regardless of whether it has been spoofed or not.
      Returns:
      the player's connection address
    • respawn

      public void respawn()
      Respawns the player if dead.
    • getHiddenPlayers

      @NotNull public Set<Player> getHiddenPlayers()
      Gets all players hidden with Player.hidePlayer(org.bukkit.entity.Player).
      Returns:
      a Set with all hidden players
    • sendMessage

      public void sendMessage(@NotNull net.md_5.bungee.api.chat.BaseComponent component)
      Description copied from class: CommandSender.Spigot
      Sends this sender a chat component.
      Overrides:
      sendMessage in class CommandSender.Spigot
      Parameters:
      component - the components to send
    • sendMessage

      public void sendMessage(@NotNull net.md_5.bungee.api.chat.BaseComponent... components)
      Description copied from class: CommandSender.Spigot
      Sends an array of components as a single message to the sender.
      Overrides:
      sendMessage in class CommandSender.Spigot
      Parameters:
      components - the components to send
    • sendMessage

      public void sendMessage(@NotNull net.md_5.bungee.api.ChatMessageType position, @NotNull net.md_5.bungee.api.chat.BaseComponent component)
      Sends the component to the specified screen position of this player
      Parameters:
      position - the screen position
      component - the components to send
    • sendMessage

      public void sendMessage(@NotNull net.md_5.bungee.api.ChatMessageType position, @NotNull net.md_5.bungee.api.chat.BaseComponent... components)
      Sends an array of components as a single message to the specified screen position of this player
      Parameters:
      position - the screen position
      components - the components to send
    • sendMessage

      public void sendMessage(@NotNull net.md_5.bungee.api.ChatMessageType position, @Nullable UUID sender, @NotNull net.md_5.bungee.api.chat.BaseComponent component)
      Sends the component to the specified screen position of this player
      Parameters:
      position - the screen position
      sender - the sender of the message
      component - the components to send
    • sendMessage

      public void sendMessage(@NotNull net.md_5.bungee.api.ChatMessageType position, @Nullable UUID sender, @NotNull net.md_5.bungee.api.chat.BaseComponent... components)
      Sends an array of components as a single message to the specified screen position of this player
      Parameters:
      position - the screen position
      sender - the sender of the message
      components - the components to send