Fixed issues

Fixed chat color bug for chat messages and display names.
Cleaned up some code.
Fixed an issue which causes null pointer exceptions if itemMeta-data is
missing,