api

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: MIT Imports: 5 Imported by: 8

README

Go Server API

Api Minecraft server 1.8 made in go

This api is used to make plugins for the server


Check the original project

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetServer

func SetServer(newServer Server)

Types

type Mspt

type Mspt interface {
	GetPromedium() float32
	GetMax() int64
	GetMin() int64
}

type Server

type Server interface {
	GetPlayer(network.Connection) *ents.Player
	AddPlayer(conn *network.Connection, player *ents.Player)
	Disconnect(network.Connection)

	Broadcast(messages ...string)

	GetConsole() ents.Console
	GetMspt() Mspt
	GetScheduler() *tasks.Scheduler

	GetWorldManager() *world.WorldManager
	GetPluginManager() *plugin.PluginManager
	GetPacketManager() *network.PacketManager

	Stop()
}

func GetServer

func GetServer() Server

Jump to

Keyboard shortcuts

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