Welcome to the Hangar Open Beta. Please report any issue you encounter on GitHub!
Integration
You should add the plugin to your dependency list of your plugin.
Add it as a dependency
plugin.yml
name: ...
version: ...
authors:
- ...
- ...
...
depend:
- DeathChest
Use it in your plugin
public class TestPlugin extends JavaPlugin {
@Override
public void onEnable() {
DeathChestService load = getServer().getServicesManager().load(DeathChestService.class);
if (load != null) {
DeathChest chest = load.createDeathChest(location, items); // This creates a new chest with the items in the world
}
}
}