[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
This commit is contained in:
ementalo 2011-04-15 23:21:40 +00:00
parent c1ef4faaf9
commit 3a18f9bf33

View File

@ -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;
}