Skip to content

A Haskell library for interfacing with a Minecraft server via it's RCON protocol

License

Notifications You must be signed in to change notification settings

joshproehl/minecontrol-hs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minecontrol-HS

Sometimes you want to poke at or interact with your minecraft server without logging in. Sometimes from inside a Haskell app. Well here we are!

The examples folder contains some of the tools that I needed which drove the construction of the library.

Example Usage

Access the server and issue commands directly using the low level connection primitives:

import Network.Minecraft.RCON.Client

main :: IO ()
main = do
  conn <- mcGetConnection "127.0.0.1" "25575" "password"
  putStrLn "Executing list command:"
  retPkt <- mcCommand conn "list"
  print retPkt
  mcCloseConnection conn

About

A Haskell library for interfacing with a Minecraft server via it's RCON protocol

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages