mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-05 03:53:41 +00:00
Protect us from npe.
This commit is contained in:
parent
fc019af9f6
commit
9ff0571cea
1 changed files with 1 additions and 1 deletions
|
@ -347,7 +347,7 @@ public class MetaItemStack
|
|||
if (split[0].equalsIgnoreCase("effect") || (allowShortName && split[0].equalsIgnoreCase("e")))
|
||||
{
|
||||
pEffectType = Potions.getByName(split[1]);
|
||||
if (pEffectType != null)
|
||||
if (pEffectType != null && pEffectType.getName() != null)
|
||||
{
|
||||
if (hasMetaPermission(sender, "potions." + pEffectType.getName().toLowerCase(), false, false, ess))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue