Command

Tab Complete

Load

Command
Scripting
Command

/kit create <id> [mode] [-i]

Creates a new kit with a given ID and adds an optional kit mode (see Kit Modes)

Kit IDs are case-insensitive. Only one kit can exist with a given id.

  • -i will set the kits contents to the items in your inventory

Scripting

- run drustcraft.tab_complete.load

Creates a new kit with a given ID and adds an optional kit mode (see Kit Modes)

Kit IDs are case-insensitive. Only one kit can exist with a given id.

  • items A list of items to use to set the kits contents.

Determinations

  • err_not_permitted - Player does not have permission for this command

  • err_id_missing - No kit id was passed to the task

  • err_id_exists - Kit id already exists

  • err_kit_mode_invalid - Kit mode is not a valid mode (see Kit Modes)

Add

Command
Scripting
Command

/kit create <id> [mode] [-i]

Creates a new kit with a given ID and adds an optional kit mode (see Kit Modes)

Kit IDs are case-insensitive. Only one kit can exist with a given id.

  • -i will set the kits contents to the items in your inventory

Scripting

- run drustcraft.tab_complete.add def:<cmd-name>|<string>|...

Strings are text options the user can enter or a procedure to call which determines a list of strings:

_*<procname> - a single list
_^<procname> - a list that the user can combine items with a comma. Only a single list item can be entered
_&<procname> - a list that the user can combine items with a comma.

Creates a new kit with a given ID and adds an optional kit mode (see Kit Modes)

Kit IDs are case-insensitive. Only one kit can exist with a given id.

  • items A list of items to use to set the kits contents.

Determinations

  • err_not_permitted - Player does not have permission for this command

  • err_id_missing - No kit id was passed to the task

  • err_id_exists - Kit id already exists

  • err_kit_mode_invalid - Kit mode is not a valid mode (see Kit Modes)

Show what tab complete functions there are to use as well as a command template

qldminecraft.command.add def:command|scriptname
qldminecraft.command.alias def:alias|command
qldminecraft.command.tabcomplete def:option|option|...
_*function = show the determination
_^function = show the determination, allow multiple times using a comma but do not show any existing
_&function = show the determination, allow multiple times using a comma and show any existing as well

Tabcomplete

_*<function> - Inserts a single list in tab complete

_&<function> - As * but allows the list to be be included multiple times by using a , character like world edit set command

_^<function> - As _& but the list excludes the previous items each time

drustcraft_cmd_group:
type: command
debug: false
name: group
description: Modifies player groups
usage: /group (create|remove|list|info|addmember|removemember|addowner|removeowner) <&lt>id<&gt> [<&lt>player<&gt>]
permission: drustcraft.group
permission message: <&c>I'm sorry, you do not have permission to perform this command
tab complete:
- define command:group
- determine <proc[drustcraft_tab_complete].context[<list[<[command]>|drustcraft_tab_complete].include_single[<context.raw_args.escaped>]>]>
script:
- choose <context.args.get[1]||<empty>>:
drustcraft_tab_complete_pageno:
type: procedure
debug: false
script:
- determine <list[1|2|3|4|5|6|7|8|9]>

qmp_command_tabcomplete_number: type: procedure debug: false script:

  • determine

  • number

  • boolean

  • switch (on|off)

  • players

  • materials