From cf8e80be98e6c5efcc235b27dbdc4ae5b141da5e Mon Sep 17 00:00:00 2001 From: terminator97 Date: Sun, 28 Apr 2024 17:32:25 +0200 Subject: [PATCH] 6.5.2 --- SCPUtils/Commands/SetColor.cs | 8 ++++++- SCPUtils/Plugin.cs | 4 ++-- SCPUtils/SCPUtils.csproj | 40 ++++++++++++++++------------------- SCPUtils/Translations.cs | 2 ++ SCPUtils/packages.config | 2 +- 5 files changed, 30 insertions(+), 26 deletions(-) diff --git a/SCPUtils/Commands/SetColor.cs b/SCPUtils/Commands/SetColor.cs index 67e6d40..ca5d8f7 100644 --- a/SCPUtils/Commands/SetColor.cs +++ b/SCPUtils/Commands/SetColor.cs @@ -103,12 +103,18 @@ public bool Execute(ArraySegment 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) diff --git a/SCPUtils/Plugin.cs b/SCPUtils/Plugin.cs index d82343d..2c9985a 100644 --- a/SCPUtils/Plugin.cs +++ b/SCPUtils/Plugin.cs @@ -13,8 +13,8 @@ public class ScpUtils : Features.Plugin { 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; } diff --git a/SCPUtils/SCPUtils.csproj b/SCPUtils/SCPUtils.csproj index e6f955b..dd2566f 100644 --- a/SCPUtils/SCPUtils.csproj +++ b/SCPUtils/SCPUtils.csproj @@ -44,10 +44,6 @@ False D:\SteamLibrary\steamapps\common\SCP Secret Laboratory Dedicated Server\SCPSL_Data\Managed\Assembly-CSharp-firstpass.dll - - ..\packages\EXILED.8.7.1\lib\net48\Assembly-CSharp-Publicized.dll - True - False D:\SteamLibrary\steamapps\common\SCP Secret Laboratory Dedicated Server\SCPSL_Data\Managed\publicized_assemblies\Assembly-CSharp_publicized.dll @@ -59,7 +55,7 @@ ..\packages\AWSSDK.SecurityToken.3.7.100.14\lib\net45\AWSSDK.SecurityToken.dll - ..\packages\EXILED.8.7.1\lib\net48\CommandSystem.Core.dll + ..\packages\EXILED.8.8.1\lib\net48\CommandSystem.Core.dll ..\packages\Costura.Fody.5.8.0-alpha0098\lib\netstandard1.0\Costura.dll @@ -67,26 +63,26 @@ ..\packages\DnsClient.1.6.1\lib\net471\DnsClient.dll - - ..\packages\EXILED.8.7.1\lib\net48\Exiled.API.dll + + ..\packages\EXILED.8.8.1\lib\net48\Exiled.API.dll - - ..\packages\EXILED.8.7.1\lib\net48\Exiled.CreditTags.dll + + ..\packages\EXILED.8.8.1\lib\net48\Exiled.CreditTags.dll - - ..\packages\EXILED.8.7.1\lib\net48\Exiled.CustomItems.dll + + ..\packages\EXILED.8.8.1\lib\net48\Exiled.CustomItems.dll - - ..\packages\EXILED.8.7.1\lib\net48\Exiled.CustomRoles.dll + + ..\packages\EXILED.8.8.1\lib\net48\Exiled.CustomRoles.dll - - ..\packages\EXILED.8.7.1\lib\net48\Exiled.Events.dll + + ..\packages\EXILED.8.8.1\lib\net48\Exiled.Events.dll - - ..\packages\EXILED.8.7.1\lib\net48\Exiled.Loader.dll + + ..\packages\EXILED.8.8.1\lib\net48\Exiled.Loader.dll - - ..\packages\EXILED.8.7.1\lib\net48\Exiled.Permissions.dll + + ..\packages\EXILED.8.8.1\lib\net48\Exiled.Permissions.dll ..\packages\Microsoft.Bcl.AsyncInterfaces.5.0.0\lib\net461\Microsoft.Bcl.AsyncInterfaces.dll @@ -122,10 +118,10 @@ ..\packages\Newtonsoft.Json.13.0.3\lib\net45\Newtonsoft.Json.dll - ..\packages\EXILED.8.7.1\lib\net48\NorthwoodLib.dll + ..\packages\EXILED.8.8.1\lib\net48\NorthwoodLib.dll - ..\packages\EXILED.8.7.1\lib\net48\PluginAPI.dll + ..\packages\EXILED.8.8.1\lib\net48\PluginAPI.dll ..\packages\SharpCompress.0.30.1\lib\net461\SharpCompress.dll @@ -298,7 +294,7 @@ D:\SteamLibrary\steamapps\common\SCP Secret Laboratory Dedicated Server\SCPSL_Data\Managed\UnityEngine.PhysicsModule.dll - ..\packages\EXILED.8.7.1\lib\net48\YamlDotNet.dll + ..\packages\EXILED.8.8.1\lib\net48\YamlDotNet.dll ..\packages\ZstdSharp.Port.0.6.2\lib\net461\ZstdSharp.dll diff --git a/SCPUtils/Translations.cs b/SCPUtils/Translations.cs index 37ea3b5..70215d1 100644 --- a/SCPUtils/Translations.cs +++ b/SCPUtils/Translations.cs @@ -568,6 +568,8 @@ public class Translations : ITranslation public string SetcolorRainbow { get; private set; } = "rainbow"; + public string NoRainbowPermission { get; private set; } = "You do not have scputils.rainbowtag permission. If this is an error contact server owner"; + [Description("Setname command:")] public string SetnameCommand { get; private set; } = "scputils_set_name"; diff --git a/SCPUtils/packages.config b/SCPUtils/packages.config index ebf86ec..cf817a1 100644 --- a/SCPUtils/packages.config +++ b/SCPUtils/packages.config @@ -4,7 +4,7 @@ - +