Skip to content

Commit

Permalink
2.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
terminator-97 committed Aug 23, 2020
1 parent 8702507 commit 21640d1
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 17 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ This is the list of SCPUtils features with a brief description, i recomend to re

**Database will get created inside Exiled/SCPUtils folder.**<br /><br />
**You must add LiteDB.dll into Plugins/dependencies folder or plugin won't work**<br /><br />
**Minimum requirements: Exiled version: 2.0.10 nad LiteDB 5.0.8**
**Currently plugin is in beta phase, documentation is not complete**
**Minimum requirements: Exiled version: 2.0.10 and LiteDB 5.0.8**

### Configs:

Expand Down
2 changes: 1 addition & 1 deletion SCPUtils/Commands/SetName.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public bool Execute(ArraySegment<string> arguments, ICommandSender sender, out s
Database.LiteDatabase.GetCollection<Player>().Update(databasePlayer);
response = "<color=green>Success, choice has been saved!</color>";
var player = Exiled.API.Features.Player.Get(target);
if (player != null) player.Nickname = nickname;
if (player != null) player.DisplayNickname = nickname;

return true;
}
Expand Down
2 changes: 1 addition & 1 deletion SCPUtils/Functions/EventHandlers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ internal void OnPlayerJoin(JoinedEventArgs ev)
databasePlayer.Name = ev.Player.Nickname;
if (databasePlayer.FirstJoin == DateTime.MinValue) databasePlayer.FirstJoin = DateTime.Now;
if (pluginInstance.Config.WelcomeEnabled) ev.Player.Broadcast(pluginInstance.Config.WelcomeMessageDuration, pluginInstance.Config.WelcomeMessage, Broadcast.BroadcastFlags.Normal);
if (!string.IsNullOrEmpty(databasePlayer.CustomNickName) && databasePlayer.CustomNickName != "None") ev.Player.Nickname = databasePlayer.CustomNickName;
if (!string.IsNullOrEmpty(databasePlayer.CustomNickName) && databasePlayer.CustomNickName != "None") ev.Player.DisplayNickname = databasePlayer.CustomNickName;
if (pluginInstance.Config.ASNBlacklist.Contains(ev.Player.ReferenceHub.characterClassManager.Asn) && !databasePlayer.ASNWhitelisted) ev.Player.Kick($"Auto-Kick: {pluginInstance.Config.AsnKickMessage}", "SCPUtils");
else pluginInstance.Functions.PostLoadPlayer(ev.Player);
}
Expand Down
2 changes: 1 addition & 1 deletion SCPUtils/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class ScpUtils : Features.Plugin<Configs>
{
private static readonly Lazy<ScpUtils> LazyInstance = new Lazy<ScpUtils>(() => new ScpUtils());
public static ScpUtils StaticInstance => LazyInstance.Value;
public static string pluginVersion = "2.3.0";
public static string pluginVersion = "2.3.1";
public override string Author { get; } = "Terminator_9#0507";
public override string Name { get; } = "SCPUtils";
public override Version Version { get; } = new Version(2, 3, 0);
Expand Down
6 changes: 3 additions & 3 deletions SCPUtils/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("SCPUtils")]
[assembly: AssemblyDescription("SCPUtils 2.2.0")]
[assembly: AssemblyDescription("SCPUtils 2.3.1")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("SCPUtils")]
Expand All @@ -31,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.3.0.0")]
[assembly: AssemblyFileVersion("2.3.0.0")]
[assembly: AssemblyVersion("2.3.1.0")]
[assembly: AssemblyFileVersion("2.3.1.0")]
18 changes: 9 additions & 9 deletions SCPUtils/SCPUtils.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -43,27 +43,27 @@
</Reference>
<Reference Include="Assembly-CSharp-Publicized, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\..\..\ptb\Assembly-CSharp-Publicized.dll</HintPath>
<HintPath>..\..\..\..\..\ExiledNew\Assembly-CSharp-Publicized.dll</HintPath>
</Reference>
<Reference Include="CommandSystem.Core, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\SCP Secret Laboratory Dedicated Server\SCPSL_Data\Managed\CommandSystem.Core.dll</HintPath>
</Reference>
<Reference Include="Exiled.API, Version=2.0.9.0, Culture=neutral, processorArchitecture=MSIL">
<Reference Include="Exiled.API, Version=2.0.10.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\..\..\release\Exiled\EXILED\Plugins\dependencies\Exiled.API.dll</HintPath>
<HintPath>..\..\..\..\..\ExiledNew\Exiled\EXILED\Plugins\dependencies\Exiled.API.dll</HintPath>
</Reference>
<Reference Include="Exiled.Events, Version=2.0.9.0, Culture=neutral, processorArchitecture=MSIL">
<Reference Include="Exiled.Events, Version=2.0.10.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\..\..\release\Exiled\EXILED\Plugins\Exiled.Events.dll</HintPath>
<HintPath>..\..\..\..\..\ExiledNew\Exiled\EXILED\Plugins\Exiled.Events.dll</HintPath>
</Reference>
<Reference Include="Exiled.Loader, Version=2.0.9.0, Culture=neutral, processorArchitecture=MSIL">
<Reference Include="Exiled.Loader, Version=2.0.10.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\..\..\release\Exiled\EXILED\Exiled.Loader.dll</HintPath>
<HintPath>..\..\..\..\..\ExiledNew\Exiled\EXILED\Exiled.Loader.dll</HintPath>
</Reference>
<Reference Include="Exiled.Permissions, Version=2.0.9.0, Culture=neutral, processorArchitecture=MSIL">
<Reference Include="Exiled.Permissions, Version=2.0.10.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\..\..\release\Exiled\EXILED\Plugins\Exiled.Permissions.dll</HintPath>
<HintPath>..\..\..\..\..\ExiledNew\Exiled\EXILED\Plugins\Exiled.Permissions.dll</HintPath>
</Reference>
<Reference Include="LiteDB, Version=5.0.8.0, Culture=neutral, PublicKeyToken=4ee40123013c9f27, processorArchitecture=MSIL">
<HintPath>..\packages\LiteDB.5.0.8\lib\net45\LiteDB.dll</HintPath>
Expand Down

0 comments on commit 21640d1

Please sign in to comment.