Skip to content

Commit b0c2cde

Browse files
committed
permissions fix
and also a grammar fix in `RunningScriptsCommand`
1 parent 93aaf60 commit b0c2cde

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

Code/Plugin/Commands/HelpSystem/DocsCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public class DocsCommand : ICommand, IUsePermissions
1212
{
1313
public bool Execute(ArraySegment<string> arguments, ICommandSender sender, out string response)
1414
{
15-
if (!sender.HasPermissions(Permission))
15+
if (!sender.HasAnyPermission(Permission))
1616
{
1717
response = "You do not have permission to create documentation.";
1818
return false;

Code/Plugin/Commands/MethodCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class MethodCommand : ICommand, IUsePermissions
1414

1515
public bool Execute(ArraySegment<string> arguments, ICommandSender sender, out string response)
1616
{
17-
if (!sender.HasPermissions(RunPermission))
17+
if (!sender.HasAnyPermission(RunPermission))
1818
{
1919
response = "You do not have permission to run scripts.";
2020
return false;

Code/Plugin/Commands/ReloadCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public class ReloadCommand : ICommand, IUsePermissions
1111
{
1212
public bool Execute(ArraySegment<string> arguments, ICommandSender sender, out string response)
1313
{
14-
if (!sender.HasPermissions(Permission))
14+
if (!sender.HasAnyPermission(Permission))
1515
{
1616
response = "You do not have permission to reload scripts.";
1717
return false;

Code/Plugin/Commands/RunCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public class RunCommand : ICommand, IUsePermissions
1212
{
1313
public bool Execute(ArraySegment<string> arguments, ICommandSender sender, out string response)
1414
{
15-
if (!sender.HasPermissions(Permission))
15+
if (!sender.HasAnyPermission(Permission))
1616
{
1717
response = "You do not have permission to run scripts.";
1818
return false;

Code/Plugin/Commands/RunningScriptsCommand.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ public class RunningScriptsCommand : ICommand, IUsePermissions
1111
{
1212
public bool Execute(ArraySegment<string> arguments, ICommandSender sender, out string response)
1313
{
14-
if (!sender.HasPermissions(Permission))
14+
if (!sender.HasAnyPermission(Permission))
1515
{
16-
response = "You do not have permission see running scripts.";
16+
response = "You do not have permission to see running scripts.";
1717
return false;
1818
}
1919

Code/Plugin/Commands/StopAllCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public class StopAllCommand : ICommand, IUsePermissions
1111
{
1212
public bool Execute(ArraySegment<string> arguments, ICommandSender sender, out string response)
1313
{
14-
if (!sender.HasPermissions(Permission))
14+
if (!sender.HasAnyPermission(Permission))
1515
{
1616
response = "You do not have permission to stop scripts.";
1717
return false;

Code/Plugin/Commands/StopCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public class StopCommand : ICommand, IUsePermissions
1111
{
1212
public bool Execute(ArraySegment<string> arguments, ICommandSender sender, out string response)
1313
{
14-
if (!sender.HasPermissions(Permission))
14+
if (!sender.HasAnyPermission(Permission))
1515
{
1616
response = "You do not have permission to stop scripts.";
1717
return false;

0 commit comments

Comments
 (0)