Introduction

FlintMC is free, open-source server software for Minecraft: Java Edition, built around plugins you can load, update and unload while the server keeps running. It’s written from scratch: it isn’t based on Bukkit, Spigot, Paper or the vanilla server, and it contains no Mojang code.

What works today

FlintMC is an early prototype for Minecraft: Java Edition 26.3 (protocol 777). It:

  • shows up in the multiplayer server list with its MOTD, player count and ping;
  • lets players join, stand on a stone platform in an empty world, and chat;
  • has the vanilla commands that fit what exists so far, such as game mode, teleporting, bans, the whitelist, weather and time, with tab completion in the client;
  • loads plugins and hot-reloads them, handing their state from the old version to the new one, and rolls a reload back if it fails;
  • scans every plugin before loading it, and marks plugins that can’t be reloaded safely as needing a restart.

What doesn’t exist yet

  • Online mode. There is no login with Mojang accounts yet, so anyone who can reach the server can join under any name. Only run FlintMC on a network you trust.
  • A real world. Players can’t see each other or place and break blocks, and there is no terrain beyond the platform.
  • Survival gameplay. Inventories, items, mobs, health and damage.

All three are being worked on.

How it fits together

The server is split into modules for commands, the world, networking and chat, and you choose which ones run. Plugins never see the server’s own classes: each one runs in its own class loader and talks to the server only through the plugin API. That separation is what makes it possible to throw a plugin’s old code away during a hot reload.

Pre-built downloads aren’t available yet, so for now you build FlintMC from source. It takes a couple of minutes.

Requirements

  • JDK 21. The build uses a Gradle toolchain, so it finds an installed JDK 21 even if the java on your PATH is newer.
  • Git, to get the source.

Nothing else: the Gradle wrapper in the repository downloads Gradle the first time you use it.

Build the server

git clone https://github.com/thecontinentaldirectorate-dev/flint.git
cd flint
./gradlew :flint-server:installDist

On Windows, use gradlew.bat instead of ./gradlew.

The server ends up in flint-server/build/install/flint-server: start scripts in bin and the jars in lib. That folder is self-contained, so you can copy it anywhere. Next, run your first server.

This page assumes you’ve built FlintMC. You’ll need Minecraft: Java Edition 26.3 to join.

Start it

Make a folder for the server to run in. The server keeps its settings and files in the folder you start it from.

mkdir -p run/plugins
cd run
../flint-server/build/install/flint-server/bin/flint-server

On Windows, the start script is flint-server.bat. On the first start, the server:

  • writes a flint.properties with the default settings (see Configuration);
  • loads every jar in plugins/;
  • listens for Minecraft clients on port 25565.

The console accepts commands as soon as it logs Running at 20 ticks per second.

Join it

Open Minecraft 26.3, choose Multiplayer, then Add Server, and enter localhost, or the machine’s address from another computer. The server shows its MOTD, player count and ping. Clients on other versions see it too, marked as incompatible.

When you join, you spawn in creative mode on a 17×17 stone platform in an otherwise empty world. Anything you type in chat is shown to everyone.

Make yourself an operator

Operators can run the admin commands in game. Type this in the server console, with your player name:

op YourName

It works at once, even while you’re online, and it’s saved. Now try /gamemode survival, /time set night or /help in game. See Commands for the full list.

Stop it

Type stop in the console. The server saves its state and disconnects everyone.

Settings live in flint.properties, in the folder you start the server from. The server writes it with the defaults on the first start and never changes it after that. Edit it while the server is stopped; changes take effect on the next start.

Settings

