Skip to content

SFabricAPI

JumpWatch edited this page Apr 23, 2026 · 1 revision

SFabricAPI

SFabricAPI is the public integration layer for plugins that want to work with ServerFabric.

It is intended to prevent plugins from depending on:

  • raw host HTTP
  • proxy internals
  • private message formats

Main entry point

SFabric.isAvailable()
SFabric.get()

Basic usage

import dev.jumpwatch.serverfabric.api.SFabric;
import dev.jumpwatch.serverfabric.api.SFabricAPI;

if (SFabric.isAvailable()) {
    SFabricAPI api = SFabric.get();
}

Current capabilities

  • get instances
  • get hosts
  • get templates
  • get instance stats
  • create instances
  • start / stop / restart / kill instances
  • send commands

Runtime model

  • serverfabricapi is the compile-time dependency
  • ServerFabricProxy provides the runtime implementation

Clone this wiki locally