2014-09-02 22:37:06 +02:00
|
|
|
From 51cd0958df56ffd971da90b18d7010df99d02fa4 Mon Sep 17 00:00:00 2001
|
2014-09-01 21:11:02 +02:00
|
|
|
From: md_5 <git@md-5.net>
|
|
|
|
Date: Mon, 1 Sep 2014 19:36:20 +1000
|
2014-09-02 22:37:06 +02:00
|
|
|
Subject: [PATCH] Skip loading of plugins which are not 1.8 compatible.
|
2014-09-01 21:11:02 +02:00
|
|
|
|
2014-09-02 22:37:06 +02:00
|
|
|
As they do not work with Spigot 1.8 builds!
|
2014-09-01 21:11:02 +02:00
|
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/plugin/SimplePluginManager.java b/src/main/java/org/bukkit/plugin/SimplePluginManager.java
|
2014-09-02 22:37:06 +02:00
|
|
|
index 1d51908..0b53084 100644
|
2014-09-01 21:11:02 +02:00
|
|
|
--- a/src/main/java/org/bukkit/plugin/SimplePluginManager.java
|
|
|
|
+++ b/src/main/java/org/bukkit/plugin/SimplePluginManager.java
|
|
|
|
@@ -132,6 +132,18 @@ public final class SimplePluginManager implements PluginManager {
|
|
|
|
try {
|
|
|
|
description = loader.getPluginDescription(file);
|
|
|
|
String name = description.getName();
|
|
|
|
+ // Spigot Start
|
2014-09-02 22:37:06 +02:00
|
|
|
+ if ( name.equalsIgnoreCase( "Orebfuscator" ) )
|
2014-09-01 21:11:02 +02:00
|
|
|
+ {
|
2014-09-02 22:37:06 +02:00
|
|
|
+ server.getLogger().log( Level.WARNING, "Skipping loading of Orebfuscator as it does not work with Spigot 1.8 builds!" );
|
2014-09-01 21:11:02 +02:00
|
|
|
+ continue;
|
|
|
|
+ }
|
2014-09-02 22:37:06 +02:00
|
|
|
+ if ( name.equalsIgnoreCase( "EchoPet" ) )
|
2014-09-01 21:11:02 +02:00
|
|
|
+ {
|
2014-09-02 22:37:06 +02:00
|
|
|
+ server.getLogger().log( Level.WARNING, "Skipping loading of EchoPet as it does not work with Spigot 1.8 builds!" );
|
2014-09-01 21:11:02 +02:00
|
|
|
+ continue;
|
|
|
|
+ }
|
|
|
|
+ // Spigot End
|
|
|
|
if (name.equalsIgnoreCase("bukkit") || name.equalsIgnoreCase("minecraft") || name.equalsIgnoreCase("mojang")) {
|
|
|
|
server.getLogger().log(Level.SEVERE, "Could not load '" + file.getPath() + "' in folder '" + directory.getPath() + "': Restricted Name");
|
|
|
|
continue;
|
|
|
|
--
|
|
|
|
1.9.1
|
|
|
|
|