Skip to content

story-network/pancake-launcher

Repository files navigation

Pancake Launcher

Portable custom Minecraft server launcher with Mixin and official obfuscation map applied.

Usage

java -Xmx2G -Xms2G -jar pancake-launcher.jar <server.jar> [args]

Implementing custom server

Custom server JAR must provide target_version resource for detecting capable Minecraft server version. Also register IPancakeServer service with proper implementation.

Sample implementation below

import java.util.function.Consumer;

public class SampleServer implements IPancakeServer {

    @Override
    public void start(String[] args, Consumer<URL> addURL, Runnable finishMixin) {
        // Add additional libraries, mods to server classpath.
        // addURL(...);

        // Finish mixin registration.
        finishMixin.run();

        System.out.println("Launching server...");

        // Start vanilla MC server
        net.minecraft.server.Main.main(args);
    }
    
}

About

Portable custom Minecraft server launcher with Mixin

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages