Manually add changes from pull #8

Changes could not be merged automatically due to a conflic.
https://github.com/ORelio/Minecraft-Console-Client/pull/8
So I re-do the changes manually and close the original pull request.