We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a598f94 commit caaec09Copy full SHA for caaec09
CustomCommands/CustomCommands.cs
@@ -50,6 +50,7 @@ public override void Load(bool hotReload)
50
if (comms != null)
51
{
52
comms = CheckForDuplicateCommands(comms);
53
+ // Add commands from the JSON file to the server
54
foreach (var com in comms)
55
AddCommands(com);
56
}
@@ -58,6 +59,10 @@ public override void Load(bool hotReload)
58
59
InitializeLists();
60
61
62
+ /// <summary>
63
+ /// Load the commands from the JSON file
64
+ /// </summary>
65
+ /// <returns>Returns the Commands as a List</returns>
66
private List<Commands>? LoadCommandsFromJson()
67
68
string jsonPath = Path.Combine(ModuleDirectory, "Commands.json");
0 commit comments