summaryrefslogtreecommitdiffstats
path: root/bukkit/src
diff options
context:
space:
mode:
authorKrakenied <Krakenied1@gmail.com>2023-05-26 14:09:36 +0200
committerKrakenied <Krakenied1@gmail.com>2023-05-26 14:09:36 +0200
commit6f88c39dc7ea711ffafafc5528c8c7f8641c683e (patch)
tree9e72813aac79f76e0937fc7785b009973aaffc3c /bukkit/src
parent4fa851fafef1fd110058cbab51798d9bb00f1b02 (diff)
Register replenishing task type
Diffstat (limited to 'bukkit/src')
-rw-r--r--bukkit/src/main/java/com/leonardobishop/quests/bukkit/BukkitQuestsPlugin.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/bukkit/src/main/java/com/leonardobishop/quests/bukkit/BukkitQuestsPlugin.java b/bukkit/src/main/java/com/leonardobishop/quests/bukkit/BukkitQuestsPlugin.java
index 0a0900ef..e593fcb2 100644
--- a/bukkit/src/main/java/com/leonardobishop/quests/bukkit/BukkitQuestsPlugin.java
+++ b/bukkit/src/main/java/com/leonardobishop/quests/bukkit/BukkitQuestsPlugin.java
@@ -328,6 +328,10 @@ public class BukkitQuestsPlugin extends JavaPlugin implements Quests {
Class.forName("io.papermc.paper.event.block.PlayerShearBlockEvent");
taskTypeManager.registerTaskType(new BlockshearingTaskType(this));
} catch (ClassNotFoundException ignored) { } // server version cannot support task type
+ try {
+ Class.forName("com.destroystokyo.paper.loottable.LootableInventoryReplenishEvent");
+ taskTypeManager.registerTaskType(new ReplenishingTaskType(this));
+ } catch (ClassNotFoundException ignored) { } // server version cannot support task type
if (Bukkit.getPluginManager().isPluginEnabled("ASkyBlock")) {
taskTypeManager.registerTaskType(new ASkyBlockLevelTaskType(this));
}