this.getSpellAbility().getModes().setMaxModes(2);
// Incendiary Command deals 4 damage to target player;
this.getSpellAbility().addEffect(new DamageTargetEffect(4));
this.getSpellAbility().addTarget(new TargetPlayer());
// or Incendiary Command deals 2 damage to each creature;
Mode mode = new Mode();
mode.getEffects().add(new DamageAllEffect(2, new FilterCreaturePermanent()));
this.getSpellAbility().getModes().addMode(mode);
// or destroy target nonbasic land;
mode = new Mode();
mode.getEffects().add(new DestroyTargetEffect());
mode.getTargets().add(new TargetNonBasicLandPermanent());
this.getSpellAbility().getModes().addMode(mode);
// or each player discards all the cards in his or her hand, then draws that many cards.
mode = new Mode();
mode.getEffects().add(new IncendiaryCommandDrawEffect());
this.getSpellAbility().getModes().addMode(mode);
}