Documentation ¶
Index ¶
- Constants
- Variables
- func WritePlayerList(path string, user []user) error
- type Server
- func (srv *Server) AddToWhitelist(name, uuid string)
- func (srv *Server) Ban(name, uuid string, reason string)
- func (srv *Server) Close()
- func (srv *Server) ConsoleCommand(txt string)
- func (srv *Server) FindEntity(id int32) interface{}
- func (srv *Server) FindEntityByUUID(id [16]byte) interface{}
- func (srv *Server) FindPlayer(username string) *player.Player
- func (srv *Server) FindPlayerByID(id int32) *player.Player
- func (srv *Server) GetCommandGraph() *commands.Graph
- func (srv *Server) GlobalMessage(message chat.Message)
- func (srv *Server) IsIPBanned(ip string) bool
- func (srv *Server) IsOperator(uuid [16]byte) bool
- func (srv *Server) IsPlayerBanned(u [16]byte) bool
- func (srv *Server) IsWhitelisted(u [16]byte) bool
- func (srv *Server) MakeNotOperator(p *player.Player)
- func (srv *Server) MakeOperator(p *player.Player)
- func (srv *Server) NewID() int32
- func (srv *Server) OperatorMessage(message chat.Message)
- func (srv *Server) Reload() error
- func (srv *Server) RemoveFromWhitelist(uuid string)
- func (srv *Server) SetBlock(d *world.Dimension, x, y, z int64, b chunk.Block, typ world.SetBlockHandling)
- func (srv *Server) SetEntityPosition(id int32, x, y, z float64)
- func (srv *Server) SpawnEntity(typ string, x, y, z float64)
- func (srv *Server) Start() error
- func (srv *Server) TeleportEntity(id int32, x, y, z float64)
- func (srv *Server) Unban(name string)
- func (srv *Server) ValidateConn(conn *minecraft.Conn) bool
Constants ¶
View Source
const Version = "1.20.1"
Variables ¶
View Source
var OldState *term.State
Functions ¶
func WritePlayerList ¶
Types ¶
type Server ¶
type Server struct { Config *config.Config Logger *logger.Logger Lang *lang.Lang PlaceholderContext *placeholder.PlaceholderContext WhitelistedPlayers, Operators, BannedPlayers, BannedIPs []user Players *controller.Controller[uuid.UUID, *player.Player] Entities *controller.Controller[int32, entity.Entity] World *world.World // contains filtered or unexported fields }
func (*Server) AddToWhitelist ¶
func (*Server) ConsoleCommand ¶
func (*Server) FindEntity ¶
func (*Server) FindEntityByUUID ¶
func (*Server) GetCommandGraph ¶
func (*Server) GlobalMessage ¶
func (*Server) IsIPBanned ¶
func (*Server) IsOperator ¶
func (*Server) IsPlayerBanned ¶
func (*Server) IsWhitelisted ¶
func (*Server) MakeNotOperator ¶
func (*Server) MakeOperator ¶
func (*Server) OperatorMessage ¶
func (*Server) RemoveFromWhitelist ¶
func (*Server) SetEntityPosition ¶
func (*Server) SpawnEntity ¶
func (*Server) TeleportEntity ¶
Click to show internal directories.
Click to hide internal directories.