$server = Server::getInstance(); $server->getCommandMap()->register('commandgoeshere', new NameCommand($this,"commandgoeshere"));