Update Main.java

Added Chat listener, Added config generation
Merge pull request #1 from Jayfeather1/patch-1

Update Main.java