mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-02-09 08:52:01 +01:00
Protect us from npe.
This commit is contained in:
parent
fc019af9f6
commit
9ff0571cea
@ -347,7 +347,7 @@ public class MetaItemStack
|
|||||||
if (split[0].equalsIgnoreCase("effect") || (allowShortName && split[0].equalsIgnoreCase("e")))
|
if (split[0].equalsIgnoreCase("effect") || (allowShortName && split[0].equalsIgnoreCase("e")))
|
||||||
{
|
{
|
||||||
pEffectType = Potions.getByName(split[1]);
|
pEffectType = Potions.getByName(split[1]);
|
||||||
if (pEffectType != null)
|
if (pEffectType != null && pEffectType.getName() != null)
|
||||||
{
|
{
|
||||||
if (hasMetaPermission(sender, "potions." + pEffectType.getName().toLowerCase(), false, false, ess))
|
if (hasMetaPermission(sender, "potions." + pEffectType.getName().toLowerCase(), false, false, ess))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user