Handle events using path of the class package
kassadGLA opened this issue · 0 comments
kassadGLA commented
Hello.
I suggest adding the opportunity to use the API for events directly using the full path of the class package in the Denizen scripts.
Approximate code for an example:
script:
type: APIevent
events:
on ct.ajneb97.api.TurretPlaceEvent:
- define locationX <getLocation().getX()>
- define locationY <getLocation().getY()>
- define locationZ <getLocation().getZ()>
In this example, the API of the ComplexTurrets plugin is used and the coordinates of a turret that a player is deploying is obtained.
The idea is borrowed from another plugin which is ConditionalEvents which is a simple version of the scripting engine and has this functionality. At the moment, I must use this plugin as an intermediary between Denizen and the target plugin whose API is to be used. LINK
Best regards.