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
}
}
}