Skip to content

A Minecraft server and proxy written from scratch in Swift.

License

Notifications You must be signed in to change notification settings

mattrips/SwiftMC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SwiftMC

Build Status License Issues Pull Requests Code Size CodeFactor Open Source Helpers

A Minecraft server and proxy written from scratch in Swift.

NOTICE: This swift package is in active development, so the code may build with warnings or errors

Installation (run a server)

Clone the repository and start the server

git clone https://github.com/GroupeMINASTE/SwiftMC.git
cd SwiftMC
swift run -c release

Create a custom server

Add SwiftMC to the dependencies of your swift executable package:

.package(url: "https://github.com/GroupeMINASTE/SwiftMC.git", from: "0.0.1")

Create a server:

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.

About

A Minecraft server and proxy written from scratch in Swift.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages