Skip to content

Commit

Permalink
✨ Fixed transfer message.
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurr0 committed Oct 23, 2021
1 parent 3b0691d commit d1b3436
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import pl.minecodes.mineeconomy.util.Placeholders;

import java.text.DecimalFormat;
import java.util.Objects;

@CommandAlias("transfer|pay")
public class TransferCommand extends BaseCommand {
Expand Down Expand Up @@ -63,7 +64,7 @@ public void done() {
"currency", configuration.getCurrency(atomicValue.get())
)));

MessageUtil.sendMessage(sender, Placeholders.replace(messages.getBalanceSuccessfullyTransferToTarget(),
MessageUtil.sendMessage(Objects.requireNonNull(target.getPlayer().getPlayer()), Placeholders.replace(messages.getBalanceSuccessfullyTransferToTarget(),
ImmutableMap.of(
"sender", sender.getName(),
"value", atomicValue.get(),
Expand Down

0 comments on commit d1b3436

Please sign in to comment.