mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 14:38:48 +00:00
fix
This commit is contained in:
1 parent
45369aa261
commit
b360680abb
1 file changed
+3
-2
@@ -27,6 +27,7 @@ import cloud.commandframework.exceptions.InvalidSyntaxException;
|
||||
import cloud.commandframework.exceptions.NoPermissionException;
|
||||
import cloud.commandframework.execution.FilteringCommandSuggestionProcessor;
|
||||
import com.google.inject.Inject;
|
||||
import com.google.inject.Provider;
|
||||
import java.io.PrintWriter;
|
||||
import java.io.StringWriter;
|
||||
import java.util.HashMap;
|
||||
@@ -56,7 +57,7 @@ public final class CloudUtils {
|
||||
private static final Pattern SPECIAL_CHARACTERS_PATTERN = Pattern.compile("[^\\s\\w\\-]");
|
||||
|
||||
@Inject
|
||||
private static Set<CarbonCommand> commands;
|
||||
private static Provider<Set<CarbonCommand>> commands;
|
||||
|
||||
private CloudUtils() {
|
||||
|
||||
@@ -65,7 +66,7 @@ public final class CloudUtils {
|
||||
public static Map<Key, CommandSettings> defaultCommandSettings() {
|
||||
final Map<Key, CommandSettings> settings = new HashMap<>();
|
||||
|
||||
for (final var command : commands) {
|
||||
for (final var command : commands.get()) {
|
||||
settings.put(command.key(), command.commandSettings());
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user