Class Player.Spigot

java.lang.Object
org.bukkit.entity.Entity.Spigot
org.bukkit.entity.Player.Spigot
Enclosing interface:
Player

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

    Constructors 
    Constructor Description
    Spigot()  
  • Method Summary

    Modifier and Type Method Description
    boolean getCollidesWithEntities()
    Gets whether the player collides with entities
    java.util.Set<Player> getHiddenPlayers()
    Gets all players hidden with Player.hidePlayer(org.bukkit.entity.Player).
    java.lang.String getLocale()
    Gets player locale language.
    java.net.InetSocketAddress getRawAddress()
    Gets the connection address of this player, regardless of whether it has been spoofed or not.
    void playEffect​(Location location, Effect effect, int id, int data, float offsetX, float offsetY, float offsetZ, float speed, int particleCount, int radius)  
    void respawn()
    Respawns the player if dead.
    void sendMessage​(net.md_5.bungee.api.chat.BaseComponent component)
    Sends the component to the player
    void sendMessage​(net.md_5.bungee.api.chat.BaseComponent... components)
    Sends an array of components as a single message to the player
    void setCollidesWithEntities​(boolean collides)
    Sets whether the player collides with entities

    Methods inherited from class org.bukkit.entity.Entity.Spigot

    isInvulnerable

    Methods inherited from class java.lang.Object

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

  • Method Details

    • getRawAddress

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

      public void playEffect​(Location location, Effect effect, int id, int data, float offsetX, float offsetY, float offsetZ, float speed, int particleCount, int radius)
    • getCollidesWithEntities

      public boolean getCollidesWithEntities()
      Gets whether the player collides with entities
      Returns:
      the player's collision toggle state
    • setCollidesWithEntities

      public void setCollidesWithEntities​(boolean collides)
      Sets whether the player collides with entities
      Parameters:
      collides - whether the player should collide with entities or not.
    • respawn

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

      public java.lang.String getLocale()
      Gets player locale language.
      Returns:
      the player's client language settings
    • getHiddenPlayers

      public java.util.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​(net.md_5.bungee.api.chat.BaseComponent component)
      Sends the component to the player
      Parameters:
      component - the components to send
    • sendMessage

      public void sendMessage​(net.md_5.bungee.api.chat.BaseComponent... components)
      Sends an array of components as a single message to the player
      Parameters:
      components - the components to send