mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-03-02 11:11:58 +01:00
Remove redundant checks in the tree command (#3716)
This commit is contained in:
parent
e2f17f11d3
commit
a5f8e83e03
@ -32,10 +32,6 @@ 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