default:
switch (mc){
case Command:
rp = new ReplacementCommand(regex, repl, replopts, caseSensitive, sameOutputCase); break;
case Chat: //only use ReplacementString for chat
rp = new ReplacementString(regex, repl, replopts, caseSensitive, sameOutputCase); break;
}
break;
}
} else if (scriptmode.equals("{")){