-
Notifications
You must be signed in to change notification settings - Fork 1
/
Config.cs
58 lines (48 loc) · 2.62 KB
/
Config.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
using Exiled.API.Interfaces;
using UnityEngine;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using Exiled.API.Features;
namespace KeyBindingServiceMeow
{
public class Config : IConfig
{
public bool IsEnabled { get; set; } = true;
public Dictionary<KeyCode, string> CommandBinding { get; set; } = new Dictionary<KeyCode, string>()
{
{KeyCode.F4, ".help" }
};
[Description("If disable this function, players have to press RA key after they join the server to enable the key service")]
public bool UseAutoRaSync { get; set; } = true;
[Description("=========================Player Verification Options=========================")]
public bool UsePlayerVerification { get; set; } = true;
public KeyCode SetupKey { get; set; } = KeyCode.F8;
[Description("Use HintServiceMeow, you must install HintServiceMeow to use this feature")]
public bool UseHintServiceMeow { get; set; } = false;
public ushort MessageTime = 15;
public string MessageBeforeSetup { get; set; } = "Press {SetupKey} to verify your setup! Don't worry if there's no reaction after pressing.";
public string MessageAfterSetup { get; set; } = "Congratulations! Verification completed";
[Description("Set Timeout to -1 if you do not want to use this feature")]
public short TimeOut { get; set; } = 60;
public string ScreenMessageWhenTimeOut { get; set; } = "Your verification is timeout. if you want to use key binding, please follow the instruction on console and press {SetupKey}";
public string ConsoleMessageWhenTimeOut { get; set; } =
"\r\n" +
"1. Setup Instruction\r\n" +
"2. Add -allow-syncbind in the steam launch option\r\n" +
"3. Restart your game\r\n" +
"4. Use the command \"synccmd\" twice in the client console until \"SyncServerCommandBinding has been enabled\" appears on the console.";
[Description("================================Debug Options================================")]
public bool Debug { get; set; } = false;
[Description("Activate test cases when server start")]
public bool UseTestCase { get; set; } = false;
[Description("==========================================================================================")]
public string HotKeySettingDirectory { get; set; } = Path.Combine(Paths.Plugins, "HotKeyData");
internal static Config instance { get; private set; }
public Config()
{
instance = this;
}
}
}