private void onCommand(String cmd) {

		String[] parts = cmd.split(" ");
		
		if(parts.length < 1) {
			return;
		}
		
		switch(parts[0]) {
		case "/help":
			output.println("Available commands:");
			output.println("/help");
			output.println("/start");
			output.println("/list");
			output.println("/kick");
			break;
			
		case "/ai":
			output.println("add ai...");
			addAi(120, null);
			break;
			
		case "/sunzi":
			output.println("add SunZi...");
			addAi(2000, "SunZi");
			break;
			
		case "/start":
			startServer();
			break;
			
		default:
			output.println("Unknown command!");
		}
	}