====== cClientHandle ======
A cClientHandle represents technical aspect of connected player - it's game client.

===== Class Definition =====
===== Class Definition =====
^ Constant ^ Value ^
| MAX_VIEW_DISTANCE | 10 |
| MIN_VIEW_DISTANCE | 4 |

^ Function ^ Parameters ^ Return type ^ Notes ^
| GetPing | | number | Returns the ping time, in ms |
| GetPlayer | | [[API:cPlayer|cPlayer]] | Returns the player object connected to this client |
| GetUniqueID | | number | Returns the UniqueID of the client used to identify the client in the server |
| GetUsername | | string | Returns the username that the client has provided |
| GetViewDistance | | number | Returns the viewdistance (number of chunks loaded for the player in each direction) |
| Kick | Reason | | Kicks the user with the specified reason |
| SetUsername | Name | | Sets the username |
| SetViewDistance | ViewDistance | | Sets the viewdistance (number of chunks loaded for the player in each direction) |
| SendBlockChange | BlockX, BlockY, BlockZ, BlockType, BlockMeta | | Sends a block to the client. This can be used to create fake blocks. |

===== Functions =====
==== GetPing() ====
Returns client ping - standart measure of connection quality.

==== GetPlayer() ====
Returns a [[cPlayer]] instance this ''cClientHandle'' is responsible for.

==== GetUniqueID() ====
Returns uniquie ID.

==== GetUsername() ====
Returns client (and, thus, player) username.

==== GetViewDistance() ====
Returns current client view distance.

==== Kick() ====
Kicks client from server.

==== SetViewDistance() ====
Sets client view distance - useful for optimizing gameplay process for those, who has bad internet connection.
