-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathConfig.cs
More file actions
62 lines (49 loc) · 2.93 KB
/
Config.cs
File metadata and controls
62 lines (49 loc) · 2.93 KB
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
59
60
61
62
namespace ScriptedEvents
{
using System.Collections.Generic;
using System.ComponentModel;
using Exiled.API.Interfaces;
using ScriptedEvents.Structures;
public class Config : IConfig
{
[Description("Whether or not to enable the Scripted Events plugin.")]
public bool IsEnabled { get; set; } = true;
[Description("Whether or not to enable Scripted Events debug logs.")]
public bool Debug { get; set; } = false;
[Description("Whether or not to enable Scripted Events informational logs.")]
public bool EnableLogs { get; set; } = true;
[Description("Disables ALL logs from Scripted Events, including warnings and errors. Overrides other logging settings. Not recommended unless you know what you're doing.")]
public bool DisableAllLogs { get; set; } = false;
[Description("If a script encounters an error, broadcast a notice to the person who ran the command, informing of the error. The broadcast ONLY shows to the command executor.")]
public bool BroadcastIssues { get; set; } = true;
[Description("If set to true, players with overwatch enabled will not be affected by any commands related to players.")]
public bool IgnoreOverwatch { get; set; } = true;
[Description("The name of the folder which will store variables long term. This can be a path, but it will start from the ScriptedEvents directory, not root.")]
public string StorageFoldername { get; set; } = "VariableStorage";
[Description("The string to use for countdowns.")]
public string CountdownString { get; set; } = "<size=26><color=#5EB3FF><b>{TEXT}</b></color></size>\\n{TIME}";
[Description("The amount of times the WAITUNTIL action will update per second. Can cause performace issues if set too high.")]
public float WaitUntilFrequency { get; set; } = 2f;
[Description("Define a custom set of permissions used to run a certain script. The provided permission will be added AFTER script.execute (eg. script.execute.examplepermission for the provided example).")]
public Dictionary<string, string> RequiredPermissions { get; set; } = new()
{
{ "ExampleScriptNameHere", "examplepermission" },
};
[Description("[ADVANCED] Define a custom command to run a script when it is executed.")]
public List<CustomCommand> Commands { get; set; } = new()
{
new CustomCommand()
{
Name = "example",
Enabled = false,
Description = "An example custom command!",
Type = API.Enums.CommandType.PlayerConsole,
Permission = "example",
DefaultResponse = true,
Cooldown = -1,
PlayerCooldown = -1,
Run = new() { "MyScript1", "MyScript2" },
},
};
}
}