Player

21 nodes in this category.

Send Message paper/player_message

Sends a chat message to a player or command sender. Supports & color codes.

In: exec, target, message Out: exec
Broadcast Message paper/broadcast_message

Sends a message to all players on the server.

In: exec, message Out: exec
Player Teleport paper/player_teleport

Teleports a player to a location.

In: exec, player, location Out: exec
Get Player Name paper/player_get_name

Gets the username and display name of a player.

In: player Out: name, displayName
Get Player Health paper/player_get_health

Returns the player's current health, max health, and food level.

In: player Out: health, maxHealth, food
Set Player Health paper/player_set_health

Sets a player's health to a specific value.

In: exec, player, health Out: exec
Get Player Location paper/player_get_location

Returns the player's current location and coordinates.

In: player Out: location, x, y, z, world
Player Give Item paper/player_give_item

Gives an item to a player's inventory. Accepts an ItemStack or a material name.

In: exec, player, item, material, amount Out: exec
Player Kick paper/player_kick

Kicks a player from the server with an optional reason.

In: exec, player, reason Out: exec
Get Player XP paper/player_xp

Returns a player's experience level, total experience, and progress within the current level.

In: player Out: level, totalExp, expProgress
Set Player XP paper/player_set_xp

Sets or modifies a player's experience.

In: exec, player, value Out: exec
Player Game Mode paper/player_gamemode

Gets or sets a player's game mode.

In: exec, player, gameMode Out: exec, gameMode
Player Has Permission paper/player_has_permission

Checks whether a player has a specific permission node.

In: player, permission Out: result
Player Is Online paper/player_is_online

Checks whether a player is currently online by name.

In: name Out: online, player
Set Player Food paper/player_set_food

Sets a player's food level and saturation.

In: exec, player, food, saturation Out: exec
Get Online Players paper/get_online_players

Returns a list of all currently online players.

Out: players, count
Get Player By Name paper/get_player_by_name

Looks up an online player by their username.

In: name Out: player, found
Event Get Player paper/event_get_player

Extracts the player from a Bukkit event object.

In: event Out: player, found
Send Title paper/send_title

Shows a title and subtitle on a player's screen.

In: exec, player, title, subtitle Out: exec
Send Action Bar paper/send_action_bar

Displays a message in the action bar (above the hotbar) for a player.

In: exec, player, message Out: exec
Play Sound paper/play_sound

Plays a sound for a specific player.

In: exec, player, sound, volume, pitch Out: exec