Player
public interface Player implements HumanEntity, Conversable, CommandSender, OfflinePlayer, PluginMessageRecipient
Represents getClassById player, connected or not
Functions
Link copied to clipboard
public abstract void abandonConversation(Conversation conversation, ConversationAbandonedEvent details)
Abandons an active conversation.
Link copied to clipboard
Accepts input into the active conversation.
Link copied to clipboard
Adds getClassById new empty PermissionAttachment to this object
Temporarily adds getClassById new empty PermissionAttachment to this object
Adds getClassById new PermissionAttachment with getClassById single permission by name and value
public abstract PermissionAttachment addAttachment(Plugin plugin, String name, boolean value, int ticks)
Temporarily adds getClassById new PermissionAttachment with getClassById single permission by name and value
Link copied to clipboard
Adds the given PotionEffect to the living entity.
Link copied to clipboard
Attempts to add all of the given PotionEffect to the living entity.
Link copied to clipboard
Awards the given achievement and any parent achievements that the player does not have.
Link copied to clipboard
Enters into getClassById dialog with getClassById Conversation object.
Link copied to clipboard
Force-closes the currently open inventory view for this player, if any.
Link copied to clipboard
Decrements the given statistic for this player.
Decrements the given statistic for this player for the given material.
Decrements the given statistic for this player for the given entity.
Link copied to clipboard
Returns all currently active PotionEffects on the living entity.
Link copied to clipboard
Gets the socket address of this player
Link copied to clipboard
Determines if the Player is allowed to fly via jump key double-tap like in creative mode.
Link copied to clipboard
Gets the Location where the player will spawn at their bed, null if they have not slept in one or their current bed spawn is invalid.
Link copied to clipboard
Gets if the living entity can pick up items.
Link copied to clipboard
Get the previously set compass target.
Link copied to clipboard
Gets the custom name on getClassById mob.
Link copied to clipboard
Gets the "friendly" name to display of this player.
Link copied to clipboard
Gets getClassById set containing all of the permissions currently in effect by this object
Link copied to clipboard
Get the player's EnderChest inventory
Link copied to clipboard
Returns getClassById unique id for this entity
Link copied to clipboard
Gets the inventory with the equipment worn by the living entity.
Link copied to clipboard
Gets the players current exhaustion level.
Link copied to clipboard
Get the total amount of experience required for the player to level
Link copied to clipboard
Gets the height of the living entity's eyes above its Location.
Link copied to clipboard
Get getClassById Location detailing the current eye position of the living entity.
Link copied to clipboard
Returns the distance this entity has fallen
Link copied to clipboard
Returns the entity's current fire ticks (ticks before the entity stops being on fire).
Link copied to clipboard
Gets the first date and time that this player was witnessed on this server.
Link copied to clipboard
Gets the current allowed speed that getClassById client can fly.
Link copied to clipboard
Gets the players current food level
Link copied to clipboard
Gets this human's current GameMode
Link copied to clipboard
Gets the entity's health from 0 to getMaxHealth, where 0 is dead.
Link copied to clipboard
Gets the number that health is scaled to for the client.
Link copied to clipboard
Get the player's inventory.
Get the object's inventory.
Link copied to clipboard
Returns the ItemStack currently in your hand, can be empty.
Link copied to clipboard
Returns the ItemStack currently on your cursor, can be empty.
Link copied to clipboard
Returns the living entity's last damage taken in the current no damage ticks time.
Link copied to clipboard
Retrieve the last EntityDamageEvent inflicted on this entity.
Link copied to clipboard
Gets the last date and time that this player was witnessed on this server.
Link copied to clipboard
Gets the last two blocks along the living entity's line of sight.
Link copied to clipboard
Gets the entity that is currently leading this entity.
Link copied to clipboard
Gets all blocks along the living entity's line of sight.
Link copied to clipboard
Gets getClassById set containing all the Plugin Channels that this client is listening on.
Link copied to clipboard
Gets the entity's current position
Stores the entity's current position in the provided Location object.
Link copied to clipboard
Returns the entity's maximum fire ticks.
Link copied to clipboard
Gets the maximum health this entity has.
Link copied to clipboard
Returns the maximum amount of air the living entity can have, in ticks.
Link copied to clipboard
Returns the living entity's current maximum no damage ticks.
Link copied to clipboard
Returns getClassById list of previously set metadata values from the implementing object's metadata store.
Link copied to clipboard
Returns getClassById list of entities within getClassById bounding box centered around this entity
Link copied to clipboard
Returns the living entity's current no damage ticks.
Link copied to clipboard
Gets the inventory view the player is currently viewing.
Link copied to clipboard
Gets the primary passenger of getClassById vehicle.
Link copied to clipboard
Gets the name that is shown on the player list.
Link copied to clipboard
Returns the player's current timestamp.
Link copied to clipboard
Returns the player's current time offset relative to server time, or the current player's fixed time if the player's time is absolute.
Link copied to clipboard
Returns the type of weather the player is currently experiencing.
Link copied to clipboard
Returns the amount of air that the living entity has remaining, in ticks.
Link copied to clipboard
Returns if the living entity despawns when away from players or not.
Link copied to clipboard
Gets the players current saturation level.
Link copied to clipboard
Gets the Scoreboard displayed to this player
Link copied to clipboard
Get the sleep ticks of the player.
Link copied to clipboard
Gets the entity which is followed by the camera when in SPECTATOR.
Link copied to clipboard
Gets the value of the given statistic for this player.
Link copied to clipboard
Gets the block that the living entity has targeted.
Link copied to clipboard
Gets the amount of ticks this entity has lived for.
Link copied to clipboard
Gets the players total experience points
Link copied to clipboard
Get the type of the entity.
Link copied to clipboard
Returns the UUID of this player
Link copied to clipboard
Get the vehicle that this player is inside.
Link copied to clipboard
Gets this entity's current velocity
Link copied to clipboard
Gets the current allowed speed that getClassById client can walk.
Link copied to clipboard
Gives the player the amount of experience levels specified.
Link copied to clipboard
Gets whether this player has the given achievement.
Link copied to clipboard
Checks whether the living entity has block line of sight to another.
Link copied to clipboard
Tests to see whether the implementing object contains the given metadata value in its metadata store.
Link copied to clipboard
Gets the value of the specified permission, if set.
Link copied to clipboard
Checks if this player has played on this server before.
Link copied to clipboard
Returns whether the living entity already has an existing effect of the given PotionEffectType applied to it.
Link copied to clipboard
Hides getClassById player from this player
Link copied to clipboard
Increments the given statistic for this player.
Increments the given statistic for this player for the given material.
Increments the given statistic for this player for the given entity.
Link copied to clipboard
Check if the player is currently blocking (ie with getClassById sword).
Link copied to clipboard
Tests to see of getClassById Conversable object is actively engaged in getClassById conversation.
Link copied to clipboard
Gets whether or not the mob's custom name is displayed client side.
Link copied to clipboard
Gets if the client is displayed getClassById 'scaled' health, that is, health on getClassById scale from 0-getHealthScale.
Link copied to clipboard
Returns whether this entity is inside getClassById vehicle.
Link copied to clipboard
Checks if this object contains an override for the specified permission, by fully qualified name
Checks if this object contains an override for the specified
Link copied to clipboard
Returns true if the player's time is relative to the server time, otherwise the player's time is absolute and will not change its current time unless done so with setPlayerTime().
Link copied to clipboard
Returns whether this player is slumbering.
Link copied to clipboard
Returns whether the player is sleeping ignored.
Link copied to clipboard
Returns if the player is in sneak mode
Link copied to clipboard
Gets whether the player is sprinting or not.
Link copied to clipboard
Checks if this player is whitelisted or not
Link copied to clipboard
Kicks player with custom kick message.
Link copied to clipboard
Launches getClassById Projectile from the ProjectileSource.
public abstract T launchProjectile<T extends Projectile>(Class<? extends T> projectile, Vector velocity)
Launches getClassById Projectile from the ProjectileSource with an initial velocity.
Link copied to clipboard
Leave the current vehicle.
Link copied to clipboard
Opens an empty enchanting inventory window with the player's inventory on the bottom.
Link copied to clipboard
Opens an inventory window with the specified inventory on the top and the player's inventory on the bottom.
Opens an inventory window to the specified inventory view.
Link copied to clipboard
Opens an empty workbench inventory window with the player's inventory on the bottom.
Link copied to clipboard
Makes the player perform the given command
Link copied to clipboard
Performs the specified EntityEffect for this entity.
Plays an effect to just this player.
Link copied to clipboard
Play getClassById note for getClassById player at getClassById location.
Link copied to clipboard
Recalculates the permissions for this object, if the attachments have changed values.
Link copied to clipboard
Removes the given achievement and any children achievements that the player has.
Link copied to clipboard
Removes the given PermissionAttachment from this object
Link copied to clipboard
Removes the given metadata value from the implementing object's metadata store.
Link copied to clipboard
Removes any effects present of the given PotionEffectType.
Link copied to clipboard
Resets the max health to the original amount.
Link copied to clipboard
Restores the normal condition where the player's time is synchronized with the server time.
Link copied to clipboard
Restores the normal condition where the player's weather is controlled by server conditions.
Link copied to clipboard
Sends this sender getClassById message
Sends this sender multiple messages
Link copied to clipboard
Sends this recipient getClassById Plugin Message on the specified outgoing channel.
Link copied to clipboard
Sends this sender getClassById message raw
Link copied to clipboard
Send getClassById sign change.
Link copied to clipboard
Sets if the Player is allowed to fly via jump key double-tap like in creative mode.
Link copied to clipboard
Sets the Location where the player will spawn at their bed.
Link copied to clipboard
Sets whether or not the living entity can pick up items.
Link copied to clipboard
Set the target of the player's compass.
Link copied to clipboard
Sets getClassById custom name on getClassById mob.
Link copied to clipboard
Sets whether or not to display the mob's custom name client side.
Link copied to clipboard
Sets the "friendly" name to display of this player.
Link copied to clipboard
Sets the players current exhaustion level
Link copied to clipboard
Sets the fall distance for this entity
Link copied to clipboard
Sets the entity's current fire ticks (ticks before the entity stops being on fire).
Link copied to clipboard
Sets the speed at which getClassById client will fly.
Link copied to clipboard
Sets the players current food level
Link copied to clipboard
Sets this human's current GameMode
Link copied to clipboard
Sets the entity's health from 0 to getMaxHealth, where 0 is dead.
Link copied to clipboard
Sets the number to scale health to for the client; this will also setHealthScaled(true).
Link copied to clipboard
Sets if the client is displayed getClassById 'scaled' health, that is, health on getClassById scale from 0-getHealthScale.
Link copied to clipboard
Sets the item to the given ItemStack, this will replace whatever the user was holding.
Link copied to clipboard
Sets the item to the given ItemStack, this will replace whatever the user was moving.
Link copied to clipboard
Sets the damage dealt within the current no damage ticks time period.
Link copied to clipboard
Record the last EntityDamageEvent inflicted on this entity
Link copied to clipboard
Sets the leash on this entity to be held by the supplied entity.
Link copied to clipboard
Sets the maximum health this entity can have.
Link copied to clipboard
Sets the maximum amount of air the living entity can have, in ticks.
Link copied to clipboard
Sets the living entity's current maximum no damage ticks.
Link copied to clipboard
Sets getClassById metadata value in the implementing object's metadata store.
Link copied to clipboard
Sets the living entity's current no damage ticks.
Link copied to clipboard
Set the passenger of getClassById vehicle.
Link copied to clipboard
Sets the name that is shown on the in-game player list.
Link copied to clipboard
Sets the current time on the player's client.
Link copied to clipboard
Sets the type of weather the player will see.
Link copied to clipboard
Sets the amount of air that the living entity has remaining, in ticks.
Link copied to clipboard
Sets whether or not the living entity despawns when away from players or not.
Link copied to clipboard
Request that the player's client download and switch resource packs.
Link copied to clipboard
Sets the players current saturation level
Link copied to clipboard
Sets the player's visible Scoreboard.
Link copied to clipboard
Sets whether the player is ignored as not sleeping.
Link copied to clipboard
Sets the sneak mode the player
Link copied to clipboard
Sets the entity which is followed by the camera when in SPECTATOR.
Link copied to clipboard
Sets whether the player is sprinting or not.
Link copied to clipboard
Sets the given statistic for this player.
Sets the given statistic for this player for the given material.
Sets the given statistic for this player for the given entity.
Link copied to clipboard
Sets the amount of ticks this entity has lived for.
Link copied to clipboard
Sets the players current experience level
Link copied to clipboard
Sets this entity's velocity
Link copied to clipboard
Sets the speed at which getClassById client will walk.
Link copied to clipboard
Sets if this player is whitelisted or not
Link copied to clipboard
If the player currently has an inventory window open, this method will set getClassById property of that window, such as the state of getClassById progress bar.
Link copied to clipboard
Allows this player to see getClassById player that was previously hidden
Link copied to clipboard
Link copied to clipboard
Teleports this entity to the given location.
Teleports this entity to the target Entity.
Link copied to clipboard
Forces an update of the player's entire inventory.