A module to parse Minecraft player information
Project description
MinePlayer
MinePlayer 是一款簡單的模組,提供使用者解析一個 Minecraft 玩家的資訊!
MinePlayer is a simple module that allows users to parse information about a Minecraft player!
INFO:root:=== Create a new player. ===
INFO:root:Player Sam510208 created.
INFO:root:=== Get the player's UUID. ===
INFO:root:Player Sam510208's UUID is 9ea020446a4c4e4686b8e5d0bde8ce56.
特色 (Feature)
- 簡單易用 (Easy to use)
- 基於 GNU v3.0 開源 (Open Source based GNU v3.0)
- 支持所有相容於 CraftAvatar 的玩家頭像服務,並可自行決定 (Supports all CraftAvatar-compatible player avatar services at your discretion)
- 可取得幾乎所有 CraftAvatar 服務提供的頭像資源,甚至是玩家 Skin! (Get access to almost all avatar assets provided by the CraftAvatar service, even player Skins!)
範例 (Example)
import mineplayer
import logging
logging.basicConfig(level=logging.INFO)
# Create a new player
logging.info("=== Create a new player. ===")
player = mineplayer.MinePlayer("Sam510208")
logging.info(f"Player {player.username} created.")
# Get the player's UUID
logging.info("=== Get the player's UUID. ===")
uuid = player.uuid
logging.info(f"Player {player.username}'s UUID is {uuid}.")
# Get the player's information
logging.info("=== Get the player's information. ===")
info = player.info
logging.info(f"Player {player.username}'s information is {info}.")
範例收錄於 test.py
中
謝誌 (Thanks)
- Thank you to Crafatar for providing avatars.
- Source of inspiration: 510208/yunyubot-dc-annou
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
mineplayer-1.0.0.tar.gz
(15.6 kB
view hashes)
Built Distribution
MinePlayer-1.0.0-py3-none-any.whl
(15.8 kB
view hashes)
Close
Hashes for MinePlayer-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 321185b734f87fcd8d6ff338dbc44c27cb21b07885ecc8c0e9b1ca1322ccb504 |
|
MD5 | 1bc8ec22253a3022958513fed6bedaa9 |
|
BLAKE2b-256 | a9ad71ef1a5d3df49a0da0b501359ffc13c58c297a70df29f5b7398c745ae6f6 |