From fa7974fc0ba68087b2fa09ae39de18cc54cf4c29 Mon Sep 17 00:00:00 2001 From: VAXShadow1929 <193131876+VAXShadow1929@users.noreply.github.com> Date: Tue, 31 Dec 2024 12:31:46 +0100 Subject: [PATCH] Add MoneyAdminCommand and update MoneyCommand registration 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. --- src/main/java/de/varilx/veconomy/VEconomy.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/varilx/veconomy/VEconomy.java b/src/main/java/de/varilx/veconomy/VEconomy.java index 5b64ad2..1ad2319 100644 --- a/src/main/java/de/varilx/veconomy/VEconomy.java +++ b/src/main/java/de/varilx/veconomy/VEconomy.java @@ -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; @@ -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() {