public static class Player.Spigot extends Entity.Spigot
| Constructor and Description |
|---|
Spigot() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getCollidesWithEntities()
Deprecated.
|
Set<Player> |
getHiddenPlayers()
Gets all players hidden with
Player.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... components)
Sends an array of components as a single message to the sender.
|
void |
sendMessage(BaseComponent component)
Sends this sender a chat component.
|
void |
sendMessage(ChatMessageType position,
BaseComponent... components)
Sends an array of components as a single message to the specified screen position of this player
|
void |
sendMessage(ChatMessageType position,
BaseComponent component)
Sends the component to the specified screen position of this player
|
void |
sendMessage(ChatMessageType position,
UUID sender,
BaseComponent... components)
Sends an array of components as a single message to the specified screen position of this player
|
void |
sendMessage(ChatMessageType position,
UUID sender,
BaseComponent component)
Sends the component to the specified screen position of this player
|
void |
setCollidesWithEntities(boolean collides)
Deprecated.
|
sendMessage, sendMessage@NotNull public InetSocketAddress getRawAddress()
@Deprecated public boolean getCollidesWithEntities()
LivingEntity.isCollidable()@Deprecated public void setCollidesWithEntities(boolean collides)
LivingEntity.setCollidable(boolean)collides - whether the player should collide with entities or
not.public void respawn()
@NotNull public Set<Player> getHiddenPlayers()
Player.hidePlayer(org.bukkit.entity.Player).public void sendMessage(@NotNull BaseComponent component)
CommandSender.SpigotsendMessage in class CommandSender.Spigotcomponent - the components to sendpublic void sendMessage(@NotNull BaseComponent... components)
CommandSender.SpigotsendMessage in class CommandSender.Spigotcomponents - the components to sendpublic void sendMessage(@NotNull ChatMessageType position, @NotNull BaseComponent component)
position - the screen positioncomponent - the components to sendpublic void sendMessage(@NotNull ChatMessageType position, @NotNull BaseComponent... components)
position - the screen positioncomponents - the components to sendpublic void sendMessage(@NotNull ChatMessageType position, @Nullable UUID sender, @NotNull BaseComponent component)
position - the screen positionsender - the sender of the messagecomponent - the components to sendpublic void sendMessage(@NotNull ChatMessageType position, @Nullable UUID sender, @NotNull BaseComponent... components)
position - the screen positionsender - the sender of the messagecomponents - the components to sendCopyright © 2021. All rights reserved.