mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-15 21:26:04 -05:00
Add new debug stuffs
Former-commit-id: 57674eb75cd7d685a572047e248b04d23889108f
This commit is contained in:
1 parent
037d2a1b89
commit
93f53ded08
2 files changed
+4
-13
No files matched your search
@@ -750,7 +750,6 @@ public class QuickShop extends JavaPlugin {
|
||||
ongoingFeeWatcher = new OngoingFeeWatcher(this);
|
||||
InternalListener internalListener = new InternalListener(this);
|
||||
Bukkit.getPluginManager().registerEvents(internalListener, this);
|
||||
|
||||
if (isDisplay() && DisplayItem.getNowUsing() != DisplayType.VIRTUALITEM) {
|
||||
displayWatcher = new DisplayWatcher(this);
|
||||
new DisplayBugFixListener(this).register();
|
||||
@@ -759,19 +758,12 @@ public class QuickShop extends JavaPlugin {
|
||||
new ClearLaggListener(this).register();
|
||||
}
|
||||
}
|
||||
|
||||
// if(getConfig().getBoolean("shop.deny-non-shop-items-to-shop-container")){
|
||||
// Bukkit.getPluginManager().registerEvents(new ShopChestListener(), this);
|
||||
// }
|
||||
|
||||
if (getConfig().getBoolean("shop.lock")) {
|
||||
new LockListener(this, this.shopCache).register();
|
||||
}
|
||||
getLogger().info("Cleaning MsgUtils...");
|
||||
MsgUtil.loadTransactionMessages();
|
||||
MsgUtil.clean();
|
||||
|
||||
|
||||
if (this.getConfig().getBoolean("updater", true)) {
|
||||
getLogger().info("Registering UpdateWatcher...");
|
||||
updateWatcher = new UpdateWatcher();
|
||||
@@ -808,7 +800,7 @@ public class QuickShop extends JavaPlugin {
|
||||
new BukkitRunnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
getLogger().info("Registering BStats Mertics...");
|
||||
getLogger().info("Registering bStats metrics...");
|
||||
submitMeritcs();
|
||||
}
|
||||
}.runTask(this);
|
||||
@@ -818,6 +810,7 @@ public class QuickShop extends JavaPlugin {
|
||||
loaded = true;
|
||||
}
|
||||
|
||||
Util.debugLog("Now using display-type: " + DisplayItem.getNowUsing().name());
|
||||
// sentryErrorReporter.sendError(new IllegalAccessError("no fucking way"));
|
||||
}
|
||||
|
||||
|
||||
@@ -65,12 +65,10 @@ public class RollbarErrorReporter {
|
||||
.environment(Util.isDevEdition() ? "development" : "production")
|
||||
.platform(Bukkit.getVersion())
|
||||
.codeVersion(QuickShop.getVersion())
|
||||
.handleUncaughtErrors(false)
|
||||
.build();
|
||||
this.rollbar = Rollbar.init(config);
|
||||
plugin
|
||||
.getLogger()
|
||||
.setFilter(
|
||||
new QuickShopExceptionFilter()); // Redirect log request passthrough our error catcher.
|
||||
plugin.getLogger().setFilter(new QuickShopExceptionFilter()); // Redirect log request passthrough our error catcher.
|
||||
Bukkit.getLogger().setFilter(new GlobalExceptionFilter());
|
||||
Bukkit.getServer().getLogger().setFilter(new GlobalExceptionFilter());
|
||||
Logger.getGlobal().setFilter(new GlobalExceptionFilter());
|
||||
|
||||
Reference in new issue
Block a user