mirror of
https://github.com/songoda/EpicVouchers.git
synced 2025-02-02 21:01:49 +01:00
fix for command issue
This commit is contained in:
parent
a45552864c
commit
a462879fea
@ -67,7 +67,7 @@ public class VoucherExecutor {
|
||||
}
|
||||
for (String command : voucher.getCommands()) {
|
||||
command = command.replaceAll("%player%", name);
|
||||
command = command.replaceAll("%voucher%", voucher.getName(true));
|
||||
command = command.replaceAll("%voucher%", voucher.getName(false));
|
||||
if (command.startsWith("[player]")) {
|
||||
command = command.replace("[player]", "");
|
||||
player.performCommand(command);
|
||||
|
Loading…
Reference in New Issue
Block a user