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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionGets all players hidden withPlayer.hidePlayer(org.bukkit.entity.Player).intgetPing()Gets the connection address of this player, regardless of whether it has been spoofed or not.voidrespawn()Respawns the player if dead.voidsendMessage(@NotNull net.md_5.bungee.api.chat.BaseComponent... components) Deprecated.voidsendMessage(net.md_5.bungee.api.chat.BaseComponent component) Deprecated.voidsendMessage(net.md_5.bungee.api.ChatMessageType position, @NotNull net.md_5.bungee.api.chat.BaseComponent... components) Deprecated.voidsendMessage(net.md_5.bungee.api.ChatMessageType position, UUID sender, @NotNull net.md_5.bungee.api.chat.BaseComponent... components) Deprecated.usesendMessagemethods that acceptComponentvoidsendMessage(net.md_5.bungee.api.ChatMessageType position, UUID sender, net.md_5.bungee.api.chat.BaseComponent component) Deprecated.usesendMessagemethods that acceptComponentvoidsendMessage(net.md_5.bungee.api.ChatMessageType position, net.md_5.bungee.api.chat.BaseComponent component) Deprecated.usesendMessagemethods that acceptComponentMethods inherited from class org.bukkit.command.CommandSender.SpigotsendMessage, sendMessage
- 
Constructor Details- 
Spigotpublic Spigot()
 
- 
- 
Method Details- 
getRawAddressGets the connection address of this player, regardless of whether it has been spoofed or not.- Returns:
- the player's connection address
 
- 
respawnpublic void respawn()Respawns the player if dead.
- 
getHiddenPlayersGets all players hidden withPlayer.hidePlayer(org.bukkit.entity.Player).- Returns:
- a Set with all hidden players
 
- 
sendMessageDeprecated.Description copied from class:CommandSender.SpigotSends this sender a chat component.- Overrides:
- sendMessagein class- CommandSender.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.SpigotSends an array of components as a single message to the sender.- Overrides:
- sendMessagein class- CommandSender.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.usesendMessagemethods that acceptComponentSends the component to the specified screen position of this player- Parameters:
- position- the screen position
- component- 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.usesendMessagemethods that acceptComponentSends 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@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.usesendMessagemethods that acceptComponentSends 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@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.usesendMessagemethods that acceptComponentSends 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
 
- 
getPingpublic int getPing()
 
- 
sendMessagemethods that acceptComponent