mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-06-28 18:20:31 +00:00
[Fix] Potion erroring and duration/power fix
This commit is contained in:
parent
5ea1bdec56
commit
2f96ef1e97
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