Skip to content

Commit ac78ca2

Browse files
authored
release code's space?
1 parent a0fc864 commit ac78ca2

File tree

5 files changed

+29
-24
lines changed

5 files changed

+29
-24
lines changed

EffectDisplay/Components/UserEffectDisplayer.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ private IEnumerator<float> PlayerEffectShower(Player ply)
9797
// Effect duration total
9898
line = type.Duration == 0 ? line.Replace("%duration%", "inf") : line.Replace("%duration%", type.Duration.ToString());
9999
line = line.Replace("%intensity%", type.Intensity.ToString());
100-
line = line.Replace("%type%", name);
100+
line = line.Replace("%effect%", name);
101101
output.AppendLine(line);
102102
}
103103
Log.Debug($"{nameof(PlayerEffectShower)} Try to show hint for ply {ply.Nickname}");

EffectDisplay/Configs.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ public class Configs: IConfig
2222
[Description("these lines will be displayed for each effect type separately, allowing you to customize them")]
2323
public Dictionary<string, string> EffectLine { get; set; } = new Dictionary<string, string>()
2424
{
25-
{"Mixed", "<size=12>%effect% is <color=\"purple\">%type% end after %time%|%duration%" },
26-
{"Positive", "<size=12>%effect% is <color=\"green\">%type% end after %time%|%duration%" },
27-
{"Negative", "<size=12>%effect% is <color=\"red\">%type% end after %time%|%duration%" }
25+
{"Mixed", "<size=12>%effect% is <color=\"purple\">Mixed</color> end after %time%|%duration%" },
26+
{"Positive", "<size=12>%effect% is <color=\"green\">Positive</color> end after %time%|%duration%" },
27+
{"Negative", "<size=12>%effect% is <color=\"red\">Negative</color> end after %time%|%duration%" },
2828
};
2929

3030
[Description("decomposes the text on the screen to change only to what is processed by align")]

EffectDisplay/EffectDisplay.csproj

