Skip to content

Commit

Permalink
updated libs to be most recent ones
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkbound committed Aug 22, 2021
1 parent 4548757 commit b129587
Show file tree
Hide file tree
Showing 20 changed files with 37 additions and 63 deletions.
7 changes: 3 additions & 4 deletions AdminWarnings.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@
<HintPath>lib\Assembly-CSharp.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Assembly-CSharp-firstpass">
<HintPath>lib\Assembly-CSharp-firstpass.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Rocket.API">
<HintPath>lib\Rocket.API.dll</HintPath>
<Private>False</Private>
Expand All @@ -50,6 +46,9 @@
<HintPath>lib\Rocket.Unturned.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Steamworks.NET, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
<HintPath>lib\Steamworks.NET.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
Expand Down
Binary file modified BUILT_DLL/AdminWarnings.dll
Binary file not shown.
10 changes: 5 additions & 5 deletions BUILT_DLL/hashes.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
------------------------------------------------------------
HASHES ARE FROM BUILDING THIS AS A DLL AND AS A RELEASE BUILD
DATE BUILT: MARCH/21/2021 @ 3:16PM (CST)
DATE BUILT: AUGUST/21/2021 @ 8:00PM (CST)
------------------------------------------------------------
MD5 - 390C4C2323FFEA0A27DCB7DBF0F59691
SHA-1 - 8A15AF20A74DBCE86C5C8D3738C02BE78080F440
SHA-256 - FA6BE9CBE70AFEB5D5F48952A4EADECC7A8F75E5A25B1B37A9C00E4CD37539B9
SHA-512 - 61BBBFBB58701457E3CCF68B1174B51C81CF3BCDD8F796519F3047F7B3DD1DCF035C8922007E97C8820EEB82756DE32A803028F0189D268FA3A50BB1DB328853
MD5 - 9ABD41C97BF28DF55E125F140A7C0BEF
SHA-1 - 613228ADD95A4D0ADE029E83BB97B7E4C3ADEF66
SHA-256 - 9C7064DDA602D15784CE567CAE3633681A78A058DF684C9C5EEF7ED4949D4854
SHA-512 - 4B2EE64977EA4385C2857317C9CDDEA6D303060D7C67EACD0461C705ED6D714267EF53C9FEF1C36A1A680AC734128AFE25B45640E20A6D5E7CA00553EF850A58
7 changes: 2 additions & 5 deletions Commands/CommandClearWarningLogs.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
using AdminWarnings.Helpers;
using System.Collections.Generic;
using AdminWarnings.Helpers;
using Rocket.API;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AdminWarnings.Commands
{
Expand Down
11 changes: 3 additions & 8 deletions Commands/CommandRemovewarn.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Rocket.Core.Commands;
using Rocket.Unturned.Player;
using System.Collections.Generic;
using Rocket.API;
using Rocket.Unturned.Chat;
using Rocket.Unturned.Player;

namespace AdminWarnings
{
Expand All @@ -19,7 +14,7 @@ public List<string> Aliases

public AllowedCaller AllowedCaller
{
get { return Rocket.API.AllowedCaller.Both; }
get { return AllowedCaller.Both; }
}

public void Execute(IRocketPlayer caller, string[] command)
Expand Down
11 changes: 3 additions & 8 deletions Commands/CommandWarn.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Rocket.Core.Commands;
using Rocket.Unturned.Player;
using System.Collections.Generic;
using Rocket.API;
using Rocket.Unturned.Chat;
using Rocket.Unturned.Player;

namespace AdminWarnings
{
Expand All @@ -19,7 +14,7 @@ public List<string> Aliases

public AllowedCaller AllowedCaller
{
get { return Rocket.API.AllowedCaller.Both; }
get { return AllowedCaller.Both; }
}

public void Execute(IRocketPlayer caller, string[] command)
Expand Down
6 changes: 3 additions & 3 deletions Commands/CommandWarnings.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Rocket.API;
using System.Collections.Generic;
using Rocket.API;
using Rocket.Unturned.Player;
using System.Collections.Generic;

namespace AdminWarnings
{
Expand All @@ -13,7 +13,7 @@ public List<string> Aliases

public AllowedCaller AllowedCaller
{
get { return Rocket.API.AllowedCaller.Both; }
get { return AllowedCaller.Both; }
}

public void Execute(IRocketPlayer caller, string[] command)
Expand Down
6 changes: 1 addition & 5 deletions Helpers/ConsoleCommandHelper.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Rocket.Unturned.Player;
using Rocket.Unturned.Player;

namespace AdminWarnings.Helpers
{
Expand Down
10 changes: 3 additions & 7 deletions Helpers/WarningLogger.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
using Rocket.Unturned.Player;
using Steamworks;
using System;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using Rocket.Core.Assets;
using System.Xml.Serialization;
using Rocket.API;
using Rocket.Core.Assets;
using Rocket.Unturned.Player;

namespace AdminWarnings.Helpers
{
Expand Down
1 change: 0 additions & 1 deletion Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
Expand Down
4 changes: 1 addition & 3 deletions WarningsConfig.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Rocket.API;
using System.Xml.Serialization;
using Rocket.API;

namespace AdminWarnings
{
Expand Down
27 changes: 13 additions & 14 deletions WarningsPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,16 @@
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using Rocket.Core.Plugins;
using Rocket.Unturned.Player;
using System.Threading;
using AdminWarnings.Helpers;
using Rocket.API;
using Rocket.API.Collections;
using Rocket.Core.Plugins;
using Rocket.Unturned.Chat;
using Rocket.Unturned.Player;
using SDG.Unturned;
using Steamworks;
using System.Threading;
using AdminWarnings.Helpers;
using Rocket.Unturned.Events;
using Action = System.Action;
using UnityEngine;
using logger = Rocket.Core.Logging.Logger;

namespace AdminWarnings
Expand All @@ -24,11 +23,11 @@ public class WarningsPlugin : RocketPlugin<WarningsConfig>
public static WarningsPlugin Instance;
public static WarningUtilities util = new WarningUtilities();

public override Rocket.API.Collections.TranslationList DefaultTranslations
public override TranslationList DefaultTranslations
{
get
{
return new Rocket.API.Collections.TranslationList
return new TranslationList
{
{"warning", "You have you given a warning! Current warnings: {0}"},
{"warning_reason", "You have been given a warning! Reason: '{0}'"},
Expand Down Expand Up @@ -357,12 +356,12 @@ public SteamPlayer GetSteamPlayerFromID(string ID)
return Provider.clients.FirstOrDefault(steamP => steamP.playerID.steamID.ToString() == ID);
}

public UnityEngine.Color GetMessageColor()
public Color GetMessageColor()
{
UnityEngine.Color MsgColor;
Color MsgColor;

MsgColor = UnturnedChat.GetColorFromName(WarningsPlugin.Instance.Configuration.Instance.MessageColor,
UnityEngine.Color.green);
Color.green);
return MsgColor;
}

Expand Down Expand Up @@ -402,12 +401,12 @@ public void Save()

public static void Log(string msg)
{
Rocket.Core.Logging.Logger.Log(msg);
logger.Log(msg);
}

public static void LogWarning(string msg)
{
Rocket.Core.Logging.Logger.LogWarning(msg);
logger.LogWarning(msg);
}

public static void SendMessage(IRocketPlayer caller, string message)
Expand Down
Binary file removed lib/Assembly-CSharp-firstpass.dll
Binary file not shown.
Binary file modified lib/Assembly-CSharp.dll
Binary file not shown.
Binary file modified lib/Rocket.API.dll
Binary file not shown.
Binary file modified lib/Rocket.Core.dll
Binary file not shown.
Binary file modified lib/Rocket.Unturned.dll
Binary file not shown.
Binary file added lib/Steamworks.NET.dll
Binary file not shown.
Binary file modified lib/UnityEngine.CoreModule.dll
Binary file not shown.
Binary file modified lib/UnityEngine.dll
Binary file not shown.

0 comments on commit b129587

Please sign in to comment.