Vampire Command Framework Mod for V Rising
Details :
Vampire Command Framework: Empower Your Server with Custom Commands
The Vampire Command Framework is a powerful tool designed for server operators and plugin developers alike, offering a comprehensive command framework for creating universal commands with ease.
For Server Operators:
- Installation: Simply install the framework into the BepInEx/plugins folder and keep it up to date. It serves as a required component for other plugins that utilize commands.
- Future Configurations: Expect more universal configurations in the future to manage commands across multiple plugins efficiently.
For Plugin Developers:
How to Use:
- Add a reference to the plugin:
dotnet add package VRising.VampireCommandFramework
- Set the plugin as a dependency in your plugin class:
[BepInDependency("gg.deca.VampireCommandFramework")]
- Register your plugin when loading is complete:
CommandRegistry.RegisterAll()
- Write commands:
[Command("foo")] public void Foo(ICommandContext ctx, int count, string orValues = "with defaults", float someFloat = 3f) => ctx.Reply($"You'd do stuff here with your parsed {count} and stuff");
Middleware:
Commands execute through a pipeline of middleware, allowing for customization and additional functionality. You can add your middleware by implementing the ICommandMiddleware interface and adding it to the CommandRegistry.Middlewares list. This enables you to implement features like cooldowns, permissions, logging, and more.
Empower your server with custom commands and streamline your administrative tasks using the Vampire Command Framework!