File tree 1 file changed +6
-3
lines changed
src/main/java/in/twizmwaz/cardinal
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 29
29
import ee .ellytr .chat .LocaleRegistry ;
30
30
import ee .ellytr .command .CommandExecutor ;
31
31
import ee .ellytr .command .CommandRegistry ;
32
+ import ee .ellytr .command .ProviderRegistry ;
32
33
import ee .ellytr .command .exception .CommandException ;
33
34
import in .twizmwaz .cardinal .command .CommandCardinal ;
34
35
import in .twizmwaz .cardinal .command .CommandCycle ;
@@ -156,12 +157,14 @@ private void registerCommands() {
156
157
commandRegistry .addClass (CommandJoin .class );
157
158
commandRegistry .addClass (CommandNext .class );
158
159
commandRegistry .addClass (CommandStart .class );
160
+
161
+ ProviderRegistry providerRegistry = commandRegistry .getProviderRegistry ();
162
+ providerRegistry .registerProvider (Team .class , new TeamProvider ());
163
+ providerRegistry .registerProvider (LoadedMap .class , new LoadedMapProvider ());
164
+
159
165
commandRegistry .register ();
160
166
161
167
commandExecutor = new CommandExecutor (commandRegistry .getFactory ());
162
-
163
- commandRegistry .getProviderRegistry ().registerProvider (Team .class , new TeamProvider ());
164
- commandRegistry .getProviderRegistry ().registerProvider (LoadedMap .class , new LoadedMapProvider ());
165
168
}
166
169
167
170
/**
You can’t perform that action at this time.
0 commit comments