From f4cb5f58e5a465eb61d31b48533a135a7e7f90e9 Mon Sep 17 00:00:00 2001 From: Gabriel Tofvesson Date: Sat, 24 Jul 2021 00:04:02 +0200 Subject: [PATCH] Integrate new Quality-of-Life commands --- src/dev/w1zzrd/invtweaks/InvTweaksPlugin.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/dev/w1zzrd/invtweaks/InvTweaksPlugin.java b/src/dev/w1zzrd/invtweaks/InvTweaksPlugin.java index 4c600e6..cfec8e3 100644 --- a/src/dev/w1zzrd/invtweaks/InvTweaksPlugin.java +++ b/src/dev/w1zzrd/invtweaks/InvTweaksPlugin.java @@ -43,6 +43,8 @@ public final class InvTweaksPlugin extends JavaPlugin { private NamedChestCommand namedChestCommandExecutor; private FindCommandExecutor findCommandExecutor; private CapitatorCommand capitatorCommand; + private GrowUpCommand growUpCommand; + private ReWoolCommand reWoolCommand; private PersistentData data; private NamedChestManager chestManager; private EnchantmentRegistryEntry capitatorEnchantment = null; @@ -149,6 +151,8 @@ public final class InvTweaksPlugin extends JavaPlugin { searchCommandExecutor = new SearchCommandExecutor(this, "search"); namedChestCommandExecutor = new NamedChestCommand(chestManager); findCommandExecutor = new FindCommandExecutor(this); + growUpCommand = new GrowUpCommand(); + reWoolCommand = new ReWoolCommand(); if (activateCapitator) capitatorCommand = new CapitatorCommand(capitatorEnchantment.getEnchantment()); @@ -159,6 +163,8 @@ public final class InvTweaksPlugin extends JavaPlugin { Objects.requireNonNull(getCommand("search")).setExecutor(searchCommandExecutor); Objects.requireNonNull(getCommand("chestname")).setExecutor(namedChestCommandExecutor); Objects.requireNonNull(getCommand("find")).setExecutor(findCommandExecutor); + Objects.requireNonNull(getCommand("growup")).setExecutor(growUpCommand); + Objects.requireNonNull(getCommand("rewool")).setExecutor(reWoolCommand); if (activateCapitator) Objects.requireNonNull(getCommand("capitator")).setExecutor(capitatorCommand);