mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-11 20:00:46 +00:00
[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:
parent
c1ef4faaf9
commit
3a18f9bf33
1 changed files with 2 additions and 2 deletions
|
@ -26,9 +26,9 @@ public class Commandnick extends EssentialsCommand
|
||||||
|
|
||||||
if (args.length > 1)
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue