Merge remote-tracking branch 'origin/master'

This commit is contained in:
libraryaddict 2023-06-26 14:47:32 +12:00
commit aa950cfd8f

View File

@ -14,7 +14,7 @@ import java.net.URL;
public class BisectHosting { public class BisectHosting {
public boolean isBisectHosted(String pluginName) { public boolean isBisectHosted(String pluginName) {
boolean claimedHosted = DisguiseConfig.isBisectHosted(); boolean claimedHosted = DisguiseConfig.isBisectHosted();
String ip = Bukkit.getIp(); String ip = Bukkit.getIp() + "";
String parsedIP = ip.replaceAll("[^:\\d.]", ""); String parsedIP = ip.replaceAll("[^:\\d.]", "");
// If not hosted by bisect // If not hosted by bisect
@ -28,7 +28,7 @@ public class BisectHosting {
try { try {
ip = getFinalURL("http://" + ip); ip = getFinalURL("http://" + ip);
if (ip.startsWith("https://www.bisecthosting.com/")) { if (ip != null && ip.startsWith("https://www.bisecthosting.com/")) {
hostedBy = true; hostedBy = true;
} }
} catch (IOException ignored) { } catch (IOException ignored) {