int index = cmdParams.indexOf(param);
if (index < paramUsageCount)
{ // Error: parameter probably used twice in statement!
String msg = "A parameter may only be used once in a command.";
error(Errors.Internal, msg);
throw new EmpireException(this);
}
if (index > paramUsageCount)
{ // Correct parameter order
cmdParams.remove(index);
cmdParams.insertElementAt(param, paramUsageCount);