Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import/disable/overwrite commands #106

Open
Volte6 opened this issue Sep 26, 2024 · 0 comments
Open

Import/disable/overwrite commands #106

Volte6 opened this issue Sep 26, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Volte6
Copy link
Owner

Volte6 commented Sep 26, 2024

Goal

  • allow native commands to be disabled via a config file
  • allow commands to be defined in script files (currently only native code)
  • scripted commands will be enabled via config file

Rough plans

Scripted command entries will be defined as key/value pairs where:

  • key = command (alphanumeric)
  • value = path to script
    • path to script file.
    • consider using path "disabled" or otherwise to disabled native commands
    • consider allowing overwriting native commands in this manner.

Script exports

  • OnCommand(rest, actor)
  • AdminOnly (bool) - is this an admin/mod only command?
  • WhenDowned (bool) - can this be invoked when downed?
  • AllowUser (bool) - available to users?
  • AllowMob (bool) - available to mobs?
  • Requires ([]string) - a list of dependency commands required for this command to work.
@Volte6 Volte6 added the enhancement New feature or request label Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant