From fd610407d886ce539acccd60b51208140be60952 Mon Sep 17 00:00:00 2001 From: ementalo Date: Fri, 15 Apr 2011 23:21:40 +0000 Subject: [PATCH] [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 --- .../src/com/earth2me/essentials/commands/Commandnick.java | 4 ++-- 1 file 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; }