Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

README.md

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

Trello board for the project: https://trello.com/b/GWH4gv9g/swiftmc

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.

Topics

Resources

License

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.