Skip to content

Commit e5f3c7c

Browse files
Ignored custom build or 3rd fork in error reporter
1 parent 8cf26a7 commit e5f3c7c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/org/maxgamer/quickshop/util/reporter/error/RollbarErrorReporter.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,10 @@ public boolean canReport(@NotNull Throwable throwable) {
207207
if (!plugin.getUpdateWatcher().getUpdater().isLatest()) { // We only receive latest reports.
208208
return false;
209209
}
210+
if (!plugin.getBuildInfo().buildUrl.getBuildUrl().startsWith("https://ci.codemc.io/job/PotatoCraft-Studio/")) { // Ignored custom build or 3rd fork
211+
return false;
212+
}
213+
210214
if (!GameVersion.get(ReflectFactory.getServerVersion()).isCoreSupports()) { // Ignore errors if user install quickshop on unsupported
211215
// version.
212216
return false;

0 commit comments

Comments
 (0)