framework for adding slash commands to On-Together — register commands from any mod, and they just work in chat
/ and routes them to the right modCommandRegistry.Register() — name, category, handler, description, and typed parametersCommandAPI.dll to BepInEx/plugins/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.
GigaPuff for a great game
jai.gay for the command api
gays for existing