Skip to content

Commit ca4136e

Browse files
committed
update to Synapse 2.5.3
1 parent bbdecb3 commit ca4136e

File tree

6 files changed

+35
-20
lines changed

6 files changed

+35
-20
lines changed

SerpentsHand/PluginClass.cs

+13-4
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,36 @@
11
using Synapse.Api.Plugin;
2+
using Synapse.Translation;
23
using Synapse;
34

45
namespace SerpentsHand
56
{
67
[PluginInformation(
78
Author = "Dimenzio",
89
Description = "Adds the SerpentsHand to the game",
9-
LoadPriority = 0,
10+
LoadPriority = 1,
1011
Name = "SerpentsHand",
1112
SynapseMajor = 2,
12-
SynapseMinor = 4,
13-
SynapsePatch = 2,
13+
SynapseMinor = 5,
14+
SynapsePatch = 3,
1415
Version = "v.1.2.0"
1516
)]
1617
public class PluginClass : AbstractPlugin
1718
{
1819
[Config(section = "SerpentsHand")]
19-
public static PluginConfig Config;
20+
public static PluginConfig Config { get; set; }
21+
22+
[SynapseTranslation]
23+
public static new SynapseTranslation<PluginTranslation> Translation { get; set; }
2024

2125
public override void Load()
2226
{
2327
Server.Get.TeamManager.RegisterTeam<SerpentsHandTeam>();
2428
Server.Get.RoleManager.RegisterCustomRole<SerpentsHandRole>();
29+
Translation.AddTranslation(new PluginTranslation());
30+
Translation.AddTranslation(new PluginTranslation()
31+
{
32+
SpawnMessage = "<i>Du bist ein <color=green>SerpentsHand</color></i>\\n<i>Dein Ziel ist es den SCPs zu helfen!</i>\\n<b>Drück Esc zum schließen</b>",
33+
}, "GERMAN");
2534
new EventHandlers();
2635
base.Load();
2736
}

SerpentsHand/PluginConfig.cs

+1-4
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,12 @@ public class PluginConfig : AbstractConfigSection
1919
[Description("The Role Name that is displayed when you look at the Player")]
2020
public string CustomRoleName = "<color=green>SerpentsHand</color>";
2121

22-
[Description("The chance that s SerpentsHand Squad spawn")]
22+
[Description("The chance that a SerpentsHand Squad spawns instead of a Chaos")]
2323
public float SpawnChance = 50f;
2424

2525
[Description("The Cassie announcement that plays when SerpentsHand Spawn")]
2626
public string Cassie = "serpents hand hasentered allremaining";
2727

28-
[Description("The Message that get displayed when a serpentshand spawn")]
29-
public string SpawnMessage = "<i>You are a <color=green>SerpentsHand</color></i>\\n<i>Your Goal is it to kill all Humans and help the scps</i>\\n<b>Press Esc to close</b>";
30-
3128
[Description("The Spawnpoint where SerpentsHand spawn")]
3229
public SerializedMapPoint SpawnPoint = new SerializedMapPoint("Root_*&*Outside Cams", -0.4426118f, 2.159119f, 7.987663f);
3330

SerpentsHand/PluginTranslation.cs

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
using Synapse.Translation;
2+
3+
namespace SerpentsHand
4+
{
5+
public class PluginTranslation : IPluginTranslation
6+
{
7+
public string SpawnMessage { get; set; } = "<i>You are a <color=green>SerpentsHand</color></i>\\n<i>Your Goal is it to kill all Humans and help the scps</i>\\n<b>Press Esc to close</b>";
8+
}
9+
}

SerpentsHand/SerpentsHand.csproj

+9-8
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,19 @@
3535
<HintPath>..\packages\Lib.Harmony.2.0.4\lib\net472\0Harmony.dll</HintPath>
3636
</Reference>
3737
<Reference Include="Assembly-CSharp, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
38-
<HintPath>..\packages\SynapseSL.2.5.0-pre3\lib\net472\Assembly-CSharp.dll</HintPath>
38+
<HintPath>..\packages\SynapseSL.2.5.3\lib\net472\Assembly-CSharp.dll</HintPath>
3939
</Reference>
4040
<Reference Include="Assembly-CSharp-firstpass, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
41-
<HintPath>..\packages\SynapseSL.2.5.0-pre3\lib\net472\Assembly-CSharp-firstpass.dll</HintPath>
41+
<HintPath>..\packages\SynapseSL.2.5.3\lib\net472\Assembly-CSharp-firstpass.dll</HintPath>
4242
</Reference>
4343
<Reference Include="LiteDB, Version=5.0.9.0, Culture=neutral, PublicKeyToken=4ee40123013c9f27, processorArchitecture=MSIL">
4444
<HintPath>..\packages\LiteDB.5.0.9\lib\net45\LiteDB.dll</HintPath>
4545
</Reference>
4646
<Reference Include="Mirror, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
47-
<HintPath>..\packages\SynapseSL.2.5.0-pre3\lib\net472\Mirror.dll</HintPath>
47+
<HintPath>..\packages\SynapseSL.2.5.3\lib\net472\Mirror.dll</HintPath>
4848
</Reference>
49-
<Reference Include="Synapse, Version=2.5.0.0, Culture=neutral, processorArchitecture=MSIL">
50-
<HintPath>..\packages\SynapseSL.2.5.0-pre3\lib\net472\Synapse.dll</HintPath>
49+
<Reference Include="Synapse, Version=2.5.3.0, Culture=neutral, processorArchitecture=MSIL">
50+
<HintPath>..\packages\SynapseSL.2.5.3\lib\net472\Synapse.dll</HintPath>
5151
</Reference>
5252
<Reference Include="System" />
5353
<Reference Include="System.Core" />
@@ -62,19 +62,20 @@
6262
<Reference Include="System.Net.Http" />
6363
<Reference Include="System.Xml" />
6464
<Reference Include="UnityEngine, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
65-
<HintPath>..\packages\SynapseSL.2.5.0-pre3\lib\net472\UnityEngine.dll</HintPath>
65+
<HintPath>..\packages\SynapseSL.2.5.3\lib\net472\UnityEngine.dll</HintPath>
6666
</Reference>
6767
<Reference Include="UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
68-
<HintPath>..\packages\SynapseSL.2.5.0-pre3\lib\net472\UnityEngine.CoreModule.dll</HintPath>
68+
<HintPath>..\packages\SynapseSL.2.5.3\lib\net472\UnityEngine.CoreModule.dll</HintPath>
6969
</Reference>
7070
<Reference Include="UnityEngine.PhysicsModule, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
71-
<HintPath>..\packages\SynapseSL.2.5.0-pre3\lib\net472\UnityEngine.PhysicsModule.dll</HintPath>
71+
<HintPath>..\packages\SynapseSL.2.5.3\lib\net472\UnityEngine.PhysicsModule.dll</HintPath>
7272
</Reference>
7373
<Reference Include="YamlDotNet, Version=8.0.0.0, Culture=neutral, PublicKeyToken=ec19458f3c15af5e, processorArchitecture=MSIL">
7474
<HintPath>..\packages\YamlDotNet.8.1.2\lib\net45\YamlDotNet.dll</HintPath>
7575
</Reference>
7676
</ItemGroup>
7777
<ItemGroup>
78+
<Compile Include="PluginTranslation.cs" />
7879
<Compile Include="SerpentsHandTeam.cs" />
7980
<Compile Include="EventHandlers.cs" />
8081
<Compile Include="SerpentsHandRole.cs" />

SerpentsHand/SerpentsHandRole.cs

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
using Synapse.Api.Roles;
2-
using System.Collections.Generic;
1+
using System.Collections.Generic;
32

43
namespace SerpentsHand
54
{
@@ -26,7 +25,7 @@ public override void Spawn()
2625

2726
Player.DisplayInfo = PluginClass.Config.CustomRoleName;
2827
Player.RemoveDisplayInfo(PlayerInfoArea.Role);
29-
Player.OpenReportWindow(PluginClass.Config.SpawnMessage.Replace("\\n", "\n"));
28+
Player.OpenReportWindow(PluginClass.Translation.ActiveTranslation.SpawnMessage.Replace("\\n", "\n"));
3029
}
3130

3231
public override void DeSpawn()

SerpentsHand/packages.config

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<packages>
33
<package id="Lib.Harmony" version="2.0.4" targetFramework="net472" />
44
<package id="LiteDB" version="5.0.9" targetFramework="net472" />
5-
<package id="SynapseSL" version="2.5.0-pre3" targetFramework="net472" />
5+
<package id="SynapseSL" version="2.5.3" targetFramework="net472" />
66
<package id="System.Runtime.CompilerServices.Unsafe" version="4.5.2" targetFramework="net472" />
77
<package id="YamlDotNet" version="8.1.2" targetFramework="net472" />
88
</packages>

0 commit comments

Comments
 (0)