Skip to content

Commit 2606e42

Browse files
committed
Add configuration for commands
1 parent 76d6992 commit 2606e42

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

src/Configuration/OxideConfig.cs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
extern alias References;
1+
extern alias References;
22

33
using References::Newtonsoft.Json;
44
using System.Collections;
@@ -20,6 +20,13 @@ public class OxideOptions
2020
public bool PluginWatchers;
2121
public DefaultGroups DefaultGroups;
2222
public string WebRequestIP;
23+
24+
public class CommandOptions
25+
{
26+
[JsonProperty(PropertyName = "Chat command prefixes")]
27+
public List<string> ChatPrefix { get; set; } = new List<string>() { "/" };
28+
}
29+
2330
}
2431

2532
[JsonObject]
@@ -89,6 +96,12 @@ public class OxideRcon
8996
/// </summary>
9097
public OxideOptions Options { get; set; }
9198

99+
/// <summary>
100+
/// Gets or sets information regarding commands
101+
/// </summary>
102+
[JsonProperty(PropertyName = "Commands")]
103+
public CommandOptions Commands { get; set; }
104+
92105
/// <summary>
93106
/// Gets or sets information regarding the Oxide console
94107
/// </summary>

0 commit comments

Comments
 (0)