mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-06 20:43:11 +00:00
[Feature] Adds meta permissions
TL MetaItemStack.java Some meta cleanup Parameter refactor for clarity Full list of added perms http://goo.gl/do1XL
This commit is contained in:
parent
292f8a8799
commit
4aaf0eda79
17 changed files with 190 additions and 40 deletions
|
@ -27,7 +27,7 @@ public class Commandbook extends EssentialsCommand
|
|||
|
||||
if (args.length > 1 && args[0].equalsIgnoreCase("author"))
|
||||
{
|
||||
if (user.isAuthorized("essentals.book.author"))
|
||||
if (user.isAuthorized("essentals.book.author") && (isAuthor(bmeta, player) || user.isAuthorized("essentials.book.others")))
|
||||
{
|
||||
bmeta.setAuthor(args[1]);
|
||||
item.setItemMeta(bmeta);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue