Skip to content

Commit caaec09

Browse files
committed
Adding Comments
1 parent a598f94 commit caaec09

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CustomCommands/CustomCommands.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ public override void Load(bool hotReload)
5050
if (comms != null)
5151
{
5252
comms = CheckForDuplicateCommands(comms);
53+
// Add commands from the JSON file to the server
5354
foreach (var com in comms)
5455
AddCommands(com);
5556
}
@@ -58,6 +59,10 @@ public override void Load(bool hotReload)
5859
InitializeLists();
5960
}
6061

62+
/// <summary>
63+
/// Load the commands from the JSON file
64+
/// </summary>
65+
/// <returns>Returns the Commands as a List</returns>
6166
private List<Commands>? LoadCommandsFromJson()
6267
{
6368
string jsonPath = Path.Combine(ModuleDirectory, "Commands.json");

0 commit comments

Comments
 (0)