diff --git a/src/main/java/noppes/npcs/scripted/event/CustomNPCsEvent.java b/src/main/java/noppes/npcs/scripted/event/CustomNPCsEvent.java index 9aa5c5aa4..d7f46473f 100644 --- a/src/main/java/noppes/npcs/scripted/event/CustomNPCsEvent.java +++ b/src/main/java/noppes/npcs/scripted/event/CustomNPCsEvent.java @@ -13,4 +13,10 @@ public class CustomNPCsEvent extends Event{ public CustomNPCsEvent() { } + + public void setCancelled(boolean bo){ + this.setCanceled(bo); + } + + public boolean isCancelled(){return this.isCanceled();} } diff --git a/src/main/java/noppes/npcs/scripted/event/ScriptEvent.java b/src/main/java/noppes/npcs/scripted/event/ScriptEvent.java index 5a5a8cbfd..12a951ca2 100644 --- a/src/main/java/noppes/npcs/scripted/event/ScriptEvent.java +++ b/src/main/java/noppes/npcs/scripted/event/ScriptEvent.java @@ -11,4 +11,12 @@ class ScriptEvent{ public boolean isCancelled(){ return isCancelled; } + + public void setCanceled(boolean bo){ + isCancelled = bo; + } + + public boolean isCanceled(){ + return isCancelled; + } }