mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-07-27 07:52:06 +00:00
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:
parent
b566b4a0c6
commit
0e3f48ee54
5 changed files with 11 additions and 4 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue