Skip to content

Commit

Permalink
Added Player.raw_steamid
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayuto committed Dec 10, 2017
1 parent c8249b7 commit edd299a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions addons/source-python/packages/source-python/players/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,14 @@ def from_userid(cls, userid):
"""
return cls(index_from_userid(userid))

@property
def raw_steamid(self):
"""Return the player's unformatted SteamID.
:rtype: SteamID
"""
return engine_server.get_client_steamid(self.edict)

@property
def permissions(self):
"""Return the player's permissions.
Expand Down

0 comments on commit edd299a

Please sign in to comment.