KeyDefaultMeaning
modulescommands,world,network,chatThe modules to start, comma separated.
plugins.directorypluginsEvery jar in this folder is loaded at startup.
plugins.cache-directory.flint/cachePrivate copies of loaded jars, so the originals can be replaced while they’re loaded.
reload.step-budget-ms2000Time limit for each plugin lifecycle call. A load or reload that goes over it is aborted and rolled back.
network.host0.0.0.0The address to listen on. 0.0.0.0 means every network interface.
network.port25565The port to listen on.
status.motdA FlintMC serverThe text in the multiplayer server list.
status.max-players20The player limit. Logins beyond it are refused.
players.operators(none)Extra operators, comma separated. The op command is usually easier.
world.platform-radius8Blocks from the spawn column to the edge of the stone platform.
world.view-distance6How many chunks around them players receive, from 2 to 32.
network.keep-alive-interval-ms10000How often players are sent a keep-alive.
network.keep-alive-timeout-ms15000How long a player may take to answer a keep-alive before being disconnected.

The file is read as UTF-8. If it isn’t valid UTF-8, it’s read as ISO-8859-1 instead and a warning is logged.

The server list text

In status.motd, \n starts a second line and § colour codes work. If your editor doesn’t save UTF-8, write § as §.

Files the server writes

Commands save what they change next to flint.properties, at once, so it survives a restart. The server writes these files itself, which is why flint.properties stays exactly as you wrote it.

FileWhat it holds
ops.txtOperators added with op.
banned-players.txtBanned names, with the reasons.
banned-ips.txtBanned IP addresses, with the reasons.
whitelist.txtWhitelisted names.
server-state.propertiesThe default game mode, world spawn, spawn points, difficulty, whether the whitelist is on, the time and the weather.
.flint/The plugin jar cache, and which plugin builds have been marked restart required or forced to hot-reload.

The name lists hold one name or address per line, so you can edit them by hand while the server is stopped.

Upgrading from an early build? An older flint.properties keeps its old module list. Set modules=commands,world,network,chat to let players join and chat, or delete the file to get the new defaults.

A FlintMC plugin is a jar with a flint-plugin.properties file at its root. Plugins for Bukkit, Spigot or Paper don’t work on FlintMC, because it has its own plugin API.

At startup

Put the jar in the plugins folder and start the server. Every jar there is loaded, in file-name order.

While the server runs

Copy the jar into plugins, then load it from the console:

plugins load myplugin.jar

A bare file name is looked up in the plugins folder; a path works too. The plugin is enabled straight away, and players stay connected.

Updating and removing

The server loads a private copy of each jar, so you can overwrite the original at any time, even on Windows, where open files can’t normally be replaced. Copy the new jar over the old one and run plugins reload <name>; see Hot reloading.

To remove a plugin, run plugins unload <name>, then delete its jar. Otherwise it loads again on the next start.

Hot reloading replaces a running plugin with a new build of it, without restarting the server and without disconnecting anyone. Copy the new jar over the old one, then run:

plugins reload <name>

The server reloads from the jar the plugin was first loaded from.

What happens during a reload

  1. The running version is paused. Events meant for it are held back.
  2. The running version saves the state it wants to keep, as a snapshot.
  3. The new build is loaded and enabled with that snapshot. Anything it registers stays inactive for now.
  4. The server switches over: the old version is disabled, everything it registered is removed, the new version goes live, and the held-back events are delivered to it.

The console reports the new generation number and how long the reload took.

When a reload fails

If anything goes wrong before the switch, such as an exception, a missing class, a different plugin in the jar, or a step taking too long, the reload is rolled back. The new build is thrown away along with everything it registered, the old version carries on exactly as before, and the console says why.

Each step has a time limit, reload.step-budget-ms (2 seconds by default). The server doesn’t tick while a step runs, so plugins should keep their lifecycle code quick.

The leak check

After a version is retired, the server checks that its classes have been garbage collected, and logs the result. A plugin that keeps something alive after it’s unloaded, such as a thread the server doesn’t know about, fails the check. That build is then marked restart required.

Restart required

