Adds refresh command
Fix java 7 compile and pluginmessage