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

Commit

Permalink
Skip loading of plugins which are not 1.8 compatible.
Browse files Browse the repository at this point in the history
As they do not work with Spigot 1.8 builds!
  • Loading branch information
md-5 authored and SpigotMC committed Sep 4, 2014
1 parent d4c9346 commit b3e065a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/main/java/org/bukkit/plugin/SimplePluginManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,18 @@ public Plugin[] loadPlugins(File directory) {
try {
description = loader.getPluginDescription(file);
String name = description.getName();
// Spigot Start
if ( name.equalsIgnoreCase( "Orebfuscator" ) )
{
server.getLogger().log( Level.WARNING, "Skipping loading of Orebfuscator as it does not work with Spigot 1.8 builds!" );
continue;
}
if ( name.equalsIgnoreCase( "EchoPet" ) )
{
server.getLogger().log( Level.WARNING, "Skipping loading of EchoPet as it does not work with Spigot 1.8 builds!" );
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;
Expand Down

0 comments on commit b3e065a

Please sign in to comment.