mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-04-25 16:09:44 +00:00
Fix null pointer exception on kits with meta
This commit is contained in:
parent
97d176ea27
commit
48261daf89
1 changed files with 1 additions and 1 deletions
|
@ -497,7 +497,7 @@ public class MetaItemStack
|
||||||
|
|
||||||
private boolean hasMetaPermission(final CommandSource sender, final String metaPerm, final boolean graceful, final boolean includeBase, final IEssentials ess) throws Exception
|
private boolean hasMetaPermission(final CommandSource sender, final String metaPerm, final boolean graceful, final boolean includeBase, final IEssentials ess) throws Exception
|
||||||
{
|
{
|
||||||
final User user = sender.isPlayer() ? ess.getUser(sender.getPlayer()) : null;
|
final User user = sender != null && sender.isPlayer() ? ess.getUser(sender.getPlayer()) : null;
|
||||||
return hasMetaPermission(user, metaPerm, graceful, includeBase);
|
return hasMetaPermission(user, metaPerm, graceful, includeBase);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue