pull/6/head
jakub 9 months ago
parent d1b691cbf0
commit 0c14e81eac
  1. 2
      src/main/java/xyz/soukup/ecoCraftCore/commands/MoneyCommand.java

@ -21,7 +21,6 @@ public class MoneyCommand {
.then(Commands.argument("amount", FloatArgumentType.floatArg(0.1F)) .then(Commands.argument("amount", FloatArgumentType.floatArg(0.1F))
.executes(MoneyCommand::sendMoney)))) .executes(MoneyCommand::sendMoney))))
.then(Commands.literal("give") .then(Commands.literal("give")
.requires(source -> source.getExecutor().hasPermission("ecc.money.give"))
.then(Commands.argument("amount", FloatArgumentType.floatArg(0.1F)) .then(Commands.argument("amount", FloatArgumentType.floatArg(0.1F))
.requires(source -> source.getSender() instanceof Player) .requires(source -> source.getSender() instanceof Player)
.executes(MoneyCommand::giveMoneySelf)) .executes(MoneyCommand::giveMoneySelf))
@ -33,7 +32,6 @@ public class MoneyCommand {
.then(Commands.argument("amount", FloatArgumentType.floatArg(0.1F)) .then(Commands.argument("amount", FloatArgumentType.floatArg(0.1F))
.executes(MoneyCommand::giveMoneyOther))))) .executes(MoneyCommand::giveMoneyOther)))))
.then(Commands.literal("remove") .then(Commands.literal("remove")
.requires(source -> source.getExecutor().hasPermission("ecc.money.remove"))
.then(Commands.argument("amount", FloatArgumentType.floatArg(0.1F)) .then(Commands.argument("amount", FloatArgumentType.floatArg(0.1F))
.requires(source -> source.getSender() instanceof Player) .requires(source -> source.getSender() instanceof Player)
.executes(MoneyCommand::removeMoneySelf)) .executes(MoneyCommand::removeMoneySelf))

Loading…
Cancel
Save