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.
Quick challenge
How far can you run before the mobs catch you?
Minecraft check
Confirm your run
Complete the quick check to get your code.
flok
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?
* Modern Java: Benchmarked at an average tick rate of Modern Java: under load. * Modern Java: Includes a built-in Modern Java: per script execution, preventing infinite loops from ever freezing your server thread. * Modern Java: The `on player-move` event is natively throttled to once per second per player, providing a massive TPS safety net. * Modern Java: 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
* Zero Restarts: Fully functional `wait` effect for non-blocking script delays. * Zero Restarts: Full control over event flow with `cancel` and `uncancel` support. * Zero Restarts: Register commands with custom permissions, aliases, and descriptions on the fly. * Zero Restarts: A stable Java API for developers to register custom effects and fire custom events. * Zero Restarts: Use `/flok reload` to update your scripts instantly without a server reboot.
Quick Start
1. Drop Flok-1.0.jar into your `plugins` folder. 2. Restart the server to generate the `/plugins/Flok/scripts/` directory. 3. Create a `.fk` file and start scripting!
```fk 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?
* Modern Java: Benchmarked at an average tick rate of Modern Java: under load. * Modern Java: Includes a built-in Modern Java: per script execution, preventing infinite loops from ever freezing your server thread. * Modern Java: The `on player-move` event is natively throttled to once per second per player, providing a massive TPS safety net. * Modern Java: 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
* Zero Restarts: Fully functional `wait` effect for non-blocking script delays. * Zero Restarts: Full control over event flow with `cancel` and `uncancel` support. * Zero Restarts: Register commands with custom permissions, aliases, and descriptions on the fly. * Zero Restarts: A stable Java API for developers to register custom effects and fire custom events. * Zero Restarts: Use `/flok reload` to update your scripts instantly without a server reboot.
Quick Start
1. Drop Flok-1.0.jar into your `plugins` folder. 2. Restart the server to generate the `/plugins/Flok/scripts/` directory. 3. Create a `.fk` file and start scripting!
```fk 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