Skip to content

Add OnCommandRegistered() forward #1481

@dragokas

Description

@dragokas

Use case: !COMMAND eater.

When some plugin gets dynamically loaded/unloaded we have no way to identify what commands are added other than making a full commands enumeration with a significant CPU cycle loss. We don't even know when to do such enumeration, because no OnPluginLoaded() forward exists at all (second problem).

So, I suggest to add:

forward OnCommandRegistered(char[] name)

forward OnCommandUnregistered(char[] name)

making life much easy.

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions