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). |
int |
getPing() |
@NotNull 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)
Deprecated.
|
void |
sendMessage(BaseComponent component)
Deprecated.
|
void |
sendMessage(ChatMessageType position,
BaseComponent... components)
Deprecated.
This is unlikely the API you want to use. See
Player.sendActionBar(String) for a more proper Action Bar API. This deprecated API may send unsafe items to the client. |
void |
sendMessage(ChatMessageType position,
BaseComponent component)
Deprecated.
This is unlikely the API you want to use. See
Player.sendActionBar(String) for a more proper Action Bar API. This deprecated API may send unsafe items to the client. |
void |
sendMessage(ChatMessageType position,
@Nullable UUID sender,
BaseComponent... components)
Deprecated.
use
sendMessage methods that accept Component |
void |
sendMessage(ChatMessageType position,
@Nullable UUID sender,
BaseComponent component)
Deprecated.
use
sendMessage methods that accept Component |
void |
setCollidesWithEntities(boolean collides)
Deprecated.
|
sendMessage, sendMessage@NotNull public @NotNull 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).@Deprecated public void sendMessage(@NotNull BaseComponent component)
CommandSender.SpigotsendMessage in class CommandSender.Spigotcomponent - the components to send@Deprecated public void sendMessage(@NotNull BaseComponent... components)
CommandSender.SpigotsendMessage in class CommandSender.Spigotcomponents - the components to send@Deprecated public void sendMessage(@NotNull ChatMessageType position, @NotNull BaseComponent component)
Player.sendActionBar(String) for a more proper Action Bar API. This deprecated API may send unsafe items to the client.position - the screen positioncomponent - the components to send@Deprecated public void sendMessage(@NotNull ChatMessageType position, @NotNull BaseComponent... components)
Player.sendActionBar(String) for a more proper Action Bar API. This deprecated API may send unsafe items to the client.position - the screen positioncomponents - the components to send@Deprecated public void sendMessage(@NotNull ChatMessageType position, @Nullable @Nullable UUID sender, @NotNull BaseComponent component)
sendMessage methods that accept Componentposition - the screen positionsender - the sender of the messagecomponent - the components to send@Deprecated public void sendMessage(@NotNull ChatMessageType position, @Nullable @Nullable UUID sender, @NotNull BaseComponent... components)
sendMessage methods that accept Componentposition - the screen positionsender - the sender of the messagecomponents - the components to sendpublic int getPing()
Copyright © 2021. All rights reserved.