mcuuid/test.py

15 lines
311 B
Python
Raw Normal View History

2015-03-11 20:16:17 +01:00
from username_to_uuid import UsernameToUUID
import sys
print("Please enter a username: ")
username = sys.stdin.readline().rstrip()
converter = UsernameToUUID(username)
uuid = converter.get_uuid()
if (uuid is not ""):
print("That player's UUID is: " + uuid)
else:
print("That player was not found.")