Skip to content

PLUGINS EVENT FURNITURE PICKUP

github-actions[bot] edited this page Jul 29, 2026 · 1 revision

Plugin Event: furniture.pickup

This cancellable event runs after ownership and room-presence checks and before the furniture returns to inventory. Player, ItemID, and RoomID are immutable; there are no mutable destination fields.

host.Events().Listen(event.FurniturePickupName, event.ListenerOptions{}, func(_ context.Context, current event.Event) error {
	pickup := current.(*event.FurniturePickup)
	pickup.SetCancelled(isPermanentExhibit(pickup.ItemID))
	return nil
})

Cancellation leaves the placed item unchanged.

Clone this wiki locally