mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-24 17:39:52 -05:00
Add paste to auto-gened report
Former-commit-id: f4a487646f5e1238a7ce4539de0d43e0c829749e [formerly 25b059d67d19eceb141f643ce28766439f17712e] Former-commit-id: 20e40cd98d80cebd6cb088067c26aed2e259edc0
This commit is contained in:
1 parent
688a29ab65
commit
fb7e48211a
3 files changed
+20
-2
No files matched your search
@@ -688,6 +688,14 @@ public class QuickShop extends JavaPlugin {
|
||||
saveConfig();
|
||||
reloadConfig();
|
||||
}
|
||||
if (selectedVersion == 30) {
|
||||
getConfig().set("auto-report-errors", true);
|
||||
getConfig().set("config-version", 31);
|
||||
selectedVersion = 31;
|
||||
saveConfig();
|
||||
reloadConfig();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/** Reloads QuickShops config */
|
||||
|
||||
@@ -102,7 +102,14 @@ public class SentryErrorReporter {
|
||||
new BreadcrumbBuilder().setMessage(record).build()
|
||||
);
|
||||
}
|
||||
|
||||
Paste paste = new Paste(plugin);
|
||||
String pasteURL = "Failed to paste.";
|
||||
try {
|
||||
pasteURL = paste.pasteTheText(paste.genNewPaste());
|
||||
} catch (Throwable ex) {
|
||||
//Ignore
|
||||
}
|
||||
this.context.addTag("paste", pasteURL);
|
||||
this.sentryClient.sendException(throwable);
|
||||
this.context.clearBreadcrumbs();
|
||||
plugin.getLogger()
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#Default config: https://github.com/Ghost-chu/QuickShop-Reremake/blob/master/src/main/resources/config.yml
|
||||
|
||||
#Do not touch if you not clear know about this
|
||||
config-version: 30
|
||||
config-version: 31
|
||||
|
||||
#Select language you want use, (e.g de), use other exist language to override it.
|
||||
#After you use new language override it, you need delete `messages.yml` to let plugin regen your language file.
|
||||
@@ -48,6 +48,9 @@ anonymous-metrics: false
|
||||
#Should allow QS to check update on SpigotMC.org?
|
||||
updater: true
|
||||
|
||||
#Should allow QS auto report the errors?
|
||||
auto-report-errors: true
|
||||
|
||||
#Should QS use OfflinePlayer list for TabComplete?
|
||||
#This might can give player better experience, but may cause lagg.
|
||||
#false = Only use OnlinePlayer list, true = All players joined your server before list.
|
||||
|
||||
Reference in new issue
Block a user