summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-08-05 22:28:37 +0200
committermadmaxoft <github@xoft.cz>2014-08-05 22:28:37 +0200
commitfcfae0252503a845c98fe6e882dda69e44224094 (patch)
tree072fa30723c665860a7c1b69c66aef6d27b1d579 /src
parentRankMgr: Initial interface declaration. (diff)
downloadcuberite-fcfae0252503a845c98fe6e882dda69e44224094.tar
cuberite-fcfae0252503a845c98fe6e882dda69e44224094.tar.gz
cuberite-fcfae0252503a845c98fe6e882dda69e44224094.tar.bz2
cuberite-fcfae0252503a845c98fe6e882dda69e44224094.tar.lz
cuberite-fcfae0252503a845c98fe6e882dda69e44224094.tar.xz
cuberite-fcfae0252503a845c98fe6e882dda69e44224094.tar.zst
cuberite-fcfae0252503a845c98fe6e882dda69e44224094.zip
Diffstat (limited to 'src')
-rw-r--r--src/RankManager.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/RankManager.h b/src/RankManager.h
index cda6beee9..1eaeb97a1 100644
--- a/src/RankManager.h
+++ b/src/RankManager.h
@@ -47,12 +47,17 @@ public:
void GetPlayerMsgVisuals(
const AString & a_PlayerUUID,
AString & a_MsgPrefix,
- AString & a_MsgPostfix,
+ AString & a_MsgSuffix,
AString & a_MsgNameColorCode
);
/** Adds a new rank. No action if the rank already exists. */
- void AddRank(const AString & a_RankName);
+ void AddRank(
+ const AString & a_RankName,
+ const AString & a_MsgPrefix,
+ const AString & a_MsgSuffix,
+ const AString & a_MsgNameColorCode
+ );
/** Adds a new permission group. No action if such a group already exists. */
void AddPermissionGroup(const AString & a_GroupName);
@@ -93,6 +98,13 @@ public:
cPlayer instances manually. */
void SetPlayerRank(const AString & a_PlayerUUID, const AString & a_RankName);
+ /** Sets the message visuals of an existing rank. No action if the rank name is not found. */
+ void SetRankVisuals(
+ const AString & a_RankName,
+ const AString & a_MsgPrefix,
+ const AString & a_MsgSuffix,
+ const AString & a_MsgNameColorCode
+ );
protected:
SQLite::Database m_DB;