Skip to content

Commit

Permalink
Add MoneyAdminCommand and update MoneyCommand registration
Browse files Browse the repository at this point in the history
Refactored the MoneyCommand registration to remove the usage of LanguageUtils in favor of a simplified constructor. Introduced the MoneyAdminCommand to enhance administrative capabilities for managing the economy system.
  • Loading branch information
VAXShadow1929 committed Dec 31, 2024
1 parent ce0b3d2 commit fa7974f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/de/varilx/veconomy/VEconomy.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import de.varilx.BaseAPI;
import de.varilx.command.registry.VaxCommandRegistry;
import de.varilx.database.Service;
import de.varilx.utils.language.LanguageUtils;
import de.varilx.veconomy.commands.MoneyAdminCommand;
import de.varilx.veconomy.commands.MoneyCommand;
import de.varilx.veconomy.listener.ConnectionListener;
import de.varilx.veconomy.user.EconomyUser;
Expand Down Expand Up @@ -35,7 +35,8 @@ public void onDisable() {

private void registerCommands() {
VaxCommandRegistry registry = new VaxCommandRegistry();
registry.registerCommand(new MoneyCommand(LanguageUtils.getMessageString("Commands.Money.Name"), this));
registry.registerCommand(new MoneyCommand(this));
registry.registerCommand(new MoneyAdminCommand(this));
}

private void registerListener() {
Expand Down

0 comments on commit fa7974f

Please sign in to comment.