better name + docs for played_before (renamed to known_player)

This commit is contained in:
jomo
2014-07-27 22:44:12 +02:00
parent b18bdb69cb
commit 712cd135fc
2 changed files with 6 additions and 5 deletions

View File

@@ -158,10 +158,11 @@ def retrieve_player(uuid_str):
return server.getOfflinePlayer(juuid(uuid_str))
def played_before(player):
def known_player(player):
"""
returns True if the player has played before
this is different to getHasPlayed(), which will return False on first join
to be used on OfflinePlayer
returns True if the player has been on the server
this is different to HasPlayedBefore(), which will return False on first join
"""
return player.getFirstPlayed() != 0