Before loading a jar, the server scans its bytecode for things a hot reload can’t clean up after:

  • threads or executors created without context.threads();
  • server types kept in static fields;
  • ThreadLocal;
  • shutdown hooks;
  • native code;
  • reaching for server classes outside the API;
  • System.exit.

A plugin with findings still loads and works, but it’s marked restart required: plugins reload and plugins unload refuse it and say why, and changes to it take effect when the server restarts. plugins check <name> shows the details.

The marking belongs to one exact build of the jar, identified by its SHA-256 hash, so a new build is scanned afresh. There are two ways to override it:

  • The plugin’s author can add hot-reload: true to flint-plugin.properties, to vouch that the findings are harmless. This overrides the scan, but not a leak that was actually observed.
  • An admin can run plugins force-hot-reload <name>, which overrides everything for the build that’s running now. plugins force-hot-reload <name> off takes it back.

Plugins are managed from the server console with the plugins command. Operators can run it in game too, with a slash.

CommandWhat it does
plugins, plugins listLists the loaded plugins with their version, generation, what each has registered, and the jar it came from. Plugins that need a restart are marked.
plugins load <file>Loads a jar. A bare file name is looked up in the plugins folder.
plugins reload <name>Reloads a plugin from the jar it was loaded from. See Hot reloading.
plugins unload <name>Unloads a plugin and removes everything it registered. A leak check runs in the background.
plugins check <name>Shows whether a plugin can be hot-reloaded, its jar’s SHA-256, and what the safety scan found.
plugins force-hot-reload <name> [on|off]Allows hot reloading of the running build despite the scan and the leak check, or takes that back.

Generations

Every load or successful reload creates a new instance of a plugin, called a generation. Generation numbers only identify instances in logs and in plugins list: they also go up when a reload fails, so they don’t count successful reloads.

The server is split into modules, and the modules setting in flint.properties chooses which ones start. By default all of them do.

ModuleWhat it does
commandsRuns commands from the console, players and plugins, including help, plugins and stop.
worldThe world players stand in: today an empty overworld with a stone platform around spawn.
networkListens for Minecraft clients, handles logins, keeps the player list, and provides the vanilla commands, bans and the whitelist.
chatBroadcasts chat messages, after plugins have had a chance to change or cancel them.

Running only some of them

  • Without world, the server still answers server list pings, but players can’t join.
  • Without chat, players who chat are told that chat is disabled.
  • Without commands, plugins still load and can register commands, but nothing can run them.
  • Without network, the server runs only the console and plugins.

Plugins work the same whichever modules run; a plugin asking for online players on a server without networking simply finds none.

Type commands in the server console without a slash, or in game with one, such as /help. /help lists the commands you may use.

Who can run what

  • Everyone may use help, list, msg (also tell and w) and me, and plugin commands that don’t need a permission.
  • The console and operators may use everything else.

To make someone an operator, run op <name>. It takes effect at once and is saved to ops.txt; deop <name> takes it back. Names listed in players.operators in flint.properties are operators too, and deop can’t remove those, so edit the file for them.

The server runs in offline mode, which doesn’t verify names, so anyone could log in under an operator’s name. Only make operators on a network you trust.

Targets and coordinates

Arguments for online players take a name or one of these selectors:

  • @a: everyone;
  • @p: yourself, or the first player when run from the console;
  • @r: a random player;
  • @s: yourself.

Selector options such as @a[distance=..5] aren’t supported yet. Coordinates can be relative to you with ~, as in tp ~ ~10 ~.

All commands

