-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from fabianmakila/refactor
Refactor bunch of things
- Loading branch information
Showing
41 changed files
with
550 additions
and
445 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
100 changes: 0 additions & 100 deletions
100
common/src/main/java/fi/fabianadrian/webhooklogger/common/client/ClientManager.java
This file was deleted.
Oops, something went wrong.
10 changes: 5 additions & 5 deletions
10
.../common/command/WebhookLoggerCommand.java → ...ooklogger/common/command/BaseCommand.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 0 additions & 6 deletions
6
common/src/main/java/fi/fabianadrian/webhooklogger/common/command/Commander.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
...fabianadrian/webhooklogger/common/command/processor/WebhookLoggerCommandPreprocessor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
package fi.fabianadrian.webhooklogger.common.command.processor; | ||
|
||
import fi.fabianadrian.webhooklogger.common.WebhookLogger; | ||
import fi.fabianadrian.webhooklogger.common.command.Commander; | ||
import fi.fabianadrian.webhooklogger.common.command.ContextKeys; | ||
import net.kyori.adventure.audience.Audience; | ||
import org.checkerframework.checker.nullness.qual.NonNull; | ||
import org.incendo.cloud.context.CommandContext; | ||
import org.incendo.cloud.execution.preprocessor.CommandPreprocessingContext; | ||
import org.incendo.cloud.execution.preprocessor.CommandPreprocessor; | ||
|
||
public final class WebhookLoggerCommandPreprocessor implements CommandPreprocessor<Commander> { | ||
public final class WebhookLoggerCommandPreprocessor implements CommandPreprocessor<Audience> { | ||
private final WebhookLogger webhookLogger; | ||
|
||
public WebhookLoggerCommandPreprocessor(WebhookLogger webhookLogger) { | ||
this.webhookLogger = webhookLogger; | ||
} | ||
|
||
@Override | ||
public void accept(@NonNull CommandPreprocessingContext<Commander> context) { | ||
CommandContext<Commander> commandContext = context.commandContext(); | ||
public void accept(@NonNull CommandPreprocessingContext<Audience> context) { | ||
CommandContext<Audience> commandContext = context.commandContext(); | ||
commandContext.store(ContextKeys.WEBHOOK_LOGGER_KEY, this.webhookLogger); | ||
} | ||
} |
11 changes: 0 additions & 11 deletions
11
common/src/main/java/fi/fabianadrian/webhooklogger/common/config/ConfigLoadException.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.