mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-15 02:59:06 +02: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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user