Core & World Commands
Syntax, permissions, tab-completion, and behavior of /apis, /world, /tpworld, and /setworldspawn.
All built-in commands register during DedicatedServer.initServer() via ApisCommand.register(this). World commands default to PermissionDefault.OP and check access via ApisMessageRenderer.hasAccess (sender.isOp() || sender.hasPermission(permission)).
/apis (alias: /ap)
Section titled “/apis (alias: /ap)”Inspect FeatureRegistry state and reload configs/apis.yml + config sync without restarting.
- Permission:
apis.admin(checked viaCommand#testPermission(sender)) - Syntax:
/apis [status | reload]
- Subcommands:
/apisor/apis status- prints active kill-switch count and full list (FeatureRegistry.activeKillSwitches()), including non-default dimension lists (enabled,always-ticking,never-ticking) andentities.ai.type-filter./apis reload- runsApisConfig.reload(), re-resolvesFeatureRegistry.resolveRegistries(...), runsApisConfigSync.syncAll(server)across loaded worlds, and prints the updated kill-switch count.
- Tab-complete: suggests
statusandreloadfor the first arg when sender hasapis.admin.
/world
Section titled “/world”Manage standalone world lifecycle inside worlds/ without external plugins.
- Permission:
apis.command.world(OP) - Requirement: works only when
dimensions.mode: standalone; returnsmessages.commands.world-standalone-onlyinvanillamode. - Syntax:
/world <load <world> | unload <world> | reload [world]>
Subcommands
Section titled “Subcommands”/world load <world>- Rejects already-loaded worlds (
world-already-loaded). - Resolves the folder in
worlds/case-insensitively and validatesIdentifier.tryParse("minecraft:" + normalizedKey). - Loads the world with
ApisVoidChunkGenerator,VOID_BIOME_PROVIDER, andgenerateStructures(false), applyingworlds/<world>/world.yml.
- Rejects already-loaded worlds (
/world unload <world>- Blocks unloading
fallback-world(world-unload-fallback-forbidden). - Verifies
fallback-worldis loaded (world-fallback-not-configured). - Evacuates all players in the target world to the fallback world’s spawn.
- Unloads the world (
saveChunksfollowsstorage.world-saving) and clearsWORLD_CACHE/DIMENSION_FOLDERS.
- Blocks unloading
/world reload <world>- For
fallback-world: reloadsworld.yml, spawn, and game mode without unloading chunks (world-reload-fallback-notice). - If the folder was removed from disk: evacuates players and unloads with
save=false(world-reload-missing-unloaded). - For existing extra worlds: evacuates players to fallback, unloads with
save=false, reloads from disk, and moves players back to spawn (world-reload-single-success).
- For
/world reload(no args)- Syncs the entire
worlds/folder: unloads removed worlds, reloads existing extra worlds, loads newly added world folders, and refreshesworld.ymlon the fallback world.
- Syncs the entire
- Tab-complete:
args[0]:load,unload,reloadargs[1]forload: unloaded valid folders inworlds/args[1]forunload: loaded worlds excludingfallback-worldargs[1]forreload: all loaded worlds inworlds/
/tpworld
Section titled “/tpworld”Async teleport between loaded standalone worlds.
- Permission:
apis.command.tpworld(OP) - Syntax (1, 2, 4, 5, 6, or 7 args):
/tpworld <world> [<player>] [<x> <y> <z>] [<yaw> <pitch>]
- Behavior:
- resolves target world via
StandaloneWorldManager.resolveLoadedStandaloneWorld(server, args[0]); - uses
<player>for 2, 5, or 7 args; otherwise requires a player sender (player-only); - defaults to the target world’s
world.ymlspawn when no coordinates are given (1 or 2 args); - when
<x> <y> <z>is passed without<yaw> <pitch>, keeps self camera orientation or defaults toyaw=0, pitch=0for another player; - teleports asynchronously via
targetPlayer.teleportAsync(destination, TeleportCause.COMMAND).
- resolves target world via
- Tab-complete:
args[0]loaded worlds,args[1]online players, followed by current coordinates and rotation angles.
/setworldspawn (standalone override)
Section titled “/setworldspawn (standalone override)”In dimensions.mode: standalone, SetWorldSpawnOverrideCommand overrides vanilla /setworldspawn while keeping the vanilla command registered as minecraft:setworldspawn in SimpleCommandMap.
- Permission:
apis.command.setspawn(OP) - Syntax (0, 3, or 5 args; player-only):
/setworldspawn [<x> <y> <z>] [<yaw> <pitch>]
- Behavior: writes exact decimal
x, y, z, yaw, pitchatomically (via.tmp+ATOMIC_MOVE/REPLACE_EXISTING) toworlds/<world>/world.yml, updates the cached world config, and callslevel.setRespawnData(...).