mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-21 14:03:54 +02:00
Protect us from npe.
This commit is contained in:
@@ -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))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user