diff options
author | GunfighterJ <joseph.jenniges@gmail.com> | 2013-06-18 11:01:17 -0700 |
---|---|---|
committer | GunfighterJ <joseph.jenniges@gmail.com> | 2013-06-18 11:01:17 -0700 |
commit | 8ae0ea98a3f37ea581757a8f7f0a9ffa8103ce3d (patch) | |
tree | ae18ab8c357f75b0e38be3c7d0dc5786b36b0f2c | |
parent | fdb5d85ba54c9a55a795109f596a0754b80847b8 (diff) | |
parent | 5338f6b70639fb00fc872140523fd696abae04e2 (diff) | |
download | Essentials-8ae0ea98a3f37ea581757a8f7f0a9ffa8103ce3d.tar Essentials-8ae0ea98a3f37ea581757a8f7f0a9ffa8103ce3d.tar.gz Essentials-8ae0ea98a3f37ea581757a8f7f0a9ffa8103ce3d.tar.lz Essentials-8ae0ea98a3f37ea581757a8f7f0a9ffa8103ce3d.tar.xz Essentials-8ae0ea98a3f37ea581757a8f7f0a9ffa8103ce3d.zip |
Merge pull request #489 from necrodoom/patch-23
fix permission check typo (thanks to #4365)
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandbook.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandbook.java b/Essentials/src/com/earth2me/essentials/commands/Commandbook.java index 897069b93..afa57d186 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandbook.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandbook.java @@ -27,7 +27,7 @@ public class Commandbook extends EssentialsCommand 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]); item.setItemMeta(bmeta); @@ -69,7 +69,7 @@ public class Commandbook extends EssentialsCommand else if (item.getType() == Material.BOOK_AND_QUILL) { BookMeta bmeta = (BookMeta)item.getItemMeta(); - if (!user.isAuthorized("essentals.book.author")) + if (!user.isAuthorized("essentials.book.author")) { bmeta.setAuthor(player); } @@ -89,4 +89,4 @@ public class Commandbook extends EssentialsCommand String author = bmeta.getAuthor(); return author != null && author.equalsIgnoreCase(player); } -}
\ No newline at end of file +} |