You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* [AUTOMATIC] push version to 2.0.5
* idk
* clean code
* oupsi
* [AUTOMATIC] push version to 2.0.6
* [AUTOMATIC] push version to 2.0.6
* remove LabApi beta
Log.Debug(assembly.GetName().Name+" tried to set "+nameof(ServerSpecificSettingsSync.DefinedSettings)+". Game Assembly: "+typeof(ReferenceHub).Assembly.GetName().Name);
Copy file name to clipboardExpand all lines: Plugin.cs
+7-21Lines changed: 7 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -5,14 +5,10 @@
5
5
usingSSMenuSystem.Features;
6
6
usingUserSettings.ServerSpecific;
7
7
usingLog=SSMenuSystem.Features.Log;
8
-
#if EXILED||LABAPI
9
8
usingSystem;
10
-
#endif
11
9
#if EXILED
12
10
usingExiled.API.Features;
13
-
#elif NWAPI
14
-
usingPluginAPI.Core;
15
-
#elif LABAPI
11
+
#else
16
12
usingLabApi.Loader.Features.Plugins;
17
13
#endif
18
14
@@ -22,14 +18,11 @@ namespace SSMenuSystem
22
18
/// Load the plugin to send datas to player
23
19
/// </summary>
24
20
// ReSharper disable once ClassNeverInstantiated.Global
25
-
publicclass Plugin
26
-
#if EXILED ||LABAPI
27
-
:Plugin<Config
21
+
publicclassPlugin:Plugin<Config
28
22
#if EXILED
29
23
,Translation
30
24
#endif
31
25
>
32
-
#endif
33
26
{
34
27
/// <summary>
35
28
/// Gets the author of the plugin.
@@ -44,7 +37,7 @@ public class Plugin
44
37
/// <summary>
45
38
/// Gets the version of the plugin.
46
39
/// </summary>
47
-
publicoverrideVersionVersion=>new(2,0,4);
40
+
publicoverrideVersionVersion=>new(2,0,6);
48
41
49
42
#if EXILED
50
43
/// <inheritdoc/>
@@ -54,7 +47,7 @@ public class Plugin
54
47
/// Gets the prefix used for configs.
55
48
/// </summary>
56
49
publicoverridestringPrefix=>"ss_menu_system";
57
-
#elif LABAPI
50
+
#else
58
51
59
52
/// <inheritdoc />
60
53
publicoverridestringDescription=>"Convert all Server-Specifics Settings created by plugins into menu. Help for multi-plugin comptability and organization.";
/// Gets the <see cref="Plugin"/> instance. can be null if the plugin is not enabled.
75
61
/// </summary>
@@ -107,7 +93,7 @@ public override void OnDisabled()
107
93
base.OnDisabled();
108
94
}
109
95
110
-
#elif LABAPI
96
+
#else
111
97
112
98
/// <inheritdoc />
113
99
publicoverridevoidEnable()
@@ -143,7 +129,7 @@ private void GenericEnable()
143
129
#if DEBUG
144
130
Log.Warn("EXPERIMENTAL VERSION IS ACTIVATED. BE AWARD OF BUGS CAN BE DONE. NOT STABLE VERSION.");
145
131
Menu.RegisterPin(new[]{newSSTextArea(null,"this pinned content is related to the called assembly\nwith Menu.UnregisterPin() you just unregister ONLY pinned settings by the called assembly.",SSTextArea.FoldoutMode.CollapsedByDefault,"This is a pinned content.")});
0 commit comments