Skip to content
This repository has been archived by the owner on Apr 2, 2019. It is now read-only.

Commit

Permalink
Merge pull request #2 from OxideMod/develop
Browse files Browse the repository at this point in the history
Update master from develop
  • Loading branch information
lukespragg authored Feb 25, 2018
2 parents e99dbaf + 0e40830 commit 3b9821b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/Oxide.RustLegacy.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@
-->
<FrameworkPathOverride Condition="'$(TargetFramework)' == 'net35' And '$(OS)' == 'Windows_NT'">C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v3.5\Profile\Client</FrameworkPathOverride>
<FrameworkPathOverride Condition="'$(TargetFramework)' == 'net35' And '$(OS)' == 'OSX'">/Library/Frameworks/Mono.framework/Versions/Current/lib/mono/2.0-api</FrameworkPathOverride>
<ThisAssemblyNamespace>Oxide.Game.RustLegacy</ThisAssemblyNamespace>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="GitInfo" Version="2.0.*" />
<PackageReference Include="Oxide.References" Version="2.0.*" />
<PackageReference Include="Oxide.Core" Version="2.0.*" />
<PackageReference Include="Oxide.CSharp" Version="2.0.*" />
Expand Down
7 changes: 6 additions & 1 deletion src/RustLegacyExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ public class RustLegacyExtension : Extension
/// </summary>
public override VersionNumber Version => AssemblyVersion;

/// <summary>
/// Gets the branch of this extension
/// </summary>
public override string Branch => "public"; // TODO: Handle this programmatically

/// <summary>
/// Default game-specific references for use in plugins
/// </summary>
Expand Down Expand Up @@ -169,7 +174,7 @@ internal static void ServerConsole()
var gameTime = DateTime.Today.AddHours(EnvironmentControlCenter.Singleton.GetTime()).ToString("hh:mm tt");
return $"{gameTime.ToLower()}, {(server.pvp ? "PvP" : "PvE")}";
};
Interface.Oxide.ServerConsole.Status3Right = () => $"Oxide {OxideMod.Version} for {Rust.Defines.Connection.protocol}";
Interface.Oxide.ServerConsole.Status3Right = () => $"Oxide.RustLegacy {AssemblyVersion}";
Interface.Oxide.ServerConsole.Status3RightColor = ConsoleColor.Yellow;
}

Expand Down

0 comments on commit 3b9821b

Please sign in to comment.