Third Party Plugin Access From Trigger - TriggerReactor/TriggerReactor GitHub Wiki

Check and Use.

Get Third Party Plugin

If you know exact name of the third party plugin's name, you can use following code to retrieve the Plugin object.

tt = plugin("Factions")

This will save factions plugin object into tt variable.

Check Eligibility

But before actually using it, you need to check whether the tt is set or not.

IF tt
    some actions with tt...
ENDIF

the IF statement is capable of checking the eligibility of the variable.

Use Plugin

Then, to access the public methods, simply use .(dot) like always

IF tt
    tt.someMethod()
ENDIF

If other plugins use static method for API

You can use IMPORT statement which is newly added since 2.1.0

Though, you still have to check if the plugin is available

IF tt
    IMPORT some.full.class.name.SomeClass
    SomeClass.somemethod()
ENDIF

or if you have to pass arguments

IF tt
    IMPORT some.full.class.name.SomeClass
    SomeClass.somemethod(1, 3, 4, "hoho")
ENDIF