Skip to content

A light weight query server for custom minecraft servers

License

Notifications You must be signed in to change notification settings

Nicolas62x/MC-QueryServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MC-QueryServer

A light weight query server for custom minecraft servers

USAGE

QueryServer query = new QueryServer(
    //theses anonimous function can be any function with a prototype of BaseServerInfo function() and BaseServerInfo FullServerInfo()
    () => new QueryServer.BasicServerInfo { 
    MOTD = "A Query Server !", 
    GameType = "Testing", 
    MapName = "None", 
    NumPlayers = "42", 
    MaxPlayers = "69", 
    HostPort = 19132, 
    HostIp = "127.0.0.1" },
    
    () => new QueryServer.FullServerInfo { 
    MOTD = "A Query Server !", 
    GameType = "Testing", 
    GameID = "MINECRAFT", 
    Plugins = "", 
    Players = new string[] { "Nicolas61x", "dadodasyra", "Zelytra" }, 
    Version = "1.18.0", 
    MapName = "None", 
    NumPlayers = "42", 
    MaxPlayers = "69", 
    HostPort = 19132, 
    HostIp = "127.0.0.1" },
    
    //port to listen to
    19132
    );

//run the query server for 60s
Thread.Sleep(60000);

//stop the server (it can be restarted with StartListening)
query.StopListening();

About

A light weight query server for custom minecraft servers

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages