package com.elmakers.mine.bukkit.action;

import com.elmakers.mine.bukkit.api.action.CastContext;
import org.bukkit.entity.Entity;

public class EffectContext {
    private final CastContext context;
    private final String effectKey;

    public EffectContext(String effectKey, CastContext context, Entity source) {
        this.effectKey = effectKey;
        this.context = new com.elmakers.mine.bukkit.action.CastContext(context, source);
    }

    public EffectContext(String effectKey, CastContext context) {
        this.effectKey = effectKey;
        this.context = context;
    }

    public void perform() {
        context.playEffects(effectKey);
    }

    public CastContext getContext() {
        return context;
    }
}

@@ -726,11 +726,117 @@
 t;%0A    %7D
+%0A%0A    @Override%0A    public String toString() %7B%0A        return %22FX: %22 + effectKey + %22 on %22 + context;%0A    %7D
 %0A%7D%0A

Fix projectile hit FX