Fix /wildcard selecting only 1 player. Fixes #1861

This commit is contained in:
JeromSar 2016-10-02 22:33:00 +02:00
parent 2ff66ad54b
commit 25fafa7a6c

View File

@ -52,9 +52,9 @@ public class Command_wildcard extends FreedomCommand
for (Player player : server.getOnlinePlayers())
{
baseCommand = baseCommand.replaceAll("\\x3f", player.getName());
msg("Running Command: " + baseCommand);
server.dispatchCommand(sender, baseCommand);
String runCommand = baseCommand.replaceAll("\\x3f", player.getName());
msg("Running Command: " + runCommand);
server.dispatchCommand(sender, runCommand);
}
return true;