+20-17
Original file line numberDiff line numberDiff line change
@@ -53,32 +53,35 @@
5353
<HintPath>..\..\..\..\AppData\Roaming\EXILED\Plugins\dependencies\0Harmony.dll</HintPath>
5454
</Reference>
5555
<Reference Include="Assembly-CSharp">
56-
<HintPath>..\packages\EXILED.9.0.0-alpha.10\lib\net48\Assembly-CSharp-Publicized.dll</HintPath>
56+
<HintPath>..\packages\EXILED.8.9.8\lib\net48\Assembly-CSharp-Publicized.dll</HintPath>
5757
<Private>True</Private>
5858
</Reference>
5959
<Reference Include="Assembly-CSharp-firstpass">
6060
<HintPath>D:\SteamLibrary\steamapps\common\SCP Secret Laboratory Dedicated Server\SCPSL_Data\Managed\Assembly-CSharp-firstpass.dll</HintPath>
6161
</Reference>
6262
<Reference Include="CommandSystem.Core, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
63-
<HintPath>..\packages\EXILED.9.0.0-alpha.10\lib\net48\CommandSystem.Core.dll</HintPath>
63+
<HintPath>..\packages\EXILED.8.9.8\lib\net48\CommandSystem.Core.dll</HintPath>
6464
</Reference>
65-
<Reference Include="Exiled.API, Version=9.0.0.0, Culture=neutral, processorArchitecture=AMD64">
66-
<HintPath>..\packages\EXILED.9.0.0-alpha.10\lib\net48\Exiled.API.dll</HintPath>
65+
<Reference Include="Exiled.API, Version=8.9.8.0, Culture=neutral, processorArchitecture=AMD64">
66+
<HintPath>..\packages\EXILED.8.9.8\lib\net48\Exiled.API.dll</HintPath>
6767
</Reference>
68-
<Reference Include="Exiled.CreditTags, Version=9.0.0.0, Culture=neutral, processorArchitecture=AMD64">
69-
<HintPath>..\packages\EXILED.9.0.0-alpha.10\lib\net48\Exiled.CreditTags.dll</HintPath>
68+
<Reference Include="Exiled.CreditTags, Version=8.9.8.0, Culture=neutral, processorArchitecture=AMD64">
69+
<HintPath>..\packages\EXILED.8.9.8\lib\net48\Exiled.CreditTags.dll</HintPath>
7070
</Reference>
71-
<Reference Include="Exiled.CustomModules, Version=9.0.0.0, Culture=neutral, processorArchitecture=AMD64">
72-
<HintPath>..\packages\EXILED.9.0.0-alpha.10\lib\net48\Exiled.CustomModules.dll</HintPath>
71+
<Reference Include="Exiled.CustomItems, Version=8.9.8.0, Culture=neutral, processorArchitecture=AMD64">
72+
<HintPath>..\packages\EXILED.8.9.8\lib\net48\Exiled.CustomItems.dll</HintPath>
7373
</Reference>
74-
<Reference Include="Exiled.Events, Version=9.0.0.0, Culture=neutral, processorArchitecture=AMD64">
75-
<HintPath>..\packages\EXILED.9.0.0-alpha.10\lib\net48\Exiled.Events.dll</HintPath>
74+
<Reference Include="Exiled.CustomRoles, Version=8.9.8.0, Culture=neutral, processorArchitecture=AMD64">
75+
<HintPath>..\packages\EXILED.8.9.8\lib\net48\Exiled.CustomRoles.dll</HintPath>
7676
</Reference>
77-
<Reference Include="Exiled.Loader, Version=9.0.0.0, Culture=neutral, processorArchitecture=AMD64">
78-
<HintPath>..\packages\EXILED.9.0.0-alpha.10\lib\net48\Exiled.Loader.dll</HintPath>
77+
<Reference Include="Exiled.Events, Version=8.9.8.0, Culture=neutral, processorArchitecture=AMD64">
78+
<HintPath>..\packages\EXILED.8.9.8\lib\net48\Exiled.Events.dll</HintPath>
7979
</Reference>
80-
<Reference Include="Exiled.Permissions, Version=9.0.0.0, Culture=neutral, processorArchitecture=AMD64">
81-
<HintPath>..\packages\EXILED.9.0.0-alpha.10\lib\net48\Exiled.Permissions.dll</HintPath>
80+
<Reference Include="Exiled.Loader, Version=8.9.8.0, Culture=neutral, processorArchitecture=AMD64">
81+
<HintPath>..\packages\EXILED.8.9.8\lib\net48\Exiled.Loader.dll</HintPath>
82+
</Reference>
83+
<Reference Include="Exiled.Permissions, Version=8.9.8.0, Culture=neutral, processorArchitecture=AMD64">
84+
<HintPath>..\packages\EXILED.8.9.8\lib\net48\Exiled.Permissions.dll</HintPath>
8285
</Reference>
8386
<Reference Include="LiteDB, Version=5.0.16.0, Culture=neutral, PublicKeyToken=4ee40123013c9f27, processorArchitecture=MSIL">
8487
<HintPath>..\packages\LiteDB.5.0.16\lib\net45\LiteDB.dll</HintPath>
@@ -88,10 +91,10 @@
8891
<HintPath>D:\SteamLibrary\steamapps\common\SCP Secret Laboratory Dedicated Server\SCPSL_Data\Managed\Mirror.dll</HintPath>
8992
</Reference>
9093
<Reference Include="NorthwoodLib, Version=1.3.0.0, Culture=neutral, processorArchitecture=MSIL">
91-
<HintPath>..\packages\EXILED.9.0.0-alpha.10\lib\net48\NorthwoodLib.dll</HintPath>
94+
<HintPath>..\packages\EXILED.8.9.8\lib\net48\NorthwoodLib.dll</HintPath>
9295
</Reference>
9396
<Reference Include="PluginAPI, Version=13.1.2.0, Culture=neutral, processorArchitecture=AMD64">
94-
<HintPath>..\packages\EXILED.9.0.0-alpha.10\lib\net48\PluginAPI.dll</HintPath>
97+
<HintPath>..\packages\EXILED.8.9.8\lib\net48\PluginAPI.dll</HintPath>
9598
</Reference>
9699
<Reference Include="System" />
97100
<Reference Include="System.Core" />
@@ -111,7 +114,7 @@
111114
<HintPath>D:\SteamLibrary\steamapps\common\SCP Secret Laboratory Dedicated Server\SCPSL_Data\Managed\UnityEngine.PhysicsModule.dll</HintPath>
112115
</Reference>
113116
<Reference Include="YamlDotNet, Version=11.0.0.0, Culture=neutral, PublicKeyToken=ec19458f3c15af5e, processorArchitecture=MSIL">
114-
<HintPath>..\packages\EXILED.9.0.0-alpha.10\lib\net48\YamlDotNet.dll</HintPath>
117+
<HintPath>..\packages\EXILED.8.9.8\lib\net48\YamlDotNet.dll</HintPath>
115118
</Reference>
116119
</ItemGroup>
117120
<ItemGroup>

EffectDisplay/Plugin.cs

+4-2
Original file line numberDiff line numberDiff line change
@@ -33,25 +33,27 @@ public override void OnEnabled()
3333
data = new DataBase();
3434
});
3535
Event = new PlayerEvent();
36+
SubscribeEvents();
3637
base.OnEnabled();
3738
}
3839

3940
public override void OnDisabled()
4041
{
42+
UnsubscribeEvents();
4143
data.Dispose();
4244
data = null;
4345
Instance = null;
4446
Event = null;
4547
base.OnDisabled();
4648
}
4749

48-
protected override void SubscribeEvents()
50+
protected void SubscribeEvents()
4951
{
5052
Log.Debug($"{nameof(SubscribeEvents)} starting registering event");
5153
Exiled.Events.Handlers.Player.Verified += Event.OnVerefied;
5254
}
5355

54-
protected override void UnsubscribeEvents()
56+
protected void UnsubscribeEvents()
5557
{
5658
Log.Debug($"{nameof(UnsubscribeEvents)} starting unregistering event");
5759
Exiled.Events.Handlers.Player.Verified -= Event.OnVerefied;

EffectDisplay/packages.config

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="EXILED" version="9.0.0-alpha.10" targetFramework="net48" />
3+
<package id="EXILED" version="8.9.8" targetFramework="net48" />
44
<package id="LiteDB" version="5.0.16" targetFramework="net48" />
55
</packages>

0 commit comments

Comments
 (0)