File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Code/Plugin/Commands/HelpSystem Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 11using System . Reflection ;
22using System . Text ;
33using CommandSystem ;
4+ using LabApi . Events . Arguments . Interfaces ;
45using SER . Code . ContextSystem . BaseContexts ;
56using SER . Code . ContextSystem . Interfaces ;
67using SER . Code . Exceptions ;
@@ -291,6 +292,7 @@ public static string GetFlagInfo(string flagName)
291292 public static string GetEventInfo ( EventInfo ev )
292293 {
293294 var variables = EventSystem . EventHandler . GetMimicVariables ( ev ) ;
295+ var cancellable = typeof ( ICancellableEvent ) . IsAssignableFrom ( ev . EventHandlerType . GetGenericArguments ( ) . FirstOrDefault ( ) ) ;
294296 var msg = variables . Count > 0
295297 ? variables . Aggregate (
296298 "This event has the following variables attached to it:\n " ,
@@ -302,6 +304,8 @@ public static string GetEventInfo(EventInfo ev)
302304 $ """
303305 Event { ev . Name } is a part of { ev . DeclaringType ? . Name ?? "unknown event group" } .
304306
307+ Is cancellable? { cancellable }
308+
305309 { msg }
306310 """ ;
307311 }
You can’t perform that action at this time.
0 commit comments