Skip to content
This repository was archived by the owner on Dec 28, 2021. It is now read-only.

Commit b3e065a

Browse files
md-5SpigotMC
authored andcommitted
Skip loading of plugins which are not 1.8 compatible.
As they do not work with Spigot 1.8 builds!
1 parent d4c9346 commit b3e065a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/main/java/org/bukkit/plugin/SimplePluginManager.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,18 @@ public Plugin[] loadPlugins(File directory) {
132132
try {
133133
description = loader.getPluginDescription(file);
134134
String name = description.getName();
135+
// Spigot Start
136+
if ( name.equalsIgnoreCase( "Orebfuscator" ) )
137+
{
138+
server.getLogger().log( Level.WARNING, "Skipping loading of Orebfuscator as it does not work with Spigot 1.8 builds!" );
139+
continue;
140+
}
141+
if ( name.equalsIgnoreCase( "EchoPet" ) )
142+
{
143+
server.getLogger().log( Level.WARNING, "Skipping loading of EchoPet as it does not work with Spigot 1.8 builds!" );
144+
continue;
145+
}
146+
// Spigot End
135147
if (name.equalsIgnoreCase("bukkit") || name.equalsIgnoreCase("minecraft") || name.equalsIgnoreCase("mojang")) {
136148
server.getLogger().log(Level.SEVERE, "Could not load '" + file.getPath() + "' in folder '" + directory.getPath() + "': Restricted Name");
137149
continue;

0 commit comments

Comments
 (0)