mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-25 01:49:49 -05:00
Fix a runtime exception
Former-commit-id: a61aa3c4a886343f8a2d812fb4501486d3513efa
This commit is contained in:
1 parent
d2a65d9075
commit
b5fa30e1f3
2 files changed
+6
-3
No files matched your search
@@ -450,13 +450,13 @@ public class QuickShop extends JavaPlugin {
|
||||
bukkitAPIWrapper = new PaperWrapper();
|
||||
getLogger().info("Plugin now running under Paper mode.");
|
||||
default: //AUTO
|
||||
try {
|
||||
Bukkit.spigot().getSpigotConfig();
|
||||
if(Util.isClassAvailable("com.destroystokyo.paper.PaperConfig")){
|
||||
bukkitAPIWrapper = new PaperWrapper();
|
||||
getLogger().info("Plugin now running under Paper mode.");
|
||||
}catch (Exception e){
|
||||
}else{
|
||||
bukkitAPIWrapper = new SpigotWrapper();
|
||||
getLogger().info("Plugin now running under Spigot mode. Paper performance profile is disabled, if you switch to Paper, we can use a lot paper api to improve the server performance.");
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -229,6 +229,9 @@ public class SentryErrorReporter {
|
||||
plugin.getLogger().warning("Event ID: " + this.context.getLastEventId());
|
||||
plugin.getLogger().warning("Server ID: " + plugin.getServerUniqueID());
|
||||
plugin.getLogger().warning("====QuickShop Error Report E N D===");
|
||||
if(Util.isDevMode()){
|
||||
throwable.printStackTrace();
|
||||
}
|
||||
return this.context.getLastEventId();
|
||||
} catch (Throwable th) {
|
||||
th.printStackTrace();
|
||||
|
||||
Reference in new issue
Block a user