Skip to content
This repository was archived by the owner on Jan 16, 2020. It is now read-only.

Commit 04eaef8

Browse files
committed
Fix build
1 parent b54c54c commit 04eaef8

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

Rocket.Tests/Mock/TestPlugin.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

examples/commands/CommandsPlugin.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System.Collections.Generic;
2+
using System.Threading.Tasks;
23
using Rocket.API.DependencyInjection;
34
using Rocket.API.User;
45
using 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);

examples/hello_world/HelloWorldPlugin.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System.Collections.Generic;
2+
using System.Threading.Tasks;
23
using Rocket.API.DependencyInjection;
34
using Rocket.Core.Logging;
45
using 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
}

0 commit comments

Comments
 (0)