import java.util.logging.LogRecord;
import java.util.regex.Pattern;
public class BugsnagLoggingHandler extends Handler {
private static final Pattern PLUGIN_ERROR = Pattern.compile("Could not dispatch command '(.*)' for player '(.*)'\\. " +
"This is typically a plugin error, not an issue with BuycraftX\\.");
<BUG>private final Client client;
</BUG>
private final BuycraftPlugin plugin;
<BUG>public BugsnagLoggingHandler(Client client, BuycraftPlugin plugin) {
</BUG>
this.plugin = Preconditions.checkNotNull(plugin, "plugin");

import java.util.logging.LogRecord;
import java.util.regex.Pattern;
public class BugsnagLoggingHandler extends Handler {
private static final Pattern PLUGIN_ERROR = Pattern.compile("Could not dispatch command '(.*)' for player '(.*)'\\. " +
"This is typically a plugin error, not an issue with BuycraftX\\.");
private final Bugsnag client;
private final BuycraftPlugin plugin;
public BugsnagLoggingHandler(Bugsnag client, BuycraftPlugin plugin) {
this.plugin = Preconditions.checkNotNull(plugin, "plugin");
