This commit is contained in:
2022-10-14 11:06:56 +03:00
parent 0abbd24b86
commit 3f7a8e04d4
4 changed files with 6 additions and 21 deletions

View File

@@ -7,12 +7,12 @@ public interface DBEvent
/// <summary>
/// The name of the event
/// </summary>
string name { get; }
string Name { get; }
/// <summary>
/// The description of the event
/// </summary>
string description { get; }
string Description { get; }
/// <summary>
/// The method that is invoked when the event is loaded into memory

View File

@@ -98,7 +98,9 @@ public class ConsoleCommandsHandler
else
{
Console.ForegroundColor = ConsoleColor.Red;
if (exception is null)
Console.WriteLine("An error occured while loading: " + name);
else
Console.WriteLine("[CMD] Failed to load command : " + name + " because " + exception!.Message);
}

View File

@@ -131,7 +131,7 @@ public class PluginLoader
if (e.IsLoaded)
((DBEvent)e.Plugin!).Start(_client);
onEVELoad?.Invoke(((DBEvent)e.Plugin!).name, e.TypeName!, e.IsLoaded, e.Exception);
onEVELoad?.Invoke(((DBEvent)e.Plugin!).Name, e.TypeName!, e.IsLoaded, e.Exception);
}
catch (Exception ex)
{