-
Notifications
You must be signed in to change notification settings - Fork 0
SFabricAPI
JumpWatch edited this page Apr 23, 2026
·
1 revision
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
SFabric.isAvailable()
SFabric.get()import dev.jumpwatch.serverfabric.api.SFabric;
import dev.jumpwatch.serverfabric.api.SFabricAPI;
if (SFabric.isAvailable()) {
SFabricAPI api = SFabric.get();
}- get instances
- get hosts
- get templates
- get instance stats
- create instances
- start / stop / restart / kill instances
- send commands
-
serverfabricapiis the compile-time dependency -
ServerFabricProxyprovides the runtime implementation