
flok
Flok is a fast, lightweight scripting plugin for Paper/Spigot servers. You write plain .fk files — no Java, no compile step, no restarts for most changes. Drop a script in, run /flok reload, and it's live.
🐺 Flok Engine
Performance-First Server Scripting for Modern Minecraft
Flok is a lightweight, high-performance scripting engine for Paper and Spigot servers (1.21+). Designed as a modern, safety-conscious alternative to traditional scripting plugins, Flok allows you to create custom mechanics, commands, and event handlers using a natural, easy-to-read syntax—without the overhead or server-freeze risks.
⚡ Why Choose Flok?
- World-Class Performance: Benchmarked at an average tick rate of 2.076ms under load.
- Crash-Proof Safety: Includes a built-in 50,000 op-limit per script execution, preventing infinite loops from ever freezing your server thread.
- Smart Throttling: The
on player-moveevent is natively throttled to once per second per player, providing a massive TPS safety net. - Persistent Data: A global, human-readable storage system (
flok_data.yml) that survives restarts and force-stops. - Modern Java: Built on Java 21 to leverage the latest JVM optimizations.
🛠️ Key Features
- Asynchronous Delays: Fully functional
waiteffect for non-blocking script delays. - Event Cancellation: Full control over event flow with
cancelanduncancelsupport. - Custom Commands: Register commands with custom permissions, aliases, and descriptions on the fly.
- Addon API: A stable Java API for developers to register custom effects and fire custom events.
- Zero Restarts: Use
/flok reloadto update your scripts instantly without a server reboot.
📖 Quick Start
- Drop Flok-1.0.jar into your
pluginsfolder. - Restart the server to generate the
/plugins/Flok/scripts/directory. - Create a
.fkfile and start scripting!
on player-join:
send "&aWelcome to the server, %player-name%!"
if %first-join% is true:
broadcast "&e%player-name% joined for the first time!"# 🐺 Flok Engine
Performance-First Server Scripting for Modern Minecraft
Flok is a lightweight, high-performance scripting engine for Paper and Spigot servers (1.21+). Designed as a modern, safety-conscious alternative to traditional scripting plugins, Flok allows you to create custom mechanics, commands, and event handlers using a natural, easy-to-read syntax—without the overhead or server-freeze risks.
⚡ Why Choose Flok?
- World-Class Performance: Benchmarked at an average tick rate of 2.076ms under load.
- Crash-Proof Safety: Includes a built-in 50,000 op-limit per script execution, preventing infinite loops from ever freezing your server thread.
- Smart Throttling: The
on player-moveevent is natively throttled to once per second per player, providing a massive TPS safety net. - Persistent Data: A global, human-readable storage system (
flok_data.yml) that survives restarts and force-stops. - Modern Java: Built on Java 21 to leverage the latest JVM optimizations.
🛠️ Key Features
- Asynchronous Delays: Fully functional
waiteffect for non-blocking script delays. - Event Cancellation: Full control over event flow with
cancelanduncancelsupport. - Custom Commands: Register commands with custom permissions, aliases, and descriptions on the fly.
- Addon API: A stable Java API for developers to register custom effects and fire custom events.
- Zero Restarts: Use
/flok reloadto update your scripts instantly without a server reboot.
📖 Quick Start
- Drop Flok-1.0.jar into your
pluginsfolder. - Restart the server to generate the
/plugins/Flok/scripts/directory. - Create a
.fkfile and start scripting!
on player-join:
send "&aWelcome to the server, %player-name%!"
if %first-join% is true:
broadcast "&e%player-name% joined for the first time!"
Documentation: https://flokdev-dev.github.io/flok/ Source Code: https://github.com/FlokDev-dev/flok
