Skip to content

Commit

Permalink
1.6.3
Browse files Browse the repository at this point in the history
  • Loading branch information
terminator-97 committed Apr 14, 2020
1 parent 6f791d7 commit eeadcde
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions SCPUtils/Commands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -319,12 +319,10 @@ public void OnRaCommand(ref RACommandEvent ev)

private bool IsAllowed(CommandSender sender, string permission)
{
if (sender == null) return false;
else if (sender.SenderId == "GAME CONSOLE") return true;
else if (EXILED.Extensions.Player.GetPlayer(sender.Nickname).CheckPermission(permission)) return true;
else return false;
ReferenceHub player;
return sender != null && (sender.SenderId == "GAME CONSOLE" || (player = EXILED.Extensions.Player.GetPlayer(sender.Nickname)) == null || player.CheckPermission(permission));

}

}

}
2 changes: 1 addition & 1 deletion SCPUtils/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace SCPUtils
public class SCPUtils : Plugin
{
public static bool IsStarted { get; set; }
public static string pluginVersion = "1.6.2";
public static string pluginVersion = "1.6.3";
public override string getName { get; } = "SCPUtils";

public EventHandlers EventHandlers { get; private set; }
Expand Down

0 comments on commit eeadcde

Please sign in to comment.