summaryrefslogtreecommitdiffstats
path: root/src/RankManager.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-08-21 16:55:39 +0200
committerMattes D <github@xoft.cz>2014-08-21 16:55:39 +0200
commit326dd7e4c6baa6070d35a2a46ca20404c623c8e1 (patch)
treec87ad1a554656a97f706c067ee23956849be55a3 /src/RankManager.h
parentRemoved last remnant of cGroup. (diff)
downloadcuberite-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 'src/RankManager.h')
-rw-r--r--src/RankManager.h6
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(