From 9dfa0f1f15c413540e932a04e94419a8a3b37dcf Mon Sep 17 00:00:00 2001 From: faketruth Date: Mon, 30 Jan 2012 16:47:26 +0000 Subject: Added a WebAdmin interface to view users their groups, and the permissions of groups. cChunk::Tick did an assertion in cCSLock, I used a cCSUnlock to fix it, but not sure if this is correct. git-svn-id: http://mc-server.googlecode.com/svn/trunk@194 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cPlayer.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/cPlayer.h') diff --git a/source/cPlayer.h b/source/cPlayer.h index 3793443dd..c05600f80 100644 --- a/source/cPlayer.h +++ b/source/cPlayer.h @@ -63,10 +63,12 @@ public: void SetName( const char* a_Name ); //tolua_export 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 const GroupList & GetGroups(); // >> EXPORTED IN MANUALBINDINGS << + StringList GetResolvedPermissions(); // >> EXPORTED IN MANUALBINDINGS << bool IsInGroup( const char* a_Group ); //tolua_export std::string GetColor(); //tolua_export @@ -86,6 +88,7 @@ public: bool SaveToDisk(); bool LoadFromDisk(); + void LoadPermissionsFromDisk(); //tolua_export const char* GetLoadedWorldName(); -- cgit v1.2.3