mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2026-08-01 14:39:13 -06:00
Plugin interactions can now dispatch interaction events, fixes varrock easy diary tasks not counting
This commit is contained in:
parent
66f51ca043
commit
202775f150
1 changed files with 2 additions and 0 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue