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