Skip to content

Commit

Permalink
Fixed cooldown check not respecting configuration of checked commands
Browse files Browse the repository at this point in the history
  • Loading branch information
4drian3d committed Mar 2, 2024
1 parent f849566 commit 345f6d6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group = io.github.4drian3d
version = 4.0.1
version = 4.0.2-SNAPSHOT
description = A global chat regulator for your Velocity network
url = https://modrinth.com/plugin/chatregulator
id = chatregulator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ private boolean checkIfCanCheck(final String command) {
return EventTask.resumeWhenComplete(
LazyDetection.checks(
commandProvider,
syntaxProvider,
cooldownProvider
syntaxProvider
).detect(infractionPlayer, event.getCommand())
.exceptionally(ex -> {
logger.error("An error occurred while checking initial command checks", ex);
Expand All @@ -87,6 +86,7 @@ private boolean checkIfCanCheck(final String command) {
}

return LazyDetection.checks(
cooldownProvider,
unicodeProvider,
capsProvider,
floodProvider,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,18 @@ public void disconnect(Component component) {
return null;
}

@Override
public void addCustomChatCompletions(@NotNull Collection<String> collection) {
}

@Override
public void removeCustomChatCompletions(@NotNull Collection<String> collection) {
}

@Override
public void setCustomChatCompletions(@NotNull Collection<String> collection) {
}

@Override
public Optional<ServerConnection> getCurrentServer() {
return Optional.empty();
Expand Down

0 comments on commit 345f6d6

Please sign in to comment.