diff options
author | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-10-18 23:54:56 +0200 |
---|---|---|
committer | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-10-18 23:54:56 +0200 |
commit | 2a197705ac8785e01a48fa1ac5893d3bb876fd0a (patch) | |
tree | d0168a1accaab2240dbf8f16880300a27baa7daf /source/Player.h | |
parent | Fixed a few bugs in fluid placement - fluid into other fluid, fluid into washable blocks. (diff) | |
download | cuberite-2a197705ac8785e01a48fa1ac5893d3bb876fd0a.tar cuberite-2a197705ac8785e01a48fa1ac5893d3bb876fd0a.tar.gz cuberite-2a197705ac8785e01a48fa1ac5893d3bb876fd0a.tar.bz2 cuberite-2a197705ac8785e01a48fa1ac5893d3bb876fd0a.tar.lz cuberite-2a197705ac8785e01a48fa1ac5893d3bb876fd0a.tar.xz cuberite-2a197705ac8785e01a48fa1ac5893d3bb876fd0a.tar.zst cuberite-2a197705ac8785e01a48fa1ac5893d3bb876fd0a.zip |
Diffstat (limited to 'source/Player.h')
-rw-r--r-- | source/Player.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/source/Player.h b/source/Player.h index 0b0a0a12c..b074b430d 100644 --- a/source/Player.h +++ b/source/Player.h @@ -74,12 +74,16 @@ public: typedef std::list< cGroup* > GroupList; typedef std::list< std::string > StringList; - void AddToGroup( const char* a_GroupName ); //tolua_export - bool CanUseCommand( const char* a_Command ); //tolua_export - bool HasPermission( const char* a_Permission ); //tolua_export + + /// Adds a player to existing group or creates a new group when it doesn't exist + void AddToGroup( const AString & a_GroupName ); //tolua_export + /// Removes a player from the group, resolves permissions and group inheritance (case sensitive) + void RemoveFromGroup( const AString & a_GroupName ); //tolua_export + bool CanUseCommand( const AString & a_Command ); //tolua_export + bool HasPermission( const AString & a_Permission ); //tolua_export const GroupList & GetGroups() { return m_Groups; } // >> EXPORTED IN MANUALBINDINGS << StringList GetResolvedPermissions(); // >> EXPORTED IN MANUALBINDINGS << - bool IsInGroup( const char* a_Group ); //tolua_export + bool IsInGroup( const AString & a_Group ); //tolua_export AString GetColor(void) const; //tolua_export |