mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-06 08:28:10 +01:00
Add Dragon Fireballs to "/fireball".
This commit is contained in:
parent
ccf7c48bf1
commit
60c4e75a1c
@ -38,6 +38,8 @@ public class Commandfireball extends EssentialsCommand {
|
|||||||
type = SplashPotion.class;
|
type = SplashPotion.class;
|
||||||
} else if (args[0].equalsIgnoreCase("lingeringpotion")) {
|
} else if (args[0].equalsIgnoreCase("lingeringpotion")) {
|
||||||
type = LingeringPotion.class;
|
type = LingeringPotion.class;
|
||||||
|
} else if (args[0].equalsIgnoreCase("dragon")) {
|
||||||
|
type = DragonFireball.class;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
final Vector direction = user.getBase().getEyeLocation().getDirection().multiply(speed);
|
final Vector direction = user.getBase().getEyeLocation().getDirection().multiply(speed);
|
||||||
@ -49,7 +51,7 @@ public class Commandfireball extends EssentialsCommand {
|
|||||||
@Override
|
@Override
|
||||||
protected List<String> getTabCompleteOptions(final Server server, final User user, final String commandLabel, final String[] args) {
|
protected List<String> getTabCompleteOptions(final Server server, final User user, final String commandLabel, final String[] args) {
|
||||||
if (args.length == 1) {
|
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 {
|
} else {
|
||||||
return Collections.emptyList();
|
return Collections.emptyList();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user