mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-02 17:09:58 +01:00
fix permission check typo (thanks to #4365)
This commit is contained in:
parent
fdb5d85ba5
commit
5338f6b706
@ -27,7 +27,7 @@ public class Commandbook extends EssentialsCommand
|
|||||||
|
|
||||||
if (args.length > 1 && args[0].equalsIgnoreCase("author"))
|
if (args.length > 1 && args[0].equalsIgnoreCase("author"))
|
||||||
{
|
{
|
||||||
if (user.isAuthorized("essentals.book.author") && (isAuthor(bmeta, player) || user.isAuthorized("essentials.book.others")))
|
if (user.isAuthorized("essentials.book.author") && (isAuthor(bmeta, player) || user.isAuthorized("essentials.book.others")))
|
||||||
{
|
{
|
||||||
bmeta.setAuthor(args[1]);
|
bmeta.setAuthor(args[1]);
|
||||||
item.setItemMeta(bmeta);
|
item.setItemMeta(bmeta);
|
||||||
@ -69,7 +69,7 @@ public class Commandbook extends EssentialsCommand
|
|||||||
else if (item.getType() == Material.BOOK_AND_QUILL)
|
else if (item.getType() == Material.BOOK_AND_QUILL)
|
||||||
{
|
{
|
||||||
BookMeta bmeta = (BookMeta)item.getItemMeta();
|
BookMeta bmeta = (BookMeta)item.getItemMeta();
|
||||||
if (!user.isAuthorized("essentals.book.author"))
|
if (!user.isAuthorized("essentials.book.author"))
|
||||||
{
|
{
|
||||||
bmeta.setAuthor(player);
|
bmeta.setAuthor(player);
|
||||||
}
|
}
|
||||||
@ -89,4 +89,4 @@ public class Commandbook extends EssentialsCommand
|
|||||||
String author = bmeta.getAuthor();
|
String author = bmeta.getAuthor();
|
||||||
return author != null && author.equalsIgnoreCase(player);
|
return author != null && author.equalsIgnoreCase(player);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user