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
Copy file name to clipboardExpand all lines: Configs.cs
+8-2Lines changed: 8 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -18,8 +18,6 @@ public class Configs: IConfig
18
18
publicboolIsEnabled{get;set;}=true;
19
19
[Description("will information be displayed for the developer, will help when errors are detected")]
20
20
publicboolDebug{get;set;}=false;
21
-
[Description("will merge with other Hint service providers (for example HintServiceMeow) - if they are installed, it will switch itself")]
22
-
publicboolThirdParty{get;set;}=true;
23
21
[Description("will a database be used")]
24
22
publicboolDataBaseEnabled{get;set;}=true;
25
23
[Description("the time period for which information is updated")]
@@ -72,6 +70,14 @@ public class Configs: IConfig
72
70
publicstringTwoButtonEnabled{get;set;}="ON";
73
71
[Description("Second option name")]
74
72
publicstringTwoButtonDisabled{get;set;}="OFF";
73
+
[Description("The player sees this message if you have disabled the database or the file was not found, meaning it is not allowed to be used.")]
74
+
publicstringMessageWnenDataBaseDisabled{get;set;}="The specified server does not have this function.";
75
+
[Description("The player sees this message when turning on the display component.")]
76
+
publicstringMessageWhenPlayerEnabled{get;set;}="You have <b>enabled</b> the display of active effects.";
77
+
[Description("The player sees this message when turning off the display component.")]
78
+
publicstringMessageWhenPlayerDisabled{get;set;}="You have <b>disabled</b> the display of active effects.";
79
+
[Description("The player sees this message when the server was unable to find the player component or the player himself (for example, a call from the Dedicated Server)")]
80
+
publicstringMessageWhenErrorOccurred{get;set;}="The player's effects display component was not found, or the player himself was not found.";
75
81
/// <summary>
76
82
/// Return effect name from <see cref="EffectTranslation"/> if not found return <see cref="EffectType"/> as <see cref="string"></see>
Log.Debug($"{nameof(OnEnabled)}[Task]: Failed to check for updates.");
49
+
return;
50
+
}
51
+
else
52
+
{
53
+
if(Version<ver)
54
+
{
55
+
Log.Warn($"A new version of the plugin is available: {ver}. You are using version {Version}. Download it from\nhttps://github.com/NOTIF-API/EffectDisplay/releases/latest");
0 commit comments