diff options
author | Necrodoom <doomed.war@gmail.com> | 2013-06-18 20:57:30 +0300 |
---|---|---|
committer | Necrodoom <doomed.war@gmail.com> | 2013-06-18 20:57:30 +0300 |
commit | 4172835cb04096b6d706080ee31ce3f70c90bac2 (patch) | |
tree | cd88795abc1a23feeeb33fe2e4d06efb958d3aba | |
parent | b5baf6a6a504a04f29b75e3b320f766cfdfa6431 (diff) | |
download | Essentials-4172835cb04096b6d706080ee31ce3f70c90bac2.tar Essentials-4172835cb04096b6d706080ee31ce3f70c90bac2.tar.gz Essentials-4172835cb04096b6d706080ee31ce3f70c90bac2.tar.lz Essentials-4172835cb04096b6d706080ee31ce3f70c90bac2.tar.xz Essentials-4172835cb04096b6d706080ee31ce3f70c90bac2.zip |
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 +} |