mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-05 20:12:54 +00:00
Allow item/item trades still.
This commit is contained in:
parent
6436baf7a4
commit
6d552281d4
2 changed files with 4 additions and 10 deletions
|
@ -164,7 +164,6 @@ public class MetaItemStack
|
|||
{
|
||||
List<String> pages = pager.getPages(split[1]);
|
||||
meta.setPages(pages);
|
||||
|
||||
stack.setItemMeta(meta);
|
||||
}
|
||||
else
|
||||
|
@ -397,8 +396,6 @@ public class MetaItemStack
|
|||
stack.setItemMeta(pmeta);
|
||||
resetPotionMeta();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -479,6 +476,7 @@ public class MetaItemStack
|
|||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
final String enchantmentName = enchantment.getName().toLowerCase(Locale.ENGLISH);
|
||||
if (user != null && !user.isAuthorized("essentials.enchant." + enchantmentName))
|
||||
{
|
||||
|
@ -490,12 +488,7 @@ public class MetaItemStack
|
|||
private boolean hasMetaPermission(final CommandSender sender, final String metaPerm, final boolean graceful, final IEssentials ess) throws Exception
|
||||
{
|
||||
final User user = ess.getUser(sender);
|
||||
if (user == null)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
if (user.isAuthorized("essentials.itemspawn.meta-" + metaPerm))
|
||||
if (user == null || user.isAuthorized("essentials.itemspawn.meta-" + metaPerm))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue