====== cGroup ======
cGroup is a group [[cPlayer]]'s can be in. Groups define the permissions players have, and optionally the color of their name in the chat.
===== Class Definition =====
^ Function ^ Return type ^
| SetName( String GroupName ) | void |
| GetName() | String |
| SetColor( String ColorCode ) | void |
| GetColor() | String |
| AddCommand( String Command ) | void |
| HasCommand( String Command ) | bool |
| AddPermission( String Permission ) | void |
| InheritFrom( [[cGroup]] Parent ) | void |

===== Functions =====
==== SetName() ====
Renames group. Don't forget to save your changes to [[configure:groups.ini]]!

==== GetName() ====
Returns group name.

==== SetColor() ====
Accept [[cChatColor]] code and consolidates it to group. Group color is visible when viewing players list.

==== GetColor() ====
Returns group [[cChatColor]] code.

==== AddCommand() ====
Adds given command to a group. Command should be added to server through [[Plugin]]:AddCommand before this operation!

==== HasCommand() ====
Checks if group has such command permission.

==== AddPermission() ====
Adds permission to a group. Difference between ''AddCommand()'' and ''AddPermission()'' is that first adds __exact__ command; second adds __a bunch of__ commands.

==== InheritFrom() ====
Sets group "parent": a group that's calling this function will inherit all "parent" permissions.