api

package module
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2024 License: MIT Imports: 5 Imported by: 1 module, 8 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
	GetPlayers() *map[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
⌂ 换网址