updated ServerCommands class to use new xListener interface and xEvent annotation