command

package
v0.0.0-...-c66ec32 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 25, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCmd

func RegisterCmd()

Types

type CameraClearCommand

type CameraClearCommand struct {
	Player enum.PlayerSelector
	Clear  enum.Clear
}

func (CameraClearCommand) Allow

func (CameraClearCommand) Allow(source cmd.Source) bool

func (CameraClearCommand) Run

func (c CameraClearCommand) Run(source cmd.Source, output *cmd.Output)

type CameraSetCommand

type CameraSetCommand struct {
	Player   enum.PlayerSelector
	Set      enum.Set
	Preset   enum.CameraPreset
	Pos      enum.Pos
	Position mgl64.Vec3
}

func (CameraSetCommand) Allow

func (CameraSetCommand) Allow(source cmd.Source) bool

func (CameraSetCommand) Run

func (c CameraSetCommand) Run(source cmd.Source, output *cmd.Output)

type GamemodeCommand

type GamemodeCommand struct {
	GameMode enum.Gamemode
	Player   cmd.Optional[enum.PlayerSelector]
}

func (GamemodeCommand) Allow

func (GamemodeCommand) Allow(source cmd.Source) bool

func (GamemodeCommand) Run

func (c GamemodeCommand) Run(source cmd.Source, output *cmd.Output)

type GetPosCommand

type GetPosCommand struct {
}

func (GetPosCommand) Run

func (c GetPosCommand) Run(source cmd.Source, output *cmd.Output)

type KickCommand

type KickCommand struct {
	Player  enum.PlayerSelector
	Message cmd.Optional[cmd.Varargs]
}

func (KickCommand) Allow

func (KickCommand) Allow(source cmd.Source) bool

func (KickCommand) Run

func (c KickCommand) Run(source cmd.Source, output *cmd.Output)

type MsgCommand

type MsgCommand struct {
	Player  enum.PlayerSelector
	Message cmd.Varargs
}

func (MsgCommand) Run

func (c MsgCommand) Run(source cmd.Source, output *cmd.Output)

type PermissionCommand

type PermissionCommand struct {
	Player enum.PlayerSelector
	Level  int
}

func (PermissionCommand) Allow

func (PermissionCommand) Allow(source cmd.Source) bool

func (PermissionCommand) Run

func (c PermissionCommand) Run(source cmd.Source, output *cmd.Output)

type StopCommand

type StopCommand struct {
}

func (StopCommand) Allow

func (StopCommand) Allow(source cmd.Source) bool

func (StopCommand) Run

func (c StopCommand) Run(source cmd.Source, output *cmd.Output)

type SummonCommand

type SummonCommand struct {
	// contains filtered or unexported fields
}

func (SummonCommand) Allow

func (SummonCommand) Allow(source cmd.Source) bool

func (SummonCommand) Run

func (c SummonCommand) Run(source cmd.Source, output *cmd.Output)

type TpCommand

type TpCommand struct {
	Pos mgl64.Vec3
}

func (TpCommand) Allow

func (TpCommand) Allow(source cmd.Source) bool

func (TpCommand) Run

func (c TpCommand) Run(source cmd.Source, output *cmd.Output)

type TpPlayerCommand

type TpPlayerCommand struct {
	Player enum.PlayerSelector
	// contains filtered or unexported fields
}

func (TpPlayerCommand) Allow

func (TpPlayerCommand) Allow(source cmd.Source) bool

func (TpPlayerCommand) Run

func (c TpPlayerCommand) Run(source cmd.Source, output *cmd.Output)

type VersionCommand

type VersionCommand struct {
}

func (VersionCommand) Run

func (c VersionCommand) Run(source cmd.Source, output *cmd.Output)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL