CommandAPI

v1.0.0·Updated 2026-02-11

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

  1. Unzip the archive from playbuff and read the bundled readme / instructions first.
  2. 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.
  3. For a manual install, put the mod files into the matching Mod / plugins folder inside the game directory.
  4. 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.

Dependencies

Install these first, or the mod will not work:

BepInEx-BepInExPack

File & checksum

Filename
CommandAPI-1.0.0.zip
File size
12.5 KiB
SHA-256
c73c915459da5a29c22d37d59e74d116ac50152635ee636f7f5ac401989d012f
Stored at
2026-10-12 00:52