Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Essentials/Essentials.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<HintPath>..\packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="NLog">
<HintPath>..\packages\NLog.4.4.12\lib\net45\NLog.dll</HintPath>
<HintPath>..\..\..\TEST SERVER\NLog.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="PresentationCore" />
Expand Down Expand Up @@ -176,4 +176,4 @@
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
</Project>
3 changes: 3 additions & 0 deletions Essentials/RanksAndPermissionsModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,9 @@ public bool RankHasPermission(string rank, string cmd, ulong forSteamID) {
}

public void HasCommandPermission(Command command, IMyPlayer player, bool hasPermission, ref bool? hasPermissionOverride) {
if (EssentialsPlugin.Instance.Config.EnableRanks)
return;

string playersRank = PlayerAccountModule.GetRank(player.SteamUserId);
string cmd = "";
foreach (var part in command.Path) {
Expand Down