mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-06-29 02:30:01 +00:00
Potion erroring and duration/power fix
This commit is contained in:
parent
5e4659e6ae
commit
ce51a07bf1
15 changed files with 31 additions and 14 deletions
|
@ -42,6 +42,11 @@ public class Commandpotion extends EssentialsCommand
|
|||
}
|
||||
throw new NotEnoughArgumentsException(_("potions", Util.joinList(potionslist.toArray())));
|
||||
}
|
||||
|
||||
if (args.length < 3)
|
||||
{
|
||||
throw new NotEnoughArgumentsException();
|
||||
}
|
||||
|
||||
if (stack.getType() == Material.POTION)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue