From f07556cb38c27508b07a957899066f0719a412da Mon Sep 17 00:00:00 2001 From: David Berdik Date: Wed, 14 Jul 2021 15:26:04 -0400 Subject: [PATCH] Remove PaperSpigot block --- .../theprogrammersworld/herobrine/Herobrine.java | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/main/java/net/theprogrammersworld/herobrine/Herobrine.java b/src/main/java/net/theprogrammersworld/herobrine/Herobrine.java index b9379d3..1f8dbb3 100644 --- a/src/main/java/net/theprogrammersworld/herobrine/Herobrine.java +++ b/src/main/java/net/theprogrammersworld/herobrine/Herobrine.java @@ -74,19 +74,6 @@ public class Herobrine extends JavaPlugin implements Listener { public void onEnable() { boolean continueWithEnable = true; - // Check for a PaperSpigot package to determine if the server is running PaperSpigot. If it is, - // print an error and disable the plugin. - try { - Class.forName("com.destroystokyo.paper.PaperVersionFetcher"); - Bukkit.getServer().getConsoleSender().sendMessage(ChatColor.RED + "Herobrine does not support " - + "PaperSpigot due to API-breaking changes that cause the plugin to not function reliably " - + "on servers that use it. To use Herobrine, please upgrade your server to Spigot."); - Bukkit.getServer().getConsoleSender().sendMessage(ChatColor.RED + "Please do not request support " - + "for PaperSpigot. Your request will be ignored."); - continueWithEnable = false; - getServer().getPluginManager().disablePlugin(this); - } catch (ClassNotFoundException e) {}; - // Check a server class name to determine if the plugin is compatible with the Spigot server version. // If it is not, print an error message and disable the plugin. if (continueWithEnable) {