diff options
author | ementalo <ementalo@e251c2fe-e539-e718-e476-b85c1f46cddb> | 2011-04-15 23:21:40 +0000 |
---|---|---|
committer | ementalo <ementalo@e251c2fe-e539-e718-e476-b85c1f46cddb> | 2011-04-15 23:21:40 +0000 |
commit | fd610407d886ce539acccd60b51208140be60952 (patch) | |
tree | 929c0b0603566c8850c1661ee88113f24deb70f9 | |
parent | e4ce7857213084ee23834b5a6ef448b1cd9d6f2f (diff) | |
download | Essentials-fd610407d886ce539acccd60b51208140be60952.tar Essentials-fd610407d886ce539acccd60b51208140be60952.tar.gz Essentials-fd610407d886ce539acccd60b51208140be60952.tar.lz Essentials-fd610407d886ce539acccd60b51208140be60952.tar.xz Essentials-fd610407d886ce539acccd60b51208140be60952.zip |
[trunk] change the ability to nick others to permission node "essentials.nick.others"
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1202 e251c2fe-e539-e718-e476-b85c1f46cddb
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandnick.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandnick.java b/Essentials/src/com/earth2me/essentials/commands/Commandnick.java index fb65539b6..5a45c774d 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandnick.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandnick.java @@ -26,9 +26,9 @@ public class Commandnick extends EssentialsCommand if (args.length > 1) { - if (!user.isOp()) + if (!user.isAuthorized("essentials.nick.others")) { - user.sendMessage("§cOnly operators can change the nicknames of other users."); + user.sendMessage("§cYou do not have permission to change the nickname of others"); return; } |