Skript addon that fires events when a player opens
Advancements or receives
Statistics. Perfect for auto-opening GUIs, running commands, or any QoL automation tied to those screens.
Features
Requirements
on statistics open:
broadcast "&aStats opened by %player%"
on advancement open:
wait 1 tick
# Opening an inventory closes the Advancements screen
make player execute command "/config"
Notes
Features
- on advancement open: — fires when the client sends ADVANCEMENT_TAB.
- on statistics open: — fires when the server sends STATISTICS.
- Optional debug: true in config.yml for clear console logs.
- Designed for Paper 1.21.4; stable PacketEvents-based implementation.
Requirements
- Paper 1.21.4 (Java 17+)
- Skript 2.9.x
- PacketEvents 2.9.5+
- Drop YSkriptPackets-2.x.x.jar, Skript, and PacketEvents into plugins/.
- Start the server.
- (Optional) Set debug: true in plugins/YSkriptPackets/config.yml.
on statistics open:
broadcast "&aStats opened by %player%"
on advancement open:
wait 1 tick
# Opening an inventory closes the Advancements screen
make player execute command "/config"
Notes
- Events are notifications (non-cancellable), fired on the main thread.
- Opening any inventory/GUI will “close” the Advancements screen on the client—use the 1-tick delay for smooth UX.
- 2.0.2 – Events marked synchronous (fixes Paper IllegalStateException).
- 2.0.1 – Corrected PacketEvents Maven coords/repos.
- 2.0.0 – Initial stable release (PacketEvents).
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft version listed: 1.21
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
AVS Key-Skript is a free Minecraft Java mod. Compatible with Minecraft 1.21. Downloaded 239 times (via Spigot). Download it and open it directly in the game.