mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-08 03:50:06 +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;
|
tree = TreeType.BIG_TREE;
|
||||||
} else if (args.length > 0 && args[0].equalsIgnoreCase("jungle")) {
|
} else if (args.length > 0 && args[0].equalsIgnoreCase("jungle")) {
|
||||||
tree = TreeType.JUNGLE;
|
tree = TreeType.JUNGLE;
|
||||||
|
} else if (args.length > 0 && args[0].equalsIgnoreCase("darkoak")) {
|
||||||
|
tree = TreeType.DARK_OAK;
|
||||||
} else {
|
} else {
|
||||||
throw new NotEnoughArgumentsException();
|
throw new NotEnoughArgumentsException();
|
||||||
}
|
}
|
||||||
@ -44,7 +46,7 @@ public class Commandbigtree extends EssentialsCommand {
|
|||||||
@Override
|
@Override
|
||||||
protected List<String> getTabCompleteOptions(Server server, User user, String commandLabel, String[] args) {
|
protected List<String> getTabCompleteOptions(Server server, User user, String commandLabel, String[] args) {
|
||||||
if (args.length == 1) {
|
if (args.length == 1) {
|
||||||
return Lists.newArrayList("redwood", "tree", "jungle");
|
return Lists.newArrayList("redwood", "tree", "jungle", "darkoak");
|
||||||
} else {
|
} else {
|
||||||
return Collections.emptyList();
|
return Collections.emptyList();
|
||||||
}
|
}
|
||||||
|
@ -32,6 +32,10 @@ public class Commandtree extends EssentialsCommand {
|
|||||||
}
|
}
|
||||||
if (args[0].equalsIgnoreCase("jungle")) {
|
if (args[0].equalsIgnoreCase("jungle")) {
|
||||||
tree = TreeType.SMALL_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) {
|
if (tree == null) {
|
||||||
throw new NotEnoughArgumentsException();
|
throw new NotEnoughArgumentsException();
|
||||||
|
Loading…
Reference in New Issue
Block a user