Add Dragon Fireballs to "/fireball".

This commit is contained in:
Mickey42302 2019-06-13 23:56:54 -04:00 committed by md678685
parent ccf7c48bf1
commit 60c4e75a1c

View file

@ -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<String> 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();
}