mcuuid/README.md

44 lines
718 B
Markdown
Raw Normal View History

# MCUUID
Getting Minecraft Player Information from Mojang API.
2015-03-11 20:20:20 +01:00
## Usage
2018-10-28 13:14:08 +01:00
1. `pip install mcuuid`
2. Use the module like this:
```
from mcuuid import GetPlayerData
player = GetPlayerData(username)
if player.valid is True:
uuid = player.uuid
name = player.username
2015-03-11 20:20:20 +01:00
```
Read `test.py` for some explaination.
When `username = "gronkh"`:
`uuid` will be `"a2080281c2784181b961d99ed2f3347c"`
and `name` will be `"Gronkh"`
2015-03-11 20:20:20 +01:00
## Test file
Usage
```
$ python test.py gronkh
```
or
```
$ python test.py
Please enter a username:
gronkh
```
Response:
```
UUID: a2080281c2784181b961d99ed2f3347c
correct name: Gronkh
2015-03-11 20:20:20 +01:00
```
2015-03-11 20:39:44 +01:00
## License
2015-03-11 20:41:43 +01:00
This software is licensed under the MIT license. Feel free to use it however you like.