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