CommandAPI
Framework for registering and handling slash commands — other mods depend on this to add /commands to chat
About this mod Author’s original text
CommandAPI for On-Together
framework for adding slash commands to On-Together — register commands from any mod, and they just work in chat
what it do
- Intercepts chat messages starting with / and routes them to the right mod
- Mods register commands with CommandRegistry.Register() — name, category, handler, description, and typed parameters
- Handles argument validation, error messages, and sends feedback to chat
- Other mods like ChatResizer, UIScaler, etc. depend on this to add their own commands
installation
mod manager installation (recommended)
- Install via mod manager (search "CommandAPI")
- Launch the game through ur favorite mod manager (r2modman,, etc.)
manual installation
- Install BepInEx 5.x
- Extract CommandAPI.dll to BepInEx/plugins/
- Launch the game
for developers
add CommandAPI as a dependency and register your commands:
CommandRegistry.Register(
name: "mycommand",
category: "My Category", // UI, Gameplay, etc.
handler: args => { / do stuff / },
description: "does a thing",
parameters: new Parameter
{
new Parameter("value", ParameterType.Float, isOptional: true)
}
);
types available: String, Int, Float, Bool
CommandAPI handles the / prefix interception, argument splitting, and validation — your handler just gets a string of args.
credz
GigaPuff for a great game
jai.gay for the command api
gays for existing
changes
1.0.0
- Initial release
- Command registry, argument validation, chat notifications
Install & use Install: follow the bundled instructions
- Unzip the archive from playbuff and read the bundled readme / instructions first.
- Most mods rely on the game's mod loader — the usual route is a community mod manager (such as r2modman): pick this game, install, and it handles the loader and dependencies.
- For a manual install, put the mod files into the matching Mod / plugins folder inside the game directory.
- Launch the game to confirm it loaded; mods with listed dependencies need those installed as well.
Install locations vary a lot between mods — the bundled readme is the most reliable guide.
Install these first, or the mod will not work: