@CommandDescription (aliases = {"effect", "fx"}, usage = "<type> <duration> [amp]", desc = "Applies an effect.")
@Permissible ("vanilla.command.debug")
@Filter (PlayerFilter.class)
public void effect(CommandSource source, CommandArguments args) throws CommandException {
Player player = args.checkPlayer(source);
EntityEffectType type = args.popEnumValue("type", EntityEffectType.class);
float duration = (float) args.popDouble("duration");
int amp = args.popInteger("amp", 2);
args.assertCompletelyParsed();
player.add(Effects.class).add(new EntityEffect(type, amp, duration));