From a396e05c9be087c1dca8c43833e5f6772e8e6e7b Mon Sep 17 00:00:00 2001
From: Presti <53257574+DxsSucuk@users.noreply.github.com>
Date: Thu, 17 Oct 2024 20:06:05 +0200
Subject: [PATCH] 4.5.29
---
pom.xml | 2 +-
src/main/java/de/presti/trollv4/main/Main.java | 13 +++++--------
2 files changed, 6 insertions(+), 9 deletions(-)
diff --git a/pom.xml b/pom.xml
index 290e36a..fea1aa7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
de.presti
trollv4
- 4.5.28
+ 4.5.29
jar
TrollV4
diff --git a/src/main/java/de/presti/trollv4/main/Main.java b/src/main/java/de/presti/trollv4/main/Main.java
index 8cd3c64..b820dcf 100644
--- a/src/main/java/de/presti/trollv4/main/Main.java
+++ b/src/main/java/de/presti/trollv4/main/Main.java
@@ -1,6 +1,5 @@
package de.presti.trollv4.main;
-import com.mysql.jdbc.exceptions.MySQLDataException;
import de.presti.trollv4.api.PlayerInfo;
import de.presti.trollv4.api.RequestUtility;
import de.presti.trollv4.cmd.Haupt;
@@ -23,17 +22,14 @@
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
-import org.bukkit.plugin.IllegalPluginAccessException;
import org.bukkit.plugin.java.JavaPlugin;
import java.io.File;
import java.io.FileNotFoundException;
-import java.net.SocketException;
import java.net.URL;
import java.net.URLConnection;
import java.nio.file.Files;
import java.nio.file.Paths;
-import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Random;
@@ -48,15 +44,16 @@ public class Main extends JavaPlugin {
public void onEnable() {
instance = this;
- Sentry.init(options -> {
+ // Sentry in this case is more annoying than helpful.
+ /*Sentry.init(options -> {
options.setDsn("https://5eca0917287f22faf8b2726f07f4d460@o4503927742529536.ingest.us.sentry.io/4506083039969280");
options.setRelease(Data.version);
options.addInAppInclude("de.presti.trollv4");
options.addIgnoredExceptionForType(SQLException.class);
- options.addIgnoredExceptionForType(MySQLDataException.class);
+ ////options.addIgnoredExceptionForType(MySQLDataException.class);
options.addIgnoredExceptionForType(IllegalPluginAccessException.class);
options.addIgnoredExceptionForType(SocketException.class);
- });
+ });*/
ArrayUtils.armor = new HashMap<>();
ArrayUtils.inventory = new HashMap<>();
@@ -221,7 +218,7 @@ public void downloadAll() {
if (Bukkit.getPluginManager().getPlugin("ProtocolLib") == null && Config.getConfig().getBoolean("downloader.protocollib")) {
Logger.info("Downloading ProtocolLib!");
- if (ServerInfo.aboveOrEqual(20)) {
+ if (ServerInfo.aboveOrEqual(21)) {
RequestUtility.download("https://ci.dmulloy2.net/job/ProtocolLib/lastSuccessfulBuild/artifact/target/ProtocolLib.jar", "plugins/ProtocolLib.jar");
} else {
RequestUtility.download("https://github.com/dmulloy2/ProtocolLib/releases/latest", "plugins/ProtocolLib.jar");