NamedTrigger is not properly identified if it is under subfolders
wysohn opened this issue · 0 comments
NamedTrigger 사용 시 하위 폴더 내 트리거를 #CALL 로 호출시 실패합니다.
트리거 버전: 3.1.1
java.lang.Exception: Could not finish interpretation for [temp]!
at io.github.wysohn.triggerreactor.core.manager.trigger.Trigger.start(Trigger.java:279)
at io.github.wysohn.triggerreactor.core.manager.trigger.Trigger$1.call(Trigger.java:230)
at io.github.wysohn.triggerreactor.core.manager.trigger.Trigger$1.call(Trigger.java:226)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: io.github.wysohn.triggerreactor.core.script.interpreter.InterpreterException: Error at row[1], col[7]
at io.github.wysohn.triggerreactor.core.script.interpreter.Interpreter.interpret(Interpreter.java:930)
at io.github.wysohn.triggerreactor.core.script.interpreter.Interpreter.start(Interpreter.java:487)
at io.github.wysohn.triggerreactor.core.script.interpreter.Interpreter.startWithContextAndInterrupter(Interpreter.java:199)
at io.github.wysohn.triggerreactor.core.manager.trigger.Trigger.start(Trigger.java:275)
... 6 more
Caused by: java.lang.RuntimeException: No trigger found for Named Trigger gui:getMainMenu
at io.github.wysohn.triggerreactor.bukkit.main.AbstractJavaPlugin$3.onCommand(AbstractJavaPlugin.java:334)
at io.github.wysohn.triggerreactor.core.script.interpreter.Interpreter.interpret(Interpreter.java:564)
... 9 more
파일을 찾을 수 없다는 것으로 보입니다.
NamedTrigger 파일 트리:
NamedTriggers
└ gui
└ getMainMenu.trg
사용한 명령어:
#CALL "gui:getMainMenu"
혹시몰라 TriggerReactorCore에 접근하여 조회시,
명령어:
import io.github.wysohn.triggerreactor.core.main.TriggerReactorCore
FOR trg = TriggerReactorCore.getInstance().getNamedTriggerManager().getAllTriggers();
#BROADCAST trg;
ENDFOR;
출력:
[NamedTrigger=getMainMenu sync=false]
로 인식은 됩니다.
#CALL "gui\getMainMenu"로 해결은 됬습니다