Added TreeSpecies to disguise parameter options

This commit is contained in:
libraryaddict 2017-02-24 01:09:21 +13:00
parent bcc4bdd2a2
commit 82db8d190b
2 changed files with 6 additions and 0 deletions

View File

@ -836,6 +836,10 @@ public class DisguiseParser {
// Parse to ocelot type
value = callValueOf(param, valueString, methodName, "a ocelot type");
}
else if (param.getSimpleName().equals("TreeSpecies")) {
// Parse to ocelot type
value = callValueOf(param, valueString, methodName, "a tree species");
}
else if (param == PotionEffectType.class) {
// Parse to potion effect
try {

View File

@ -10,6 +10,7 @@ import java.util.Iterator;
import org.apache.commons.lang.StringUtils;
import org.bukkit.Art;
import org.bukkit.Material;
import org.bukkit.TreeSpecies;
import org.bukkit.block.BlockFace;
import org.bukkit.entity.Horse;
import org.bukkit.entity.Llama;
@ -140,6 +141,7 @@ public class ReflectionFlagWatchers {
paramList.add(new ParamInfo(BlockFace.class, Arrays.copyOf(BlockFace.values(), 5), "Direction",
"View the five directions usable on player setSleeping disguise"));
paramList.add(new ParamInfo(Rabbit.Type.class, "Rabbit Type", "View the kinds of rabbits you can turn into"));
paramList.add(new ParamInfo(TreeSpecies.class, "Tree Species", "View the different types of tree species"));
ArrayList<String> potionEnums = new ArrayList<String>();