@SuppressWarnings("rawtypes")
	@Override
	public void onEvent(Event e) {
		// TODO Auto-generated method stub
		String[] args = {""};
		if(e instanceof PrivateMessageEvent) {
			PrivateMessageEvent event = (PrivateMessageEvent) e;
			args = Colors.removeFormattingAndColors(event.getMessage()).split(" ");
			String prefix = config.get("CommandPrefix");
			if(args.length == 2) {
				if(args[0].equalsIgnoreCase(prefix + config.get("ChangeNickCommand"))) {
					setNick(args[1]);
				}
				else if(args[0].equalsIgnoreCase(prefix + config.get("IdentifyCommand"))) {
					identify(args[1]);
				}
				else if(args[0].equalsIgnoreCase(prefix + config.get("ChangeServerCommand"))) {
					connect(args[1]);
				}
				else if(args[0].equalsIgnoreCase(prefix + config.get("JoinChannelCommand"))) {
					joinChannel(args[1]);
				}
				else if(args[0].equalsIgnoreCase(prefix + config.get("PartChannelCommand"))) {
					partChannel(args[1]);
				}
			}
			else if(args.length == 3) {
				if(args[0].equalsIgnoreCase(prefix + config.get("PartChannelCommand"))) {
					partChannel(args[1], args[2]);
				}
			}
		}
	}