Skip to content

A fake Minecraft server implementation to notify users about maintenance

License

Notifications You must be signed in to change notification settings

ZockerSK/FakeMCServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FakeMCServer

This program creates a simple Minecraft protocol wrapper, which imitates a full Minecraft server. This can be used to respond to pings with some information provided without the need to start a (Java) server.

Overview

You can start this program by using

$ python3 main.py

Example configuration:

{
    "ip": "0.0.0.0",
    "kick_message": [
        "§bSorry",
        "",
        "§aThis server is offline!"
    ],
    "motd": {
        "1": "§4Maintenance!",
        "2": "§aCheck example.com for more information!"
    },
    "port": 25565,
    "protocol": 2,
    "samples": [
        "§bexample.com",
        "",
        "§4Maintenance"
    ],
    "server_icon": "server_icon.png",
    "show_hostname_if_available": true,
    "show_ip_if_hostname_available": true,
    "version_text": "§4Maintenance",
    "player_max": 0,
    "player_online": 0
}

Please note, that the server_icon must be 64x64 and a png file.

In this configuration you can use typical Minecraft message formatting tags.

show_..._if_available enables/disables the resolution of the hostname of the ip/that the IP will be displayed, if the hostname is available

protocol is the server's game version ID (see wiki.vg for more details)

samples specifies the player displayed when hovering over the player count/version information.

Samples

Contribution

If you find some issues or encounter problems, feel free to write an issue providing your problem and some information regarding your setup (like Minecraft version, python version, ...).

About

A fake Minecraft server implementation to notify users about maintenance

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages