Change potioneffect to potioneffecttype. Fix not having it in displayed opens.
This commit is contained in:
		@@ -235,13 +235,15 @@ public abstract class BaseDisguiseCommand implements CommandExecutor {
 | 
			
		||||
                            }
 | 
			
		||||
 | 
			
		||||
                            // Parse to potion effect
 | 
			
		||||
                        } else if (param == PotionEffect.class) {
 | 
			
		||||
                        } else if (param == PotionEffectType.class) {
 | 
			
		||||
                            try {
 | 
			
		||||
                                PotionEffectType potionType = PotionEffectType.getByName(valueString.toUpperCase());
 | 
			
		||||
                                if (potionType == null && isNumeric(valueString)) {
 | 
			
		||||
                                    potionType = PotionEffectType.getById(Integer.parseInt(valueString));
 | 
			
		||||
                                }
 | 
			
		||||
                                value = new PotionEffect(potionType, 0, 0);
 | 
			
		||||
                                if (potionType == null)
 | 
			
		||||
                                    throw new Exception();
 | 
			
		||||
                                value = potionType;
 | 
			
		||||
                            } catch (Exception ex) {
 | 
			
		||||
                                throw parseToException("potioneffect type", valueString, methodName);
 | 
			
		||||
                            }
 | 
			
		||||
 
 | 
			
		||||
@@ -104,6 +104,8 @@ public class DisguiseHelpCommand extends BaseDisguiseCommand {
 | 
			
		||||
                                    valueType = "Ocelot type";
 | 
			
		||||
                                } else if (Profession.class == c) {
 | 
			
		||||
                                    valueType = "Villager Profession";
 | 
			
		||||
                                } else if (PotionEffectType.class == c) {
 | 
			
		||||
                                    valueType = "Potioneffect Type";
 | 
			
		||||
                                }
 | 
			
		||||
                                if (valueType != null) {
 | 
			
		||||
                                    methods.add(ChatColor.RED + method.getName() + ChatColor.DARK_RED + "(" + ChatColor.GREEN
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user