Python client for Minecraft Management Server Protocol
Project description
mcmsmp - Minecraft Management Server Protocol Client
Python client for Minecraft Management Server Protocol (MCMSP).
Installation
pip install mcmsmp
Quick Start
import asyncio
from mcmsmp import MinecraftManagementClient
import mcmsmp
async def main():
client = MinecraftManagementClient(
uri="ws://localhost:25568",
secret="your_secret_key"
)
@client.on_notification(mcmsmp.notifications.types.PlayerJoin)
async def onPlayerJoin(e: mcmsmp.notifications.types.PlayerJoin):
print(f"e res: {e.player.name}")
await client.connect()
# Get online players
players = await client.rpc(mcmsmp.trigger.types.get.PLAYERS)
print(f"Online players: {players}")
await client.close()
if __name__ == "__main__":
asyncio.run(main())
Documentation
See examples for more usage examples.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mcmsmp-0.1.4.tar.gz
(7.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcmsmp-0.1.4.tar.gz.
File metadata
- Download URL: mcmsmp-0.1.4.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
668aa874d2a9fdabaad922edd9db7f60125b0fc1ae0a89cb13cc3602c4645f04
|
|
| MD5 |
c1857a056b6214c709c7dc077de327cf
|
|
| BLAKE2b-256 |
495f437456a42974da81e189322fb3d014c7d875b56f68aefe8538191bda98ac
|
File details
Details for the file mcmsmp-0.1.4-py3-none-any.whl.
File metadata
- Download URL: mcmsmp-0.1.4-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf3e67bf726bce16b274c6b7ebec693175c454b1692804261b6be42d97dafcf4
|
|
| MD5 |
c393fec2509fce9b2b7e8427c8e8f325
|
|
| BLAKE2b-256 |
bcc1592d12c5f618021db095c8fea39f61cc6f12a72c43ea2ff17aaaf9f11178
|