From 4334b26be530d9577fbc77001ef5493044739f2f Mon Sep 17 00:00:00 2001 From: JaTiTV Date: Tue, 7 Jun 2022 06:35:12 +0200 Subject: [PATCH] update to T2CodeLib 12.0 --- pom.xml | 4 ++-- .../t2code/alias/Spigot/cmdManagement/RegisterCommands.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index c089b47..2e9bc69 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ net.t2code Alias - 1.0.8 + 1.0.9 jar T2C-Alias @@ -69,7 +69,7 @@ net.t2code T2CodeLib - 11.6 + 12.0 net.t2code diff --git a/src/main/java/net/t2code/alias/Spigot/cmdManagement/RegisterCommands.java b/src/main/java/net/t2code/alias/Spigot/cmdManagement/RegisterCommands.java index da49477..cad67e1 100644 --- a/src/main/java/net/t2code/alias/Spigot/cmdManagement/RegisterCommands.java +++ b/src/main/java/net/t2code/alias/Spigot/cmdManagement/RegisterCommands.java @@ -8,11 +8,11 @@ import net.t2code.alias.Spigot.objects.AliasObjekt; import net.t2code.alias.Spigot.system.*; import net.t2code.alias.Util; import net.t2code.lib.Spigot.Lib.commands.Cmd; +import net.t2code.lib.Spigot.Lib.eco.Eco; import net.t2code.lib.Spigot.Lib.messages.TextBuilder; import net.t2code.lib.Spigot.Lib.messages.send; import net.t2code.lib.Spigot.Lib.plugins.PluginCheck; import net.t2code.lib.Spigot.Lib.replace.Replace; -import net.t2code.lib.Spigot.Lib.vault.Vault; import org.bukkit.command.Command; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; @@ -58,7 +58,7 @@ public class RegisterCommands extends Command { } if (alias.costEnable) { if (!(alias.costAllowBypass && player.hasPermission("t2code.alias.buy.bypass")) ){ - if (!Vault.buy(prefix, player, alias.costPrice)) { + if (!Eco.moneyRemove(prefix, player, alias.costPrice)) { send.player(player, SelectMessages.noMoney); return true; }