Versions in this module Expand all Collapse all v1 v1.0.1 Jul 30, 2026 v1.0.0 Jul 30, 2026 Changes in this version + var MessageBooleanInvalid = chat.Translate(str("%commands.generic.boolean.invalid"), 1, `'%v' is not true or false`).Enc("<red>> %v</red>") + var MessageNoTargets = chat.Translate(str("%commands.generic.noTargetMatch"), 0, `No targets matched selector`).Enc("<red>%v</red>") + var MessageNumberInvalid = chat.Translate(str("%commands.generic.num.invalid"), 1, `'%v' is not a valid number`).Enc("<red>> %v</red>") + var MessageParameterInvalid = chat.Translate(str("%commands.generic.parameter.invalid"), 1, `'%v' is not a valid parameter`).Enc("<red>> %v</red>") + var MessagePlayerNotFound = chat.Translate(str("%commands.generic.player.notFound"), 0, `That player cannot be found`).Enc("<red>> %v</red>") + var MessageSyntax = chat.Translate(str("%commands.generic.syntax"), 3, `Syntax error: unexpected value: at "%v>>%v<<%v"`).Enc("<red>%v</red>") + var MessageUnknown = chat.Translate(str("%commands.generic.unknown"), 1, `Unknown command: "%v": Please check that the command exists and that you have permission to use it.`).Enc("<red>%v</red>") + var MessageUsage = chat.Translate(str("%commands.generic.usage"), 1, `Usage: %v`).Enc("<red>%v</red>") + func Commands() map[string]Command + func Register(command Command) + func Unregister(name string) + type Allower interface + Allow func(src Source) bool + type Command struct + func ByAlias(alias string) (Command, bool) + func New(name, description string, aliases []string, r ...Runnable) Command + func (cmd Command) Aliases() []string + func (cmd Command) Description() string + func (cmd Command) Execute(args string, source Source, tx *world.Tx) + func (cmd Command) Name() string + func (cmd Command) Params(src Source) [][]ParamInfo + func (cmd Command) Runnables(src Source) map[int]Runnable + func (cmd Command) String() string + func (cmd Command) Usage() string + type Enum interface + Options func(source Source) []string + Type func() string + type Line struct + func (line *Line) Leftover() []string + func (line *Line) Len() int + func (line *Line) Next() (string, bool) + func (line *Line) NextN(n int) ([]string, bool) + func (line *Line) RemoveN(n int) + func (line *Line) RemoveNext() + func (line *Line) SyntaxError() error + func (line *Line) UsageError() error + type MobNameEnum string + func (MobNameEnum) Options(Source) []string + func (MobNameEnum) Type() string + type NamedTarget interface + Name func() string + type Optional struct + func (o Optional[T]) Load() (T, bool) + func (o Optional[T]) LoadOr(or T) T + type Output struct + func (o *Output) Error(a ...any) + func (o *Output) ErrorCount() int + func (o *Output) Errorf(format string, a ...any) + func (o *Output) Errors() []error + func (o *Output) Errort(t chat.Translation, a ...any) + func (o *Output) MessageCount() int + func (o *Output) Messages() []fmt.Stringer + func (o *Output) Print(a ...any) + func (o *Output) Printf(format string, a ...any) + func (o *Output) Printt(t chat.Translation, a ...any) + type ParamDescriber interface + DescribeParams func(src Source) []ParamInfo + type ParamInfo struct + Name string + Optional bool + Suffix string + Value any + type Parameter interface + Parse func(line *Line, v reflect.Value) error + Type func() string + type Runnable interface + Run func(src Source, o *Output, tx *world.Tx) + type Source interface + SendCommandOutput func(o *Output) + type SubCommand struct + type Summon struct + Mob MobNameEnum + func (s Summon) Run(src Source, o *Output, tx *world.Tx) + type Target interface + Position func() mgl64.Vec3 + type Varargs string