public String subMessage(String message, String pName, Integer remWarnings) {
		String remWarningRegex = "%remwarning%";
		String sRegex = "%s%";
		String nameRegex = "%player%";
		String actionRegex = "%action%";
		String action = (getBanAction()) ? "banned" : "kicked";
		String s = (remWarnings == 1) ? "" : "s";
		message = message.replaceAll(remWarningRegex, remWarnings.toString());
		message = message.replaceAll(sRegex, s);
		message = message.replaceAll(nameRegex, pName);
		message = message.replaceAll(actionRegex, action);
		return message;
	}