Bukkit/Bukkit — pull request #715 by zerg960 (2012-11-15 23:46:31+00:00)
Title: Add API for Client Difficulty & Render Distance

This adds an API to retrieve the client's difficulty setting & render distance set in their options.

Currently, it is impossible for plugins to retrieve that data, although it is sent by the client.

The get() methods return null if the (modified) client sends a value with an invalid number, or if the client doesn't send Packet204LocaleAndViewDistance().