NoOPGap

Blocks the use of OP Gaps (Enchanted Golden Apples) in Minecraft.

169

Quick challenge

How far can you run before the mobs catch you?

NoOPGap

🍏 OpGapBlocker

A lightweight enchanted golden apples (OP-Gapples) that disables the use of enchanted golden apples (OP-Gapples). Ideal for survival or PvP servers where you want to keep combat more balanced.

---

⚙️ Features

- 🚫 Sends a warning message from eating enchanted golden apples - 💬 Sends a warning message when a player tries to consume one - ⚡ Lightweight — no commands or dependencies - 🧩 Simple configuration through `config.yml`

---

📁 Installation

1. Download the plugin `.jar` file 2. Place it in your server’s `plugins/` folder 3. Start or reload your server 4. A default configuration file will be generated automatically

---

⚙️ Configuration (`config.yml`)

```yaml

If true, enchanted golden apples (OP-Gapples) are blocked

noopgap: true ``` noopgap: true → Players cannot eat enchanted golden apples

noopgap: false → OP-Gapples work normally

---

💬 Example Message

When a player tries to eat an enchanted golden apple:

§cOP-Gapples sind deaktiviert! (Translation: “OP-Gapples are disabled!”)

You can easily modify this message in the code to match your server language.

---

🧰 Compatibility

- ✅ Works on Spigot, Paper, and Purpur servers

- 🧱 Tested on Minecraft 1.18+

- ⚙️ Requires Java 17+

🧩 Developer Information

Main class: de.scholle.opGapBlocker.OpGapBlocker

Main event: PlayerItemConsumeEvent

ADS