Improve disposal, /bigtree and /fireball (#2461) @montlikadani

* Allow the Disposal inventory title to be configurable
* Add darkoak to `/bigtree`'s usage message
* Allow potions to be fired with `/fireball`

## Commits
* Update plugin.yml
* Update Commanddisposal.java
* Update messages.properties
* Update Commandfireball.java
* Update SignDisposal.java
* Fix import
* Remove colour code from disposal message
This commit is contained in:
montlikadani 2019-05-30 15:03:12 +02:00 committed by md678685
parent b566b4a0c6
commit 0e3f48ee54
5 changed files with 11 additions and 4 deletions

View file

@ -34,6 +34,10 @@ public class Commandfireball extends EssentialsCommand {
type = ThrownExpBottle.class;
} else if (args[0].equalsIgnoreCase("large")) {
type = LargeFireball.class;
} else if (args[0].equalsIgnoreCase("splashpotion")) {
type = SplashPotion.class;
} else if (args[0].equalsIgnoreCase("lingeringpotion")) {
type = LingeringPotion.class;
}
}
final Vector direction = user.getBase().getEyeLocation().getDirection().multiply(speed);
@ -45,7 +49,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");
return Lists.newArrayList("small", "arrow", "skull", "egg", "snowball", "expbottle", "large", "splashpotion", "lingeringpotion");
} else {
return Collections.emptyList();
}