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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets all players hidden withPlayer.hidePlayer(org.bukkit.entity.Player)
.int
getPing()
Deprecated.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
(@NotNull net.md_5.bungee.api.chat.BaseComponent... components) Deprecated.void
sendMessage
(net.md_5.bungee.api.chat.BaseComponent component) Deprecated.void
sendMessage
(net.md_5.bungee.api.ChatMessageType position, @NotNull net.md_5.bungee.api.chat.BaseComponent... components) Deprecated.usesendMessage
methods that acceptComponent
void
sendMessage
(net.md_5.bungee.api.ChatMessageType position, UUID sender, @NotNull net.md_5.bungee.api.chat.BaseComponent... components) Deprecated.usesendMessage
methods that acceptComponent
void
sendMessage
(net.md_5.bungee.api.ChatMessageType position, UUID sender, net.md_5.bungee.api.chat.BaseComponent component) Deprecated.usesendMessage
methods that acceptComponent
void
sendMessage
(net.md_5.bungee.api.ChatMessageType position, net.md_5.bungee.api.chat.BaseComponent component) Deprecated.usesendMessage
methods that acceptComponent
Methods inherited from class org.bukkit.command.CommandSender.Spigot
sendMessage, sendMessage
-
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
-
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
Deprecated.Description copied from class:CommandSender.Spigot
Sends this sender a chat component.- Overrides:
sendMessage
in classCommandSender.Spigot
- Parameters:
component
- the components to send
-
sendMessage
@Deprecated public void sendMessage(@NotNull @NotNull net.md_5.bungee.api.chat.BaseComponent... components) Deprecated.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
@Deprecated public void sendMessage(@NotNull net.md_5.bungee.api.ChatMessageType position, @NotNull net.md_5.bungee.api.chat.BaseComponent component) Deprecated.usesendMessage
methods that acceptComponent
Sends the component to the specified screen position of this player- Parameters:
position
- the screen positioncomponent
- the components to send
-
sendMessage
@Deprecated public void sendMessage(@NotNull net.md_5.bungee.api.ChatMessageType position, @NotNull @NotNull net.md_5.bungee.api.chat.BaseComponent... components) Deprecated.usesendMessage
methods that acceptComponent
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
@Deprecated public void sendMessage(@NotNull net.md_5.bungee.api.ChatMessageType position, @Nullable UUID sender, @NotNull net.md_5.bungee.api.chat.BaseComponent component) Deprecated.usesendMessage
methods that acceptComponent
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
@Deprecated public void sendMessage(@NotNull net.md_5.bungee.api.ChatMessageType position, @Nullable UUID sender, @NotNull @NotNull net.md_5.bungee.api.chat.BaseComponent... components) Deprecated.usesendMessage
methods that acceptComponent
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
-
getPing
Deprecated.usePlayer.getPing()
- Returns:
- the player's ping
-
Player.getPing()