-
Notifications
You must be signed in to change notification settings - Fork 2
Developer API

Since Version 1.6.0 there are tremendously changes in RandomLootChest API. A lot has changed since first events, objects, etc.
This feature is in beta and it may contains some bugs or something, just keep in mind! Thanks and have fun!

There are few events in RandomLootChest, some of them are more useful than others, but sometimes they can help a lot.
- ChestAddEvent: This event fires when someone adds chest anywhere on the map using Chests Wand.
- ChestRemoveEvent: This event fires when someone removes chest anywhere on the map using Chests Wand.
- CombatEndPlayerEvent: This event fires when combat has ended for player
- CombatStartPlayerEvent: This event fires when combat has started for player
- CooldownExpiredEvent: This event fires when cooldown on specific chest has expired for player
- CooldownSetEvent: This event fires when cooldown on chest has been set
- ExtensionDisableEvent: This event fires when any extension has been disabled
- ExtensionEnableEvent: This event fires when any extension has been enabled

This is new way of adding features to RandomLootChest. All of the things that are not supposed to be in RandomLootChest, will be published as an addon/extension! Of course, the community also can create new features by creating extensions to this plugin!
It's useful for those, who wants more than plugin offers itself. If you want to create for yourself or for RandomLootChest community, it's pretty simple! But first you need is that to add RandomLootChest dependency.
<repositories>
<repository>
<id>rlc-repo</id>
<url>https://jitpack.io/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.github.DreamDevs</groupId>
<artifactId>RandomLootChest</artifactId>
<version>1.6.0-BETA</version>
<scope>provided</scope>
</dependency>
</dependencies>