update to T2CodeLib 12.0
This commit is contained in:
parent
346a629bcd
commit
4334b26be5
4
pom.xml
4
pom.xml
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<groupId>net.t2code</groupId>
|
<groupId>net.t2code</groupId>
|
||||||
<artifactId>Alias</artifactId>
|
<artifactId>Alias</artifactId>
|
||||||
<version>1.0.8</version>
|
<version>1.0.9</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<name>T2C-Alias</name>
|
<name>T2C-Alias</name>
|
||||||
@ -69,7 +69,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>net.t2code</groupId>
|
<groupId>net.t2code</groupId>
|
||||||
<artifactId>T2CodeLib</artifactId>
|
<artifactId>T2CodeLib</artifactId>
|
||||||
<version>11.6</version>
|
<version>12.0</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>net.t2code</groupId>
|
<groupId>net.t2code</groupId>
|
||||||
|
@ -8,11 +8,11 @@ import net.t2code.alias.Spigot.objects.AliasObjekt;
|
|||||||
import net.t2code.alias.Spigot.system.*;
|
import net.t2code.alias.Spigot.system.*;
|
||||||
import net.t2code.alias.Util;
|
import net.t2code.alias.Util;
|
||||||
import net.t2code.lib.Spigot.Lib.commands.Cmd;
|
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.TextBuilder;
|
||||||
import net.t2code.lib.Spigot.Lib.messages.send;
|
import net.t2code.lib.Spigot.Lib.messages.send;
|
||||||
import net.t2code.lib.Spigot.Lib.plugins.PluginCheck;
|
import net.t2code.lib.Spigot.Lib.plugins.PluginCheck;
|
||||||
import net.t2code.lib.Spigot.Lib.replace.Replace;
|
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.Command;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
@ -58,7 +58,7 @@ public class RegisterCommands extends Command {
|
|||||||
}
|
}
|
||||||
if (alias.costEnable) {
|
if (alias.costEnable) {
|
||||||
if (!(alias.costAllowBypass && player.hasPermission("t2code.alias.buy.bypass")) ){
|
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);
|
send.player(player, SelectMessages.noMoney);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user