mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-03-02 11:11:58 +01:00
Added acacia and dark oak tree types (#2001) @montlikadani
* Update Commandbigtree.java * Update Commandbigtree.java * Update Commandtree.java
This commit is contained in:
parent
a7fcafb245
commit
a2a95ed840
@ -27,6 +27,8 @@ public class Commandbigtree extends EssentialsCommand {
|
||||
tree = TreeType.BIG_TREE;
|
||||
} else if (args.length > 0 && args[0].equalsIgnoreCase("jungle")) {
|
||||
tree = TreeType.JUNGLE;
|
||||
} else if (args.length > 0 && args[0].equalsIgnoreCase("darkoak")) {
|
||||
tree = TreeType.DARK_OAK;
|
||||
} else {
|
||||
throw new NotEnoughArgumentsException();
|
||||
}
|
||||
@ -44,7 +46,7 @@ public class Commandbigtree extends EssentialsCommand {
|
||||
@Override
|
||||
protected List<String> getTabCompleteOptions(Server server, User user, String commandLabel, String[] args) {
|
||||
if (args.length == 1) {
|
||||
return Lists.newArrayList("redwood", "tree", "jungle");
|
||||
return Lists.newArrayList("redwood", "tree", "jungle", "darkoak");
|
||||
} else {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
|
@ -32,6 +32,10 @@ public class Commandtree extends EssentialsCommand {
|
||||
}
|
||||
if (args[0].equalsIgnoreCase("jungle")) {
|
||||
tree = TreeType.SMALL_JUNGLE;
|
||||
} else if (args[0].equalsIgnoreCase("acacia")) {
|
||||
tree = TreeType.ACACIA;
|
||||
} else if (args[0].equalsIgnoreCase("birch")) {
|
||||
tree = TreeType.BIRCH;
|
||||
}
|
||||
if (tree == null) {
|
||||
throw new NotEnoughArgumentsException();
|
||||
|
Loading…
Reference in New Issue
Block a user