From 202775f1506e0245c19dd772d77ccafbe66e1c9e Mon Sep 17 00:00:00 2001 From: Ceikry Date: Mon, 18 Apr 2022 08:22:51 +0000 Subject: [PATCH] Plugin interactions can now dispatch interaction events, fixes varrock easy diary tasks not counting --- Server/src/main/java/core/game/interaction/Interaction.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Server/src/main/java/core/game/interaction/Interaction.java b/Server/src/main/java/core/game/interaction/Interaction.java index a43caa0d8..b49b6f5f6 100644 --- a/Server/src/main/java/core/game/interaction/Interaction.java +++ b/Server/src/main/java/core/game/interaction/Interaction.java @@ -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());