Plugin interactions can now dispatch interaction events, fixes varrock easy diary tasks not counting

This commit is contained in:
Ceikry
2022-04-18 08:22:51 +00:00
committed by Ryan
parent 66f51ca043
commit 202775f150
@@ -1,5 +1,6 @@
package core.game.interaction;
import api.events.InteractionEvent;
import core.game.container.Container;
import core.game.node.Node;
import core.game.node.entity.npc.NPC;
@@ -82,6 +83,7 @@ public class Interaction {
} else {
player.getPulseManager().runUnhandledAction(player, pulseType);
}
player.dispatch(new InteractionEvent(node, option.getName().toLowerCase()));
} catch (Exception e){
e.printStackTrace();
SystemLogger.logErr(this.getClass().getName() + e.getMessage());