Server API
by AuxAtlas
Server API is a Fabric library for server-side mods, offering a cancelable jump and sneak event for server players, plus a hotkey menu with teleport to spawn.
What it does
Server API hooks into server-side player actions. It exposes cancelable events for jumping and sneaking on ServerPlayerEntity, and a block break event through PlayerEvents.BLOCK_BREAK. Other mods can listen to these events to build their own server features.
The mod also ships a hotkey menu bound to Shift+F. It is disabled by default and is turned on through the ServerAPI config file. When enabled, the menu lets a player teleport to spawn; admins must first set the spawn through a menu opened from the ADMIN button at the top right. Using the menu requires either operator status or the serverapi.admin permission.
The library needs Fabric and is released under the GNU Lesser General Public License v3.0 only, so the source is open. It is server-side only: players join without installing it, and only the server runs it. The latest Fabric file is 1.0.10+1.21.1 for 1.21.1, and files cover 1.18.2 – 1.21.1 across nine release versions.
Key features
Cancelable jump event
Mods can listen for jumps by ServerPlayerEntity and cancel them when needed.
Cancelable sneak event
A sneak event on ServerPlayerEntity can also be canceled, giving other mods control over crouching.
Block break event
PlayerEvents.BLOCK_BREAK lets server-side mods react to block breaking before it happens.
Spawn teleport hotkey
An optional Shift+F menu lets players teleport to the spawn set by admins, once the config option is enabled.
Compatibility
Latest build for each game version and loader.
1.21.x1 of 1 version with builds
1.20.x2 of 2 versions with builds
1.19.x5 of 5 versions with builds
1.18.x1 of 1 version with builds
Only full game releases are shown. This mod publishes no snapshot builds.
Use cases
Server mod developers
Developers can build server features on the jump, sneak and block break events without writing the hooks themselves.
Server administrators
Admins can set the spawn from the ADMIN button and grant the serverapi.admin permission to chosen players.
Who it’s for: Server owners who want a teleport-to-spawn hotkey, and developers who write server-side Fabric mods that need player action events. The mod does nothing for clients that lack it, because players join without installing anything.
Questions
Does a player need Server API to join a server that runs it?
How is the spawn teleport hotkey enabled?
Which Minecraft versions does Server API support?
In the catalog
Server API is one of 3,514 Library mods on ModsFinder, and one of 2,348 Library mods for Fabric. 32,366 mods support Minecraft 1.21.1.
More from AuxAtlas
Similar mods
What the author says
The hotkey menu currently just allows users to teleport to spawn. In the future it will allow MUCH more including configuration screens for other server-side mods, alternative type of TPA, trading, dueling, and many others. To use the current "teleport to spawn" feature, admins must first set spawn in the menu via…
Official listing
- Modrinth page
- modrinth.com/mod/server-api
- Owner
- AuxAtlas
- Published
- 2022-10-24
- Updated on Modrinth
- 2024-08-30
- Facts verified
- 2026-10-15
