summaryrefslogtreecommitdiffstats
path: root/src/RankManager.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-08-24 20:00:45 +0200
committerMattes D <github@xoft.cz>2014-08-24 20:00:45 +0200
commit8630b20c523033b359e4f9d7513cb6e4aafec1cb (patch)
tree2a74722a5dd9ba1fcb78d57996624f7f38e33efc /src/RankManager.h
parentRankMgr: Unified function signature comments in the bindings. (diff)
downloadcuberite-8630b20c523033b359e4f9d7513cb6e4aafec1cb.tar
cuberite-8630b20c523033b359e4f9d7513cb6e4aafec1cb.tar.gz
cuberite-8630b20c523033b359e4f9d7513cb6e4aafec1cb.tar.bz2
cuberite-8630b20c523033b359e4f9d7513cb6e4aafec1cb.tar.lz
cuberite-8630b20c523033b359e4f9d7513cb6e4aafec1cb.tar.xz
cuberite-8630b20c523033b359e4f9d7513cb6e4aafec1cb.tar.zst
cuberite-8630b20c523033b359e4f9d7513cb6e4aafec1cb.zip
Diffstat (limited to 'src/RankManager.h')
-rw-r--r--src/RankManager.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/RankManager.h b/src/RankManager.h
index b93a1157d..f364bba6a 100644
--- a/src/RankManager.h
+++ b/src/RankManager.h
@@ -56,13 +56,15 @@ public:
The a_MojangAPI param is used when migrating from old ini files, to look up player UUIDs. */
void Initialize(cMojangAPI & a_MojangAPI);
- /** Returns the name of the rank that the specified player has assigned to them. */
+ /** Returns the name of the rank that the specified player has assigned to them.
+ If the player has no rank assigned, returns an empty string (NOT the default rank). */
AString GetPlayerRankName(const AString & a_PlayerUUID);
/** Returns the names of Groups that the specified player has assigned to them. */
AStringVector GetPlayerGroups(const AString & a_PlayerUUID);
- /** Returns the permissions that the specified player has assigned to them. */
+ /** Returns the permissions that the specified player has assigned to them.
+ If the player has no rank assigned to them, returns the default rank's permissions. */
AStringVector GetPlayerPermissions(const AString & a_PlayerUUID);
/** Returns the names of groups that the specified rank has assigned to it.