mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-23 01:27:40 +01: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
@ -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 New Issue
Block a user