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 + func LoadPlugins(srv *Server) + func SetPluginDir(dir string) + func SetServer(srv *Server) + func ShutdownPlugins() + type Allower interface + Allow func(addr net.Addr, d login.IdentityData, c login.ClientData) (string, bool) + type BanListEnum string + func (BanListEnum) Options(cmd.Source) []string + func (BanListEnum) Type() string + type BlockName string + func (BlockName) Options(cmd.Source) []string + func (BlockName) Type() string + type Bool string + func (Bool) Options(cmd.Source) []string + func (Bool) Type() string + type CmdName string + func (CmdName) Options(src cmd.Source) []string + func (CmdName) Type() string + type Config struct + Allower Allower + AuthDisabled bool + BehindProxy bool + Blocks world.BlockRegistry + ChunkLoadWorkers int + ChunkUnloadInterval time.Duration + Compression packet.Compression + DisableResourceBuilding bool + Entities world.EntityRegistry + Generator func(dim world.Dimension) world.Generator + JoinMessage chat.Translation + Listeners []func(conf Config) (Listener, error) + Log *slog.Logger + MaxChunkRadius int + MaxPlayers int + MuteEmoteChat bool + Name string + PlayerProvider player.Provider + QuitMessage chat.Translation + RandomTickSpeed int + ReadOnlyWorld bool + Resources []*resource.Pack + ResourcesRequired bool + SaveInterval time.Duration + ShutdownMessage chat.Translation + StatusProvider minecraft.ServerStatusProvider + WorldProvider world.Provider + func (conf Config) New() *Server + type DamageCauseEnum string + func (DamageCauseEnum) Options(cmd.Source) []string + func (DamageCauseEnum) Type() string + type DefaultGameModeEnum string + func (DefaultGameModeEnum) Options(cmd.Source) []string + func (DefaultGameModeEnum) Type() string + type DifficultyEnum string + func (DifficultyEnum) Options(cmd.Source) []string + func (DifficultyEnum) Type() string + type EffectEnum string + func (EffectEnum) Options(cmd.Source) []string + func (EffectEnum) Type() string + type Enchant string + func (Enchant) Options(cmd.Source) []string + func (Enchant) Type() string + type EntityEvent string + func (EntityEvent) Options(cmd.Source) []string + func (EntityEvent) Type() string + type GameRule string + func (GameRule) Options(cmd.Source) []string + func (GameRule) Type() string + type GamemodeEnum string + func (GamemodeEnum) Options(cmd.Source) []string + func (GamemodeEnum) Type() string + type Gma struct + func (Gma) Run(src cmd.Source, o *cmd.Output, _ *world.Tx) + type Gmc struct + func (Gmc) Run(src cmd.Source, o *cmd.Output, _ *world.Tx) + type Gms struct + func (Gms) Run(src cmd.Source, o *cmd.Output, _ *world.Tx) + type Gmsp struct + func (Gmsp) Run(src cmd.Source, o *cmd.Output, _ *world.Tx) + type HudElementEnum string + func (HudElementEnum) Options(cmd.Source) []string + func (HudElementEnum) Type() string + type InputPermissionEnum string + func (InputPermissionEnum) Options(cmd.Source) []string + func (InputPermissionEnum) Type() string + type ItemName string + func (ItemName) Options(cmd.Source) []string + func (ItemName) Type() string + type Listener interface + Accept func() (session.Conn, error) + Disconnect func(conn session.Conn, reason string) error + type LocateEnum string + func (LocateEnum) Options(cmd.Source) []string + func (LocateEnum) Type() string + type MaskMode string + func (MaskMode) Options(cmd.Source) []string + func (MaskMode) Type() string + type MobEventEnum string + func (MobEventEnum) Options(cmd.Source) []string + func (MobEventEnum) Type() string + type MobName string + func (MobName) Options(cmd.Source) []string + func (MobName) Type() string + type MusicAction string + func (MusicAction) Options(cmd.Source) []string + func (MusicAction) Type() string + type OldBlockHandling string + func (OldBlockHandling) Options(cmd.Source) []string + func (OldBlockHandling) Type() string + type PackStackEnum string + func (PackStackEnum) Options(cmd.Source) []string + func (PackStackEnum) Type() string + type ParticleType string + func (ParticleType) Options(cmd.Source) []string + func (ParticleType) Type() string + type Permission string + func (Permission) Options(cmd.Source) []string + func (Permission) Type() string + type PermissionAction string + func (PermissionAction) Options(cmd.Source) []string + func (PermissionAction) Type() string + type PermissionBoolEnum string + func (PermissionBoolEnum) Options(cmd.Source) []string + func (PermissionBoolEnum) Type() string + type Plugin interface + Meta func() PluginMeta + OnDisable func() + OnEnable func() + OnLoad func(ctx PluginContext) + OnUnload func() + func AllPlugins() []Plugin + func LoadPlugin(path string) (_ Plugin, loadErr error) + func PluginByName(name string) (Plugin, bool) + func ReloadPlugin(name string, srv *Server) (_ Plugin, reloadErr error) + func UnloadPlugin(name string) (Plugin, bool) + type PluginContext struct + DataFolder string + Logger *slog.Logger + Server *Server + type PluginMeta struct + Authors []string + Dependencies []string + Description string + Name string + Version string + Website string + type Server struct + func GetServer() *Server + func New() *Server + func (srv *Server) Accept() iter.Seq[*player.Player] + func (srv *Server) AddResourcePack(pack *resource.Pack) + func (srv *Server) Close() error + func (srv *Server) CloseOnProgramEnd() + func (srv *Server) End() *world.World + func (srv *Server) Listen() + func (srv *Server) MaxPlayerCount() int + func (srv *Server) Nether() *world.World + func (srv *Server) Player(uuid uuid.UUID) (*world.EntityHandle, bool) + func (srv *Server) PlayerByName(name string) (*world.EntityHandle, bool) + func (srv *Server) PlayerByXUID(xuid string) (*world.EntityHandle, bool) + func (srv *Server) PlayerCount() int + func (srv *Server) Players(tx *world.Tx) iter.Seq[*player.Player] + func (srv *Server) RefreshPlayersCommands() + func (srv *Server) World() *world.World + type Setting string + func (Setting) Options(cmd.Source) []string + func (Setting) Type() string + type SoundType string + func (SoundType) Options(cmd.Source) []string + func (SoundType) Type() string + type StructureRotation string + func (StructureRotation) Options(cmd.Source) []string + func (StructureRotation) Type() string + type StructureSaveMode string + func (StructureSaveMode) Options(cmd.Source) []string + func (StructureSaveMode) Type() string + type TimeOfDayEnum string + func (TimeOfDayEnum) Options(cmd.Source) []string + func (TimeOfDayEnum) Type() string + type TitleRawSetEnum string + func (TitleRawSetEnum) Options(cmd.Source) []string + func (TitleRawSetEnum) Type() string + type UserConfig struct + Network struct{ ... } + Players struct{ ... } + Resources struct{ ... } + Server struct{ ... } + World struct{ ... } + func DefaultConfig() UserConfig + func (uc UserConfig) Config(log *slog.Logger) (Config, error)