This repository was archived by the owner on Jan 16, 2020. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -51,12 +51,12 @@ public Task<bool> TestEventingWithName()
5151 return promise . Task ;
5252 }
5353
54- protected override void OnActivate ( bool isFromReload )
54+ protected override async Task OnActivate ( bool isFromReload )
5555 {
5656 Logger . LogInformation ( "Hello World (From plugin)" ) ;
5757 }
5858
59- protected override void OnDeactivate ( )
59+ protected override async Task OnDeactivate ( )
6060 {
6161 Logger . LogInformation ( "Bye World (From plugin)" ) ;
6262 }
Original file line number Diff line number Diff line change 11using System . Collections . Generic ;
2+ using System . Threading . Tasks ;
23using Rocket . API . DependencyInjection ;
34using Rocket . API . User ;
45using Rocket . Core . Plugins ;
@@ -21,7 +22,7 @@ public CommandsPlugin(
2122 { "broadcast" , "[{0:Name}] {1}" }
2223 } ;
2324
24- protected override void OnActivate ( bool isFromReload )
25+ protected override async Task OnActivate ( bool isFromReload )
2526 {
2627 CommandsCollection commandsObject = new CommandsCollection ( userManager , Translations ) ;
2728 RegisterCommandsFromObject ( commandsObject ) ;
Original file line number Diff line number Diff line change 11using System . Collections . Generic ;
2+ using System . Threading . Tasks ;
23using Rocket . API . DependencyInjection ;
34using Rocket . Core . Logging ;
45using Rocket . Core . Plugins ;
@@ -26,7 +27,7 @@ public HelloWorldPlugin(IDependencyContainer container) : base("HelloWorldPlugin
2627 { "some_translatable_message" , "This is some translatable / replaceable text!" }
2728 } ;
2829
29- protected override void OnActivate ( bool isFromReload )
30+ protected override async Task OnActivate ( bool isFromReload )
3031 {
3132 Logger . LogInformation ( "Hello world!" ) ;
3233 }
You can’t perform that action at this time.
0 commit comments