summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorementalo <ementalo@e251c2fe-e539-e718-e476-b85c1f46cddb>2011-04-15 23:21:40 +0000
committerementalo <ementalo@e251c2fe-e539-e718-e476-b85c1f46cddb>2011-04-15 23:21:40 +0000
commit3a18f9bf33bdb060afefb926b2d727845ec09884 (patch)
treec49474a7ddb538719c3933a15a938058834575f6
parentc1ef4faaf9055076c118b7ab57dc307e986f15ca (diff)
downloadEssentials-3a18f9bf33bdb060afefb926b2d727845ec09884.tar
Essentials-3a18f9bf33bdb060afefb926b2d727845ec09884.tar.gz
Essentials-3a18f9bf33bdb060afefb926b2d727845ec09884.tar.lz
Essentials-3a18f9bf33bdb060afefb926b2d727845ec09884.tar.xz
Essentials-3a18f9bf33bdb060afefb926b2d727845ec09884.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.java4
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;
}