On-Together: Virtual Co-Working
Install

Details

Last Updated
First Uploaded
Downloads
676
Likes
0
Size
13KB
Dependency string
jaide-CommandAPI-1.0.0
Dependants

Categories

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)

  1. Install via mod manager (search "CommandAPI")
  2. Launch the game through ur favorite mod manager (r2modman, thunderstore, etc.)

manual installation

  1. Install BepInEx 5.x
  2. Extract CommandAPI.dll to BepInEx/plugins/
  3. 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
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.