
denizen-reflect
Adds direct Java support to Denizen scripts.
Автор: isnsest2,1 тыс.4обновлён 5 июл. 2026 г.
Механики игрыБиблиотекиУтилиты
Описание
denizen-reflect is an add-on for experienced scripters designed to combine the capabilities of Java directly within the Denizen development environment.
Supported Platforms
Features
- 🔹 Importing classes
- 🔹 Executing Java code (methods, fields, constructors)
- 🔹 Creating your own placeholders (PlaceholderAPI)
- 🔹 Creating custom Denizen commands & tags
- 🔹 Renaming Denizen events
- 🔹 Creating proxies
- 🔹 Lambda expressions support
- 🔹 And much more...
Example Usage
import:
java.lang.System as test
java.lang.String
task:
type: task
script:
- define def <invoke[new String("123")]>
- invoke player.sendMessage("321")
- invoke test.out.println(def)
Последние версии
Все версии →release
denizen-reflect 2.4.2
2.4.25 июл. 2026 г.440Minecraft: 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11, 26.1, 26.1.1, 26.1.2, 26.2bukkit, paper, purpur, spigot
Что нового
fix: resolve critical data loss and race conditions in proxy and section
release
denizen-reflect 2.4.1
2.4.122 июн. 2026 г.84Minecraft: 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11, 26.1, 26.1.1, 26.1.2, 26.2bukkit, paper, purpur, spigot
Что нового
fix: resolved class loading issues, allowing .dsc scripts to properly import and invoke custom Java classes.
release
denizen-reflect 2.4.0
2.4.014 июн. 2026 г.61Minecraft: 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11, 26.1, 26.1.1, 26.1.2bukkit, paper, purpur, spigot
Что нового
# denizen-reflect 2.4.0
### Add:
- ``Java Scripts (.java Script Support)``**:**
> Write and execute native Java classes directly in your plugins/Denizen/scripts/ folder. They compile on-the-fly during "/ex reload" and run with 100% native Java performance.
> ### The // @persistent State Control
> **Control the compilation lifecycle by adding a // @persistent comment at the very top of your .java file:**
> - **Volatile (Default - No comment):** Recompiles from scratch on every "/ex reload". **Best for active development and quick testing.**
> - **Persistent (Add // @persistent):** Compiles only once and "freezes" in memory, **protecting static variables from resetting**. Use this **when you have completely finished developing the class.**
> ### Architecture:
> **To prevent memory leaks during reloads, the system uses a strict classloader hierarchy. You must follow these visibility rules:**
> - ✅ **Volatile scripts** CAN see and use Persistent classes.
> - ✅ **Persistent classes** CAN see and use other Persistent classes.
> - ❌ **Persistent classes** CANNOT reference Volatile scripts. Doing so will trap the old volatile script in memory and eventually crash the server with an **OutOfMemoryError**.
> ### Lifecycle Methods:
> **You can optionally implement two static methods that the system invokes automatically:**
> - **public static void init():** Executed immediately after successful compilation.
> - **public static void shutdown():** Executed right before the script is reloaded or deleted (used for cleanup).
>
> *For more information, visit the documentation website.*
>
> 
### Fix:
- ``TagCommand``**:**
> **Fixed custom base tags not supporting sub-tags.**
- ``CustomCommand``**:**
> **Fixed custom commands ignoring execution determinations.**
release
denizen-reflect 2.3.2
2.3.213 апр. 2026 г.262Minecraft: 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11, 26.1, 26.1.1, 26.1.2bukkit, paper, purpur, spigot
Что нового
fix: resolve non-public class bypass to fix interface and deep discovery
release
denizen-reflect 2.3.1
2.3.117 мар. 2026 г.165Minecraft: 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11bukkit, paper, purpur, spigot
Что нового
Proxy handlers are forced to run in the main thread.
release
denizen-reflect 2.3.0
2.3.06 мар. 2026 г.76Minecraft: 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11bukkit, paper, purpur, spigot
Что нового
feat: add util.custom_commands tag
release
denizen-reflect 2.2.9
2.2.95 мар. 2026 г.27Minecraft: 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11bukkit, paper, purpur, spigot
Что нового
**Optimization**
Debugging disabled in executor:<tag> (PlaceholderCommand)
release
denizen-reflect 2.2.8
2.2.821 февр. 2026 г.97Minecraft: 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11bukkit, paper, purpur, spigot
Что нового
**feat: support dynamic tag-based executors for tags and placeholders**
release
denizen-reflect 2.2.7
2.2.720 февр. 2026 г.36Minecraft: 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11bukkit, paper, purpur, spigot
Что нового
**fix: resolve encapsulation issues by reflecting via public interfaces**
release
denizen-reflect 2.2.6
2.2.620 февр. 2026 г.29Minecraft: 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11bukkit, paper, purpur, spigot
Что нового
**Add 'executor' argument for custom tags, commands, and placeholders.**
**Add libload command for dynamic Java library injection.**
**Fixed bStats not logging the Denizen version.**