diff options
author | Mattes D <github@xoft.cz> | 2014-08-21 16:55:39 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-08-21 16:55:39 +0200 |
commit | 326dd7e4c6baa6070d35a2a46ca20404c623c8e1 (patch) | |
tree | c87ad1a554656a97f706c067ee23956849be55a3 /src/RankManager.h | |
parent | Removed last remnant of cGroup. (diff) | |
download | cuberite-326dd7e4c6baa6070d35a2a46ca20404c623c8e1.tar cuberite-326dd7e4c6baa6070d35a2a46ca20404c623c8e1.tar.gz cuberite-326dd7e4c6baa6070d35a2a46ca20404c623c8e1.tar.bz2 cuberite-326dd7e4c6baa6070d35a2a46ca20404c623c8e1.tar.lz cuberite-326dd7e4c6baa6070d35a2a46ca20404c623c8e1.tar.xz cuberite-326dd7e4c6baa6070d35a2a46ca20404c623c8e1.tar.zst cuberite-326dd7e4c6baa6070d35a2a46ca20404c623c8e1.zip |
Diffstat (limited to '')
-rw-r--r-- | src/RankManager.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/RankManager.h b/src/RankManager.h index 3ccbd2fd4..532b4cd83 100644 --- a/src/RankManager.h +++ b/src/RankManager.h @@ -155,6 +155,12 @@ public: cPlayer instances manually. The PlayerName is provided for reference, so that GetRankPlayerNames() can work. */ void SetPlayerRank(const AString & a_PlayerUUID, const AString & a_PlayerName, const AString & a_RankName); + + /** Removes the player's rank assignment. The player is left without a rank. + Note that this doesn't change the cPlayer instances for the already connected players, you need to update + all the instances manually. + No action if the player has no rank assigned to them already. */ + void RemovePlayerRank(const AString & a_PlayerUUID); /** Sets the message visuals of an existing rank. No action if the rank name is not found. */ void SetRankVisuals( |