Bring dynamic script language to your server! For Bukkit API, there are few dominant scripts like Skript or VariableTriggers, but I couldn’t really find quite similar plugin in Sponge community. Also, Sponge API is relatively harsh for non-experienced developer. And TriggerReactor can be very easy aid for you.
For example, It’s quite common to use Inventory as an menu and use Items in it as buttons to provide easy access for users. Even though the idea is brilliant, the way to get there is not quite easy. If you were to create a dedicated plugin just to create the inventory menu, that’s quite a lot of work honestly. But with the InventoryTrigger provided by this plugin, it can be created in few minutes.
1. First create InentoryTrigger with /trg i <name> create <size> command. 2. You will write the script. IF trigger == "click" IF slot == 0 #MESSAGE "You clicked item at index 0" #CMD "warp myspawn" ENDIF ENDIF 3. Now, add Item in index 0 of this menu, so users can interact with it. /trg i <name> item 0 (you should be holding the item in hand)
Isn’t this much easier than creating jar every single time? Imagine how much time would it take if you had to construct a plugin just for this simple functionality.
Not only the InventoryTrigger, there are few other built-in triggers ready for you. This includes walking on the block, clicking the block, command, enter/exit area. And if you need special trigger such as Events from Sponge API or third party plugins, You may use those as trigger via CustomTrigger.
More details can be found here:
Sponge Specific Examples:
/trg - type it to see more commands
triggerreactor.admin - give access to all of /trg commands and tools.
Still confused after reading Wiki?
Come stop by our discord channel