# CantDrop

This module prevents players from dropping the custom item it is attached to. When a player attempts to drop the item, the action is disallowed, and a configurable message (either a hint or a broadcast) is sent to the player, explaining why the item cannot be dropped.

### Configuration

| Value             | Description                                                                                                                                                              |
| ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `HintOrBroadcast` | Specifies whether to send a "Hint" or a "Broadcast" message to the player when they attempt to drop the item. Valid values are `Hint` or `Broadcast` (case-insensitive). |
| `Message`         | The message text to display to the player. You can use the placeholder `%name%` within the message, which will be replaced by the custom item's name.                    |
| `Duration`        | The duration, in seconds, for which the hint or broadcast message will be displayed to the player. This value must be an unsigned integer.                               |

### Example

```yaml
custom_modules:
  CantDrop:
  - HintOrBroadcast: Broadcast
    Message: The %name% is bound to you and cannot be dropped!
    Duration: 7
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.uci.ucserver.it/uncomplicatedcustomitems/prerelease-content/custommodules/cantdrop.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
