import SwiftMC
// Initialize a server
let server = SwiftMC()
// And start it
DispatchQueue.global().async {
server.start()
}
// Read commands from console
while let input = readLine(strippingNewline: true) {
server.dispatchCommand(command: input)
}
See DOCUMENTATION.md for a full documentation of all available features to customize your server.
SwiftMC
A Minecraft server and proxy written from scratch in Swift.
Installation (run a server)
Clone the repository and start the server
Create a custom server
Add SwiftMC to the dependencies of your swift executable package:
Create a server:
See DOCUMENTATION.md for a full documentation of all available features to customize your server.