From 7105ed7b1a2dd22ad4f7bdaf46d47cbc55f972cd Mon Sep 17 00:00:00 2001 From: JRoy <10731363+JRoy@users.noreply.github.com> Date: Sat, 28 Jun 2025 18:59:23 -0700 Subject: [PATCH] Add tipped arrow support to /potion --- .../java/com/earth2me/essentials/commands/Commandpotion.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Essentials/src/main/java/com/earth2me/essentials/commands/Commandpotion.java b/Essentials/src/main/java/com/earth2me/essentials/commands/Commandpotion.java index 954cedd535e..61beb76dc50 100644 --- a/Essentials/src/main/java/com/earth2me/essentials/commands/Commandpotion.java +++ b/Essentials/src/main/java/com/earth2me/essentials/commands/Commandpotion.java @@ -42,7 +42,7 @@ protected void run(final Server server, final User user, final String commandLab boolean holdingPotion = stack.getType() == Material.POTION; if (!holdingPotion && VersionUtil.getServerBukkitVersion().isHigherThanOrEqualTo(VersionUtil.v1_9_R01)) { - holdingPotion = stack.getType() == Material.SPLASH_POTION || stack.getType() == Material.LINGERING_POTION; + holdingPotion = stack.getType() == Material.SPLASH_POTION || stack.getType() == Material.LINGERING_POTION || stack.getType() == Material.TIPPED_ARROW; } if (holdingPotion) { PotionMeta pmeta = (PotionMeta) stack.getItemMeta(); @@ -75,7 +75,7 @@ protected void run(final Server server, final User user, final String commandLab @Override protected List getTabCompleteOptions(final Server server, final User user, final String commandLabel, final String[] args) { - // Note: this enforces an order of effect power duration splash, which the actual command doesn't have. But that's fine. + // Note: this enforces an order of effect power duration splash, which the actual command doesn't have. But that's fine. if (args.length == 1) { final List options = Lists.newArrayList(); options.add("clear");