mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-12-13 15:16:50 +01:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
aa950cfd8f
@ -14,7 +14,7 @@ import java.net.URL;
|
||||
public class BisectHosting {
|
||||
public boolean isBisectHosted(String pluginName) {
|
||||
boolean claimedHosted = DisguiseConfig.isBisectHosted();
|
||||
String ip = Bukkit.getIp();
|
||||
String ip = Bukkit.getIp() + "";
|
||||
String parsedIP = ip.replaceAll("[^:\\d.]", "");
|
||||
|
||||
// If not hosted by bisect
|
||||
@ -28,7 +28,7 @@ public class BisectHosting {
|
||||
try {
|
||||
ip = getFinalURL("http://" + ip);
|
||||
|
||||
if (ip.startsWith("https://www.bisecthosting.com/")) {
|
||||
if (ip != null && ip.startsWith("https://www.bisecthosting.com/")) {
|
||||
hostedBy = true;
|
||||
}
|
||||
} catch (IOException ignored) {
|
||||
|
Loading…
Reference in New Issue
Block a user