Based on Shevchik's MojangAPIProxy plugin.