Skip to content

Commit 636bb09

Browse files
authored
Add tipped arrow support to /potion (#6191)
Closes #5576
1 parent 74337ff commit 636bb09

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Essentials/src/main/java/com/earth2me/essentials/commands/Commandpotion.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ protected void run(final Server server, final User user, final String commandLab
4242

4343
boolean holdingPotion = stack.getType() == Material.POTION;
4444
if (!holdingPotion && VersionUtil.getServerBukkitVersion().isHigherThanOrEqualTo(VersionUtil.v1_9_R01)) {
45-
holdingPotion = stack.getType() == Material.SPLASH_POTION || stack.getType() == Material.LINGERING_POTION;
45+
holdingPotion = stack.getType() == Material.SPLASH_POTION || stack.getType() == Material.LINGERING_POTION || stack.getType() == Material.TIPPED_ARROW;
4646
}
4747
if (holdingPotion) {
4848
PotionMeta pmeta = (PotionMeta) stack.getItemMeta();
@@ -75,7 +75,7 @@ protected void run(final Server server, final User user, final String commandLab
7575

7676
@Override
7777
protected List<String> getTabCompleteOptions(final Server server, final User user, final String commandLabel, final String[] args) {
78-
// Note: this enforces an order of effect power duration splash, which the actual command doesn't have. But that's fine.
78+
// Note: this enforces an order of effect power duration splash, which the actual command doesn't have. But that's fine.
7979
if (args.length == 1) {
8080
final List<String> options = Lists.newArrayList();
8181
options.add("clear");

0 commit comments

Comments
 (0)