Skip to content

Commit

Permalink
6.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
terminator97 committed Apr 28, 2024
1 parent f30fc96 commit cf8e80b
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 26 deletions.
8 changes: 7 additions & 1 deletion SCPUtils/Commands/SetColor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,18 @@ public bool Execute(ArraySegment<string> arguments, ICommandSender sender, out s
Exiled.API.Features.Player player = Exiled.API.Features.Player.Get(target);

if (color == "rainbow" || color == "random" || color == ScpUtils.StaticInstance.Translation.SetcolorRainbow.ToLower())
{
{
if (!ScpUtils.StaticInstance.Config.AllowRainbowTags)
{
response = ScpUtils.StaticInstance.Translation.SetcolorRainbowdisabled;
return false;
}

if (!sender.CheckPermission("scputils.rainbowtag"))
{
response = ScpUtils.StaticInstance.Translation.NoRainbowPermission;
return false;
}
}

if (player != null)
Expand Down
4 changes: 2 additions & 2 deletions SCPUtils/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ public class ScpUtils : Features.Plugin<Configs, Translations>
{
public override string Author { get; } = "terminator97";
public override string Name { get; } = "SCPUtils";
public override Version Version { get; } = new Version(6, 5, 1);
public override Version RequiredExiledVersion { get; } = new Version(8, 7, 1);
public override Version Version { get; } = new Version(6, 5, 2);
public override Version RequiredExiledVersion { get; } = new Version(8, 8, 1);
public EventHandlers EventHandlers { get; private set; }
public Functions Functions { get; private set; }
public Player Player { get; private set; }
Expand Down
40 changes: 18 additions & 22 deletions SCPUtils/SCPUtils.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,6 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>D:\SteamLibrary\steamapps\common\SCP Secret Laboratory Dedicated Server\SCPSL_Data\Managed\Assembly-CSharp-firstpass.dll</HintPath>
</Reference>
<Reference Include="Assembly-CSharp-Publicized, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\EXILED.8.7.1\lib\net48\Assembly-CSharp-Publicized.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Assembly-CSharp_publicized, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>D:\SteamLibrary\steamapps\common\SCP Secret Laboratory Dedicated Server\SCPSL_Data\Managed\publicized_assemblies\Assembly-CSharp_publicized.dll</HintPath>
Expand All @@ -59,34 +55,34 @@
<HintPath>..\packages\AWSSDK.SecurityToken.3.7.100.14\lib\net45\AWSSDK.SecurityToken.dll</HintPath>
</Reference>
<Reference Include="CommandSystem.Core, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\EXILED.8.7.1\lib\net48\CommandSystem.Core.dll</HintPath>
<HintPath>..\packages\EXILED.8.8.1\lib\net48\CommandSystem.Core.dll</HintPath>
</Reference>
<Reference Include="Costura, Version=5.8.0.0, Culture=neutral, PublicKeyToken=9919ef960d84173d, processorArchitecture=MSIL">
<HintPath>..\packages\Costura.Fody.5.8.0-alpha0098\lib\netstandard1.0\Costura.dll</HintPath>
</Reference>
<Reference Include="DnsClient, Version=1.6.1.0, Culture=neutral, PublicKeyToken=4574bb5573c51424, processorArchitecture=MSIL">
<HintPath>..\packages\DnsClient.1.6.1\lib\net471\DnsClient.dll</HintPath>
</Reference>
<Reference Include="Exiled.API, Version=8.7.1.0, Culture=neutral, processorArchitecture=AMD64">
<HintPath>..\packages\EXILED.8.7.1\lib\net48\Exiled.API.dll</HintPath>
<Reference Include="Exiled.API, Version=8.8.1.0, Culture=neutral, processorArchitecture=AMD64">
<HintPath>..\packages\EXILED.8.8.1\lib\net48\Exiled.API.dll</HintPath>
</Reference>
<Reference Include="Exiled.CreditTags, Version=8.7.1.0, Culture=neutral, processorArchitecture=AMD64">
<HintPath>..\packages\EXILED.8.7.1\lib\net48\Exiled.CreditTags.dll</HintPath>
<Reference Include="Exiled.CreditTags, Version=8.8.1.0, Culture=neutral, processorArchitecture=AMD64">
<HintPath>..\packages\EXILED.8.8.1\lib\net48\Exiled.CreditTags.dll</HintPath>
</Reference>
<Reference Include="Exiled.CustomItems, Version=8.7.1.0, Culture=neutral, processorArchitecture=AMD64">
<HintPath>..\packages\EXILED.8.7.1\lib\net48\Exiled.CustomItems.dll</HintPath>
<Reference Include="Exiled.CustomItems, Version=8.8.1.0, Culture=neutral, processorArchitecture=AMD64">
<HintPath>..\packages\EXILED.8.8.1\lib\net48\Exiled.CustomItems.dll</HintPath>
</Reference>
<Reference Include="Exiled.CustomRoles, Version=8.7.1.0, Culture=neutral, processorArchitecture=AMD64">
<HintPath>..\packages\EXILED.8.7.1\lib\net48\Exiled.CustomRoles.dll</HintPath>
<Reference Include="Exiled.CustomRoles, Version=8.8.1.0, Culture=neutral, processorArchitecture=AMD64">
<HintPath>..\packages\EXILED.8.8.1\lib\net48\Exiled.CustomRoles.dll</HintPath>
</Reference>
<Reference Include="Exiled.Events, Version=8.7.1.0, Culture=neutral, processorArchitecture=AMD64">
<HintPath>..\packages\EXILED.8.7.1\lib\net48\Exiled.Events.dll</HintPath>
<Reference Include="Exiled.Events, Version=8.8.1.0, Culture=neutral, processorArchitecture=AMD64">
<HintPath>..\packages\EXILED.8.8.1\lib\net48\Exiled.Events.dll</HintPath>
</Reference>
<Reference Include="Exiled.Loader, Version=8.7.1.0, Culture=neutral, processorArchitecture=AMD64">
<HintPath>..\packages\EXILED.8.7.1\lib\net48\Exiled.Loader.dll</HintPath>
<Reference Include="Exiled.Loader, Version=8.8.1.0, Culture=neutral, processorArchitecture=AMD64">
<HintPath>..\packages\EXILED.8.8.1\lib\net48\Exiled.Loader.dll</HintPath>
</Reference>
<Reference Include="Exiled.Permissions, Version=8.7.1.0, Culture=neutral, processorArchitecture=AMD64">
<HintPath>..\packages\EXILED.8.7.1\lib\net48\Exiled.Permissions.dll</HintPath>
<Reference Include="Exiled.Permissions, Version=8.8.1.0, Culture=neutral, processorArchitecture=AMD64">
<HintPath>..\packages\EXILED.8.8.1\lib\net48\Exiled.Permissions.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Bcl.AsyncInterfaces, Version=5.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.Bcl.AsyncInterfaces.5.0.0\lib\net461\Microsoft.Bcl.AsyncInterfaces.dll</HintPath>
Expand Down Expand Up @@ -122,10 +118,10 @@
<HintPath>..\packages\Newtonsoft.Json.13.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="NorthwoodLib, Version=1.3.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\EXILED.8.7.1\lib\net48\NorthwoodLib.dll</HintPath>
<HintPath>..\packages\EXILED.8.8.1\lib\net48\NorthwoodLib.dll</HintPath>
</Reference>
<Reference Include="PluginAPI, Version=13.1.2.0, Culture=neutral, processorArchitecture=AMD64">
<HintPath>..\packages\EXILED.8.7.1\lib\net48\PluginAPI.dll</HintPath>
<HintPath>..\packages\EXILED.8.8.1\lib\net48\PluginAPI.dll</HintPath>
</Reference>
<Reference Include="SharpCompress, Version=0.30.1.0, Culture=neutral, PublicKeyToken=afb0a02973931d96, processorArchitecture=MSIL">
<HintPath>..\packages\SharpCompress.0.30.1\lib\net461\SharpCompress.dll</HintPath>
Expand Down Expand Up @@ -298,7 +294,7 @@
<HintPath>D:\SteamLibrary\steamapps\common\SCP Secret Laboratory Dedicated Server\SCPSL_Data\Managed\UnityEngine.PhysicsModule.dll</HintPath>
</Reference>
<Reference Include="YamlDotNet, Version=11.0.0.0, Culture=neutral, PublicKeyToken=ec19458f3c15af5e, processorArchitecture=MSIL">
<HintPath>..\packages\EXILED.8.7.1\lib\net48\YamlDotNet.dll</HintPath>
<HintPath>..\packages\EXILED.8.8.1\lib\net48\YamlDotNet.dll</HintPath>
</Reference>
<Reference Include="ZstdSharp, Version=0.6.2.0, Culture=neutral, PublicKeyToken=8d151af33a4ad5cf, processorArchitecture=MSIL">
<HintPath>..\packages\ZstdSharp.Port.0.6.2\lib\net461\ZstdSharp.dll</HintPath>
Expand Down
2 changes: 2 additions & 0 deletions SCPUtils/Translations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,8 @@ public class Translations : ITranslation

public string SetcolorRainbow { get; private set; } = "rainbow";

public string NoRainbowPermission { get; private set; } = "<color=red>You do not have scputils.rainbowtag permission. If this is an error contact server owner</color>";

[Description("Setname command:")]

public string SetnameCommand { get; private set; } = "scputils_set_name";
Expand Down
2 changes: 1 addition & 1 deletion SCPUtils/packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<package id="AWSSDK.SecurityToken" version="3.7.100.14" targetFramework="net48" />
<package id="Costura.Fody" version="5.8.0-alpha0098" targetFramework="net48" developmentDependency="true" />
<package id="DnsClient" version="1.6.1" targetFramework="net48" />
<package id="EXILED" version="8.7.1" targetFramework="net48" />
<package id="EXILED" version="8.8.1" targetFramework="net48" />
<package id="Fody" version="6.6.0" targetFramework="net48" developmentDependency="true" />
<package id="Lib.Harmony" version="2.2.1" targetFramework="net48" />
<package id="Microsoft.Bcl.AsyncInterfaces" version="5.0.0" targetFramework="net48" />
Expand Down

0 comments on commit cf8e80b

Please sign in to comment.