14 lines
520 B
Go
14 lines
520 B
Go
|
|
// Package server implements a high-level implementation of a Minecraft server.
|
||
|
|
// Creating such a server may be done using the `server.New()` function.
|
||
|
|
// Additional configuration may be passed by using server.Config{...}.New().
|
||
|
|
// `Server.Listen()` may be called to start and run the server. It should be
|
||
|
|
// followed up by a loop as such:
|
||
|
|
//
|
||
|
|
// for p := range srv.Accept() {
|
||
|
|
// // Use p
|
||
|
|
// }
|
||
|
|
//
|
||
|
|
// `Server.Accept()` blocks until a new player connects to the server and
|
||
|
|
// spawns in the default world.
|
||
|
|
package server
|