Skip to content
Flint
Latest version v1.0.0

Scripts that feel like Python.Performance that feels like Java.

Flint is a script engine for Paper, Folia and Velocity. Write events, commands, menus and databases in a clean language, and get bytecode speed, non-blocking SQL and full access to the server API.

modules
27
modules
events
78
events
types
20
types
functions
146
functions
plugins/Flint/scripts/shop.fl
import menus, items, time

persist coins = {}

on player.join:
    wait 2 seconds
    player.title("<gold>Welcome!", "<gray>{time.format("HH:mm")}")

command shop:
    executor "player"
    cooldown 3 seconds
    m = menus.create("<dark_green>Shop", 3)
    m.border("black_stained_glass_pane")
    m.button(13, items.of("diamond", 1, "<aqua>Diamond"), buy, 100)
    m.open(sender)

fn buy(p, price):
    if (coins[p.uuid] or 0) < price:
        return p.sound("entity.villager.no")
    coins[p.uuid] -= price
    p.give("diamond")

Everything a server needs, built in

Compiled, not interpreted

A one-pass parser and a bytecode VM. Variables are array slots and module functions are resolved at load.

wait never freezes

'wait 5 seconds' and database calls pause only that script, even in the middle of an expression.

Menus without boilerplate

Buttons call your functions directly. Pages, borders and confirm dialogs come for free.

SQL that never blocks

MySQL, MariaDB, PostgreSQL and SQLite on a connection pool, resumed on the right thread.

Paper and Velocity together

The same language on the proxy and the backends, with messages between them.

Nothing is out of reach

Any event by class name, any method of the server API, plus an addon API for Java developers.

Coming from Skript?

Most Skript addons are built in: menus, Vault, PlaceholderAPI, files, regex, recipes, cooldowns and reflection.

See the comparison →

SQL that never blocks

MySQL, MariaDB, PostgreSQL and SQLite on a connection pool, resumed on the right thread.

import db

on load:
    stats = db.get("main")

command kills(target: player = sender):
    # pauses this command only, never the server
    row = stats.first("SELECT n FROM kills WHERE uuid = ?", [target.uuid])
    send "{target.name}: {row.n if row else 0} kills" to sender

A real editor experience

The VS Code extension completes modules, members and events, shows docs on hover and catches errors before you reload.