Skip to content

legopitstop/multicraft-py

Repository files navigation

multicraft

Tests PyPI Python Downloads Status Issues Code style: black

Interact with your Minecraft server from hosts that use Multicraft in Python.

Installation

Install the module with pip:

pip3 install multicraft

Update existing installation: pip3 install multicraft --upgrade

Links

Features

  • Includes a handful of common multicraft hosts.
  • Manage users, players, commands, schedules, and databases.
  • Start, stop, or restart your server.
  • Run console commands (give, kill, whitelist, op, etc)
  • Read your server's current CPU and memory usage.
  • Send a chat message.

See the docs for more information.

Dependencies

Name Description
requests Requests is a simple, yet elegant, HTTP library.
pydantic Data validation using Python type hints

Example

from multicraft import MulticraftAPI
from multicraft.hosts import BISECT_PREMIUM

api = MulticraftAPI(
    host = BISECT_PREMIUM,
    user = 'username',
    key = 'apiKey'
)

owner = api.get_user_id(api.user)

owned_servers = api.list_servers_by_owner(owner)
print(owned_servers)

for id in owned_servers.keys():
    server = api.get_server(id)
    print(server)

About

Interact with your Minecraft server from hosts that use Multicraft using Python.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

 
 
 

Contributors

Languages