Skip to content

Commit 530eb52

Browse files
committed
Add initialization for VaxCommandRegistry in BaseAPI
Introduce a VaxCommandRegistry instance to the BaseAPI class, ensuring it is initialized during the constructor. This prepares the API for future handling of commands through the registry.
1 parent e6fe003 commit 530eb52

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/main/java/de/varilx/BaseAPI.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package de.varilx;
22

3+
import de.varilx.command.registry.VaxCommandRegistry;
34
import de.varilx.config.Configuration;
45
import de.varilx.inventory.controller.GameInventoryController;
56
import lombok.AccessLevel;
@@ -25,10 +26,13 @@ public class BaseAPI {
2526
Configuration configuration;
2627
Configuration databaseConfiguration;
2728

29+
VaxCommandRegistry vaxCommandRegistry;
30+
2831
public BaseAPI(JavaPlugin plugin) {
2932
this.plugin = plugin;
3033
this.languageConfigurations = new HashMap<>();
3134
this.gameInventoryController = new GameInventoryController(this);
35+
this.vaxCommandRegistry = new VaxCommandRegistry();
3236
BaseAPI.baseAPI = this;
3337
}
3438

0 commit comments

Comments
 (0)