CommandWhat it does
helpLists the commands you can use.
listLists the players online.
msg <player> <message>Sends a private message. tell and w do the same.
me <action>Describes what you’re doing, as * name action.
say <message>Broadcasts a message as [name] message.
gamemode <mode> [player]Sets a game mode: survival, creative, adventure or spectator.
defaultgamemode <mode>Sets the game mode players get when they join.
tp [targets] <x y z>
tp [targets] <player>
Teleports players. teleport does the same.
setworldspawn [x y z]Sets the world spawn, where players without a spawn point appear. Uses your position if you leave the coordinates out.
spawnpoint [player] [x y z]Sets where a player appears when they join.
weather clear|rain|thunder [duration]Sets the weather. A duration such as 600, 30s or 1d ends it after that time.
time set|add <time>Sets or moves the time of day: ticks, 30s or 1d, and for set also day, noon, night or midnight.
time query daytime|gametime|dayShows the time.
difficulty [level]Shows or sets the difficulty: peaceful, easy, normal or hard.
seedShows the world seed. The flat world has none, so it’s 0.
kick <player> [reason]Disconnects a player.
ban <name> [reason]
pardon <name>
Bans or unbans a player by name, online or not.
ban-ip <address|player> [reason]
pardon-ip <address>
Bans or unbans an IP address. Banning kicks everyone connected from it.
banlist [players|ips]Lists bans.
whitelist on|off|add|remove|list|reloadManages the whitelist. While it’s on, only listed players and operators can join.
op <player>Makes a player an operator. With no name, lists the operators.
deop <player>Takes away a player’s operator rights.
plugins …Manages plugins; see Managing plugins.
stopStops the server.

Vanilla commands that need things FlintMC doesn’t have yet aren’t there, such as give, kill, summon, setblock, fill, effect and scoreboard. The difficulty is shown to players but changes nothing else yet, since there are no mobs or hunger.

The server shows as incompatible

FlintMC speaks one Minecraft version at a time, currently Java Edition 26.3. Players on other versions see the server in their list, marked as incompatible, and can’t join.

A modded client can’t join

Players need the vanilla 26.3 game data, because FlintMC relies on the copy every vanilla client has. A client that doesn’t have it, such as some modded clients, is disconnected with an explanation.

“Cannot listen on …” at startup

Another program, often another Minecraft server, is using the port. Stop it, or set a different network.port in flint.properties.

Players can’t join after an upgrade

An older flint.properties may not list the modules players need. Set modules=commands,world,network,chat, or delete the file to get the new defaults.

Rebuilding fails while the server runs

On Windows, a running server keeps its own jars open, so rebuilding the server into the same install folder fails. Stop the server with stop first. Plugin jars don’t have this problem: the server runs a private copy of each.

A plugin won’t reload or unload

It’s probably marked restart required. Run plugins check <name> to see why, and see Hot reloading for what you can do.

A reload is aborted for taking too long

Each step of a reload must finish within reload.step-budget-ms (2 seconds by default). Move slow work out of onEnable and onReload, or raise the limit.

Players are disconnected with “Timed out”

Their client didn’t answer a keep-alive within network.keep-alive-timeout-ms (15 seconds by default), usually because of a poor connection.

You need JDK 21 and Git. The Gradle wrapper in the repository downloads Gradle on first use. On Windows, use gradlew.bat instead of ./gradlew.

Build and test

git clone https://github.com/thecontinentaldirectorate-dev/flint.git
cd flint
./gradlew build

This compiles everything and runs the tests, including the hot-reload tests. To get a runnable server and the example plugin:

./gradlew :flint-server:installDist :examples:counter-plugin:jar

The server is then in flint-server/build/install/flint-server, and the plugin is examples/counter-plugin/build/libs/counter-plugin.jar.

Project layout

ProjectWhat it is
flint-apiThe only classes plugins can see. Plugins compile against it.
flint-coreThe kernel (tick loop, scheduler, event bus, modules), the plugin loader and reload transactions, and the world, network and chat modules.
flint-serverThe runnable server and its console.
examples/counter-pluginA sample plugin whose counter survives reloads.
toolsThe tool that extracts protocol data from Mojang’s server jar.

Protocol data

The packet ids, block states and registry names FlintMC uses come from a generated file, flint-core/src/main/resources/dev/flintmc/core/vanilla-data.txt. It’s made from Mojang’s official server jar for the supported version:

