TargetActions

The /despi target … subcommands — per-target settings on the block you are looking at.

This is the primary surface for a target's options, and deliberately so. It works identically on every client, needs no mod and no special item, and reads like the rest of the command tree. A command is more predictable than an item that pretends to be a tool or a menu that pretends to be part of the game.

Kept in its own class rather than piled into DespiActions, which is already a broad facade — one cohesive group of related subcommands per class.

Constructors

Link copied to clipboard
constructor(plugin: PaperMcDespawnedItems)

Functions

Link copied to clipboard
fun info(player: Player)

/despi target info — report the looked-at target's settings.

Link copied to clipboard
fun setContraband(player: Player, accept: Boolean)

/despi target contraband accept|refuse.

Link copied to clipboard
fun setEnabled(player: Player, desired: Boolean?)

/despi target enable|disable|toggle. desired null means flip it.

Link copied to clipboard
fun setPriority(player: Player, priority: Int)

/despi target priority <1-10>.