fix /check old usernames

This commit is contained in:
jomo
2015-01-07 01:05:49 +01:00
parent 8b2bf3bf72
commit 7f97087ddb

View File

@@ -25,7 +25,8 @@ def get_country(data):
def get_all_names(player):
uuid = str(player.getUniqueId()).replace("-", "")
names = json.load(urllib2.urlopen("https://api.mojang.com/user/profiles/%s/names" % uuid))
return ", ".join(names)
# [ {"name": "some_name"}, {"name": "other_name"} ]
return ", ".join([name["name"] for name in names])
# combines data