Collection<String> loadBeforeSet = description.getLoadBefore(); if (loadBeforeSet != null && !loadBeforeSet.isEmpty()) { for (String loadBeforeTarget : loadBeforeSet) {
/** * Construct a new plugin verifier. * @param dependency - reference to ProtocolLib, a dependency we require of plugins. */ public PluginVerifier(Plugin dependency) { if (dependency == null) throw new IllegalArgumentException("dependency cannot be NULL."); try { // This would screw with the assumption in hasDependency(Plugin, Plugin) if (safeConversion(dependency.getDescription().getLoadBefore()).size() > 0) throw new IllegalArgumentException("dependency cannot have a load directives."); } catch (LinkageError e) { // They're probably using an ancient version of Bukkit dependency.getLogger().log(Level.WARNING, "Failed to determine loadBefore: " + e); } this.dependency = dependency; }
Collection<String> loadBeforeSet = description.getLoadBefore(); if (loadBeforeSet != null && !loadBeforeSet.isEmpty()) { for (String loadBeforeTarget : loadBeforeSet) {
public PluginReport() { super("Plugins"); Plugin[] plugins = Bukkit.getServer().getPluginManager().getPlugins(); append("Plugin Count", plugins.length); for (Plugin plugin : plugins) { DataReport report = new DataReport("Plugin: " + plugin.getName()); report.append("Enabled?", plugin.isEnabled()); report.append("Full Name", plugin.getDescription().getFullName()); report.append("Version", plugin.getDescription().getVersion()); report.append("Website", plugin.getDescription().getWebsite()); report.append("Description", plugin.getDescription().getDescription()); report.append("Authors", plugin.getDescription().getAuthors()); report.append("Load Before", plugin.getDescription().getLoadBefore()); report.append("Dependencies", plugin.getDescription().getDepend()); report.append("Soft Dependencies", plugin.getDescription().getSoftDepend()); report.append("Folder", plugin.getDataFolder().getAbsoluteFile()); report.append("Entry Point", plugin.getDescription().getMain()); report.append("Class", plugin.getClass().getName()); report.append("Class Source", plugin.getClass().getProtectionDomain().getCodeSource().getLocation()); append(report.getTitle(), report); } }