Package org.bukkit.entity
Class Player.Spigot
java.lang.Object
org.bukkit.command.CommandSender.Spigot
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()
Deprecated.Set<Player>
getHiddenPlayers()
Gets all players hidden withPlayer.hidePlayer(org.bukkit.entity.Player)
.InetSocketAddress
getRawAddress()
Gets the connection address of this player, regardless of whether it has been spoofed or not.void
respawn()
Respawns the player if dead.void
sendMessage(BaseComponent component)
Sends this sender a chat component.void
sendMessage(BaseComponent... components)
Sends an array of components as a single message to the sender.void
sendMessage(ChatMessageType position, UUID sender, BaseComponent component)
Sends the component to the specified screen position of this playervoid
sendMessage(ChatMessageType position, UUID sender, BaseComponent... components)
Sends an array of components as a single message to the specified screen position of this playervoid
sendMessage(ChatMessageType position, BaseComponent component)
Sends the component to the specified screen position of this playervoid
sendMessage(ChatMessageType position, BaseComponent... components)
Sends an array of components as a single message to the specified screen position of this playervoid
setCollidesWithEntities(boolean collides)
Deprecated.
-
Constructor Details
-
Spigot
public Spigot()
-
-
Method Details
-
getRawAddress
Gets the connection address of this player, regardless of whether it has been spoofed or not.- Returns:
- the player's connection address
-
getCollidesWithEntities
Deprecated.Gets whether the player collides with entities- Returns:
- the player's collision toggle state
-
setCollidesWithEntities
Deprecated.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. -
getHiddenPlayers
Gets all players hidden withPlayer.hidePlayer(org.bukkit.entity.Player)
.- Returns:
- a Set with all hidden players
-
sendMessage
Description copied from class:CommandSender.Spigot
Sends this sender a chat component.- Overrides:
sendMessage
in classCommandSender.Spigot
- Parameters:
component
- the components to send
-
sendMessage
Description copied from class:CommandSender.Spigot
Sends an array of components as a single message to the sender.- Overrides:
sendMessage
in classCommandSender.Spigot
- Parameters:
components
- the components to send
-
sendMessage
Sends the component to the specified screen position of this player- Parameters:
position
- the screen positioncomponent
- the components to send
-
sendMessage
Sends an array of components as a single message to the specified screen position of this player- Parameters:
position
- the screen positioncomponents
- the components to send
-
sendMessage
public void sendMessage(@NotNull ChatMessageType position, @Nullable UUID sender, @NotNull BaseComponent component)Sends the component to the specified screen position of this player- Parameters:
position
- the screen positionsender
- the sender of the messagecomponent
- the components to send
-
sendMessage
public void sendMessage(@NotNull ChatMessageType position, @Nullable UUID sender, @NotNull BaseComponent... components)Sends an array of components as a single message to the specified screen position of this player- Parameters:
position
- the screen positionsender
- the sender of the messagecomponents
- the components to send
-