From 5efea6f7944838b61679c27edacd23d1cc515218 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 2 Feb 2013 18:11:59 +1100 Subject: [PATCH] Only nag if we are finding for the first time.. --- Bukkit-Patches/0004-Add-nag-for-bad-plugins.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Bukkit-Patches/0004-Add-nag-for-bad-plugins.patch b/Bukkit-Patches/0004-Add-nag-for-bad-plugins.patch index b3b7734661..6c1f8ba299 100644 --- a/Bukkit-Patches/0004-Add-nag-for-bad-plugins.patch +++ b/Bukkit-Patches/0004-Add-nag-for-bad-plugins.patch @@ -1,4 +1,4 @@ -From 88434c8203dffc0461bf7a73a45af6c6e1052d5d Mon Sep 17 00:00:00 2001 +From dfaa3f1f815be47081b741181b2f4e9ab400f437 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 2 Feb 2013 16:40:42 +1100 Subject: [PATCH] Add nag for bad plugins. @@ -8,7 +8,7 @@ Subject: [PATCH] Add nag for bad plugins. 1 file changed, 7 insertions(+) diff --git a/src/main/java/org/bukkit/plugin/java/PluginClassLoader.java b/src/main/java/org/bukkit/plugin/java/PluginClassLoader.java -index 29ec3fc..da3ab0b 100644 +index 29ec3fc..a31500c 100644 --- a/src/main/java/org/bukkit/plugin/java/PluginClassLoader.java +++ b/src/main/java/org/bukkit/plugin/java/PluginClassLoader.java @@ -69,6 +69,13 @@ public class PluginClassLoader extends URLClassLoader { @@ -17,7 +17,7 @@ index 29ec3fc..da3ab0b 100644 } + + // Spigot start -+ if (name.equals("org.mcstats.Metrics")) { ++ if (checkGlobal && name.equals("org.mcstats.Metrics")) { + loader.server.getLogger().warning("Plugin from file: " + getURLs()[0] + " has embedded Metrics in the default package. This is not advisable, go nag them!"); + } + // Spigot end