File tree Expand file tree Collapse file tree
MethodSystem/Methods/TeslaRuleMethds Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ public static void ResetAll()
1717 IgnoredPlayerIds . Clear ( ) ;
1818 }
1919
20- public override void OnPlayerTriggeringTesla ( PlayerTriggeringTeslaEventArgs ev )
20+ public override void OnPlayerIdlingTesla ( PlayerIdlingTeslaEventArgs ev )
2121 {
2222 if ( ev . Player is not { } plr ) return ;
2323 if (
Original file line number Diff line number Diff line change 11using JetBrains . Annotations ;
22using LabApi . Events . Arguments . PlayerEvents ;
3+ using LabApi . Events . CustomHandlers ;
34using LabApi . Features ;
45using LabApi . Features . Console ;
56using LabApi . Features . Wrappers ;
@@ -119,7 +120,7 @@ public override void Enable()
119120 Events . PlayerEvents . Joined += OnJoined ;
120121
121122 FileSystem . FileSystem . Initialize ( ) ;
122- _ = new TeslaRuleHandler ( ) ;
123+ CustomHandlersManager . RegisterEventsHandler ( new TeslaRuleHandler ( ) ) ;
123124 }
124125
125126 public override void Disable ( )
You can’t perform that action at this time.
0 commit comments