diff --git a/Essentials/src/com/earth2me/essentials/MetaItemStack.java b/Essentials/src/com/earth2me/essentials/MetaItemStack.java index b4f0d2125..9a42efec6 100644 --- a/Essentials/src/com/earth2me/essentials/MetaItemStack.java +++ b/Essentials/src/com/earth2me/essentials/MetaItemStack.java @@ -367,6 +367,13 @@ public class MetaItemStack { } else { throw new Exception(tl("invalidPotionMeta", split[1])); } + } else if (split[0].equalsIgnoreCase("amplifier") || (allowShortName && split[0].equalsIgnoreCase("a"))) { + if (NumberUtil.isInt(split[1])) { + validPotionPower = true; + power = Integer.parseInt(split[1]); + } else { + throw new Exception(tl("invalidPotionMeta", split[1])); + } } else if (split[0].equalsIgnoreCase("duration") || (allowShortName && split[0].equalsIgnoreCase("d"))) { if (NumberUtil.isInt(split[1])) { validPotionDuration = true; diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandpotion.java b/Essentials/src/com/earth2me/essentials/commands/Commandpotion.java index 32d317184..3c97f3303 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandpotion.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandpotion.java @@ -87,7 +87,7 @@ public class Commandpotion extends EssentialsCommand { } return options; } else if (args.length == 2 && args[0].startsWith("effect:")) { - return Lists.newArrayList("power:1", "power:2", "power:3", "power:4"); + return Lists.newArrayList("power:1", "power:2", "power:3", "power:4", "amplifier:0", "amplifier:1", "amplifier:2", "amplifier:3"); } else if (args.length == 3 && args[0].startsWith("effect:")) { List options = Lists.newArrayList(); for (String duration : COMMON_DURATIONS) {