# InventoryFull

## Description

**InventoryFull** is a very small plugin that alerts players when they don't have inventory space!

Simply enable any of the following ways to alert players in the config file and use /invfull reload. After the alert type is enabled, when players get a full inventiry they will be alerted!

## Features

* 5 Ways to send the full inventory alert.
* Highly customizable.
* Play a sound when the alert is sent.

## Alerts

Types of alerts:

* ChatMessage - send an inventory full message through chat!
* Actionbar (Requires [ActionAnnouncer](https://www.spigotmc.org/resources/actionannouncer.1320/)) - send an inventory full message through the actionbar!
* Title and subtitle (Requires [TitleManager](https://www.spigotmc.org/resources/titlemanager.1049/)) - send an inventory full message through the Title and subtitle!
* Holograms (Requires [HolographicDisplays](https://www.spigotmc.org/resources/titlemanager.1049/)) - send an inventory full message with a hologram!
* Sound - play a sound to a player when they have a full inventory!

## API

There is an API that will allow you to listen to a special event that is fired when a player has a full inventory and breaks a block that won't fit!

Here is an example:

```yaml
@EventHandler
public void onFull(InventoryFullEvent e) {

    //player with full inventory
    Player p = e.getPlayer();

    //item that does not fit in players inventory
    ItemStack i = e.getItem();

}
```


---

# 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://wiki.helpch.at/clips-plugins/inventoryfull.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.
