Giter Site home page Giter Site logo

fakemcserver's Introduction

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, ...).

fakemcserver's People

Contributors

zockersk avatar fa0311 avatar michivip avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.