Play Strawberry Belgeler
Başvuru

Bu sayfa İngilizce gösteriliyor.

Not in the script API

Paper features that have no equivalent in the script API.

These Paper features have no equivalent in the script API. They are not in this reference, and a script cannot use them on Play Strawberry servers.

What

Paper

Hiding one player from another player (vanish).

Player#hidePlayer, Player#showPlayer

Hiding a single entity from one player, and entities that are hidden by default.

Player#hideEntity, Player#showEntity, Entity#setVisibleByDefault

Sending many client-side block changes in one call. One block at a time works: send-block-change on the player.

Player#sendBlockChanges, Player#sendMultiBlockChange

Showing a toast to a player. Awarding an existing advancement works.

toasts

Closing a player's open inventory or GUI from the script.

HumanEntity#closeInventory

Changing a firework's item or detonating it.

Firework#setItem, Firework#detonate

Changing a player's death drops or keeping levels from a death event.

PlayerDeathEvent#getDrops, setKeepLevel

Damaging an entity on behalf of another entity (the attacker).

Damageable#damage(amount, source)

Reading or replacing the item stack of a dropped item entity, and the item entity of drop and spawn events.

Item#getItemStack, setItemStack, PlayerDropItemEvent#getItemDrop

Turning a mob's awareness off, and the Creaking's activation.

Mob#setAware

Keeping chunks loaded with script chunk tickets.

Chunk#addPluginChunkTicket

The hand of an interact event.

PlayerInteractEvent#getHand

Storing and reading client cookies.

Player#storeCookie, retrieveCookie

Changing who receives a chat message.

AsyncChatEvent#viewers

Per-player maps.

MapView

A world border for one player.

Player#setWorldBorder

Creating a world as a copy of a template world. Creating and unloading worlds works.

WorldCreator (from a template)

Looking up players who are offline. Keep your own index of UUIDs and names.

OfflinePlayer

A shared placeholder system. Each script formats its own text.

PlaceholderAPI

A typed service registry between scripts. Use inter-script messages (ipc).

ServicesManager

A configuration API. Read and write your own file in the script's data folder.

getConfig()