开源软件名称(OpenSource Name):Sandertv/mcwss开源软件地址(OpenSource Url):https://github.com/Sandertv/mcwss开源编程语言(OpenSource Language):Go 100.0%开源软件介绍(OpenSource Introduction):mcwssA documentation and implementation of the Minecraft Bedrock Edition websocket protocol. Minecraft WebsocketsMinecraft has websocket connection commands that may be used to connect to a websocket server. These commands are In order to be able to execute the In the settings tab, there is also a setting that enables/disables encrypted websockets. mcwss implements encryption between websockets, so changing this setting will not have an effect on the behaviour of mcwss. Getting StartedPrerequisitesmcwss is a Go library. To use it, Go must be installed. The library may be downloaded using Usagepackage main
import (
"github.com/sandertv/mcwss"
)
func main() {
// Create a new server using the default configuration. To use specific configuration, pass a *wss.Config{} in here.
server := mcwss.NewServer(nil)
server.OnConnection(func(player *mcwss.Player){
// Called when a player connects to the server.
})
server.OnDisconnection(func(player *mcwss.Player){
// Called when a player disconnects from the server.
})
// Run the server. (blocking)
server.Run()
} The server may now be connected to by joining a singleplayer game and executing the command Documentationhttps://godoc.org/github.com/Sandertv/mcwss |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论