Accessing Methods - TriggerReactor/TriggerReactor GitHub Wiki
List of Internal Variables and Its Java-Docs
Work on Most Triggers
| Variables | Link |
|---|---|
| event | [Child of Event] -- Any event that has activated the trigger. #CANCELEVENT is in fact same as event.setCancelled(true) |
| vault | VaultSupport |
| mcmmo | McMmoSupport |
| placeholder | PlaceHolderSupport |
| factions | FactionsSupport |
| coreprotect | CoreprotectSupport |
| protocollib | ProtocolLibSupport |
| worldguard | WorldGuardSupport |
| player | Player |
Click Trigger
| Variables | Link |
|---|---|
| block | Block |
| item | ItemStack |
Walk Trigger
| Variables | Link |
|---|---|
| from | SimpleLocation |
| to | SimpleLocation |
Command Trigger
| Variables | Link |
|---|---|
| command | String -- it's the actual command string |
| args | Array(of String) -- the arguments that the player have entered. args[0] for first argument, args[1] for second, ... |
| argslength | Number -- number of argumenets. Equivalent to args.length |
Sign Trigger
| Variables | Link |
|---|---|
| block | Block |
| item | ItemStack |
Inventory Trigger
| Variables | Link |
|---|---|
| inventory | Inventory |
| item | ItemStack |
| slot | Number -- Clicked slot number |
| trigger | String -- indicates what event activated this trigger. (open, click, and close) |
Repeat Trigger
| Variables | Link |
|---|---|
| trigger | String -- indicates what event activated this trigger. (init, repeat, and stop) |