Remove PaperSpigot block
This commit is contained in:
parent
d1893c6cb3
commit
f07556cb38
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user