diff options
author | andrew <xdotftw@gmail.com> | 2014-01-20 15:10:39 +0100 |
---|---|---|
committer | andrew <xdotftw@gmail.com> | 2014-01-20 15:10:39 +0100 |
commit | 7728f4bcbee7fa61f005c7b972685deb4bf04f2a (patch) | |
tree | 2aa40e20c9045a997abb25e17d2fa4890bf47e08 /src/Entities/Player.h | |
parent | Scoreboard improvements (diff) | |
download | cuberite-7728f4bcbee7fa61f005c7b972685deb4bf04f2a.tar cuberite-7728f4bcbee7fa61f005c7b972685deb4bf04f2a.tar.gz cuberite-7728f4bcbee7fa61f005c7b972685deb4bf04f2a.tar.bz2 cuberite-7728f4bcbee7fa61f005c7b972685deb4bf04f2a.tar.lz cuberite-7728f4bcbee7fa61f005c7b972685deb4bf04f2a.tar.xz cuberite-7728f4bcbee7fa61f005c7b972685deb4bf04f2a.tar.zst cuberite-7728f4bcbee7fa61f005c7b972685deb4bf04f2a.zip |
Diffstat (limited to 'src/Entities/Player.h')
-rw-r--r-- | src/Entities/Player.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Entities/Player.h b/src/Entities/Player.h index 52e629dc3..52ba2065c 100644 --- a/src/Entities/Player.h +++ b/src/Entities/Player.h @@ -155,10 +155,13 @@ public: AString GetIP(void) const { return m_IP; } // tolua_export /// Returns the associated team, NULL if none - cTeam* GetTeam(void) { return m_Team; } // tolua_export + cTeam * GetTeam(void) { return m_Team; } // tolua_export /// Sets the player team, NULL if none - void SetTeam(cTeam* a_Team); + void SetTeam(cTeam * a_Team); + + /// Forces the player to query the scoreboard for his team + cTeam * UpdateTeam(void); // tolua_end |