python tools/extract-vanilla-data.py --server-jar path/to/server.jar --java path/to/java

The tool needs Python 3.9 or later, and a Java version that can run that server jar (Java 25 for 26.3). It writes only names and numbers, so no Mojang code or data definitions end up in the repository. You only need it when moving FlintMC to a new Minecraft version.

A plugin is a jar with a main class that implements dev.flintmc.api.Plugin, and a flint-plugin.properties file. This page walks through a small one; the Plugin API reference covers everything it can use.

Get the API

The API isn’t published to a Maven repository yet. Either add your plugin as a project inside the FlintMC build, as examples/counter-plugin does, or build the API jar and compile against that:

./gradlew :flint-api:jar

The jar lands in flint-api/build/libs. Depend on it with compileOnly: the server provides the API at runtime, so it must not be bundled into your plugin.

// build.gradle.kts
plugins {
    java
}

java {
    toolchain.languageVersion = JavaLanguageVersion.of(21)
}

dependencies {
    compileOnly(files("libs/flint-api-0.1.0-SNAPSHOT.jar"))
}

Bundle any other library you use into your jar. A plugin can only see its own classes and the API.

Describe the plugin

Put flint-plugin.properties at the root of the jar, for example in src/main/resources:

name=hello
version=1.0.0
main=com.example.hello.HelloPlugin
  • name: 1 to 32 lowercase letters, digits, _ or -. Commands such as plugins reload hello use it.
  • version: any text.
  • main: the plugin class. It must be public, with a public no-argument constructor.
  • hot-reload: true (optional): you vouch that the plugin is safe to hot-reload even if the safety scan flags it. See Hot reloading.

Write the plugin

package com.example.hello;

import dev.flintmc.api.Context;
import dev.flintmc.api.Plugin;
import dev.flintmc.api.event.PlayerJoinEvent;

public final class HelloPlugin implements Plugin {

    @Override
    public void onEnable(Context context) {
        // Greet everyone who joins.
        context.events().listen(PlayerJoinEvent.class, event ->
                context.players().get(event.playerId())
                        .ifPresent(player -> player.sendMessage("Welcome, " + event.playerName() + "!")));

        // Anyone may run /hello; only the console and operators may run /secret.
        context.commands().register("hello", "Say hello",
                (source, args) -> source.reply("Hello, " + source.name()));
        context.commands().register("secret", "Operators only", "hello.secret",
                (source, args) -> source.reply("You found it."));
    }
}

Build the jar, copy it into the server’s plugins folder and run plugins load hello.jar, or restart the server.

Make it safe to reload

Everything you register through the context, such as listeners, commands, tasks and threads, is removed for you when the plugin is unloaded or replaced. To keep a plugin hot-reloadable:

  • Save the state you want to keep in onReload, and restore it from context.snapshot() in onEnable. Don’t tear anything down in onReload: if the reload fails, the same instance keeps running.
  • Release anything the server doesn’t track, such as open files or connections, in onDisable.
  • Create threads only with context.threads(), never with new Thread or an executor.
  • Don’t keep the context, or anything it gave you, in static fields.

The Plugin API reference explains why, and examples/counter-plugin in the repository is a complete example that keeps a counter across reloads.

FlintMC’s source is on GitHub. A few rules apply to every change:

  • Licence. FlintMC is licensed under GPL-3.0-only, and so are contributions to it.
  • Source headers. Every source file starts with the project header:
    /*
     * FlintMC - Minecraft Java server software with hot-swappable plugins
     * Copyright (C) 2026 FlintMC contributors
     * SPDX-License-Identifier: GPL-3.0-only
     */
  • Written from scratch. Don’t contribute code copied from Minecraft itself, including the decompiled game code inside other server projects. Protocol facts come from the generated data file instead; see Building from source.
  • Tests. ./gradlew build must pass, and new behaviour should come with tests.