From 60c4e75a1c5bde447b0eb0a4da61612b9f2c44ff Mon Sep 17 00:00:00 2001 From: Mickey42302 <46900084+Mickey42302@users.noreply.github.com> Date: Thu, 13 Jun 2019 23:56:54 -0400 Subject: [PATCH] Add Dragon Fireballs to "/fireball". --- .../src/com/earth2me/essentials/commands/Commandfireball.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandfireball.java b/Essentials/src/com/earth2me/essentials/commands/Commandfireball.java index 0768aafcd..19d579119 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandfireball.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandfireball.java @@ -38,6 +38,8 @@ public class Commandfireball extends EssentialsCommand { type = SplashPotion.class; } else if (args[0].equalsIgnoreCase("lingeringpotion")) { type = LingeringPotion.class; + } else if (args[0].equalsIgnoreCase("dragon")) { + type = DragonFireball.class; } } final Vector direction = user.getBase().getEyeLocation().getDirection().multiply(speed); @@ -49,7 +51,7 @@ public class Commandfireball extends EssentialsCommand { @Override protected List getTabCompleteOptions(final Server server, final User user, final String commandLabel, final String[] args) { if (args.length == 1) { - return Lists.newArrayList("small", "arrow", "skull", "egg", "snowball", "expbottle", "large", "splashpotion", "lingeringpotion"); + return Lists.newArrayList("small", "arrow", "skull", "egg", "snowball", "expbottle", "large", "splashpotion", "lingeringpotion", "dragon"); } else { return Collections.emptyList(); }