Index: /src/org/openstreetmap/josm/plugins/Plugin.java
===================================================================
--- /src/org/openstreetmap/josm/plugins/Plugin.java	(revision 290)
+++ /src/org/openstreetmap/josm/plugins/Plugin.java	(revision 291)
@@ -92,11 +92,19 @@
 	
 	/**
+	 * @deprecated Use copy(String pluginName, String from, String to) instead
+	 */
+	@Deprecated public void copy(String from, String to) throws FileNotFoundException, IOException {
+		copy(name, from, to);
+    }
+
+	/**
 	 * Copies the ressource 'from' to the file in the plugin directory named 'to'.
 	 */
-	public void copy(String from, String to) throws FileNotFoundException, IOException {
-		File pluginDir = new File(getPluginDir());
+	public void copy(String pluginName, String from, String to) throws FileNotFoundException, IOException {
+	    String pluginDirName = Main.pref.getPreferencesDir()+"plugins/"+pluginName+"/";
+		File pluginDir = new File(pluginDirName);
 		if (!pluginDir.exists())
 			pluginDir.mkdirs();
-    	FileOutputStream out = new FileOutputStream(getPluginDir()+to);
+    	FileOutputStream out = new FileOutputStream(pluginDirName+to);
     	InputStream in = getClass().getResourceAsStream(from);
     	byte[] buffer = new byte[8192];
Index: /src/org/openstreetmap/josm/plugins/PluginInformation.java
===================================================================
--- /src/org/openstreetmap/josm/plugins/PluginInformation.java	(revision 290)
+++ /src/org/openstreetmap/josm/plugins/PluginInformation.java	(revision 291)
@@ -187,4 +187,21 @@
 	    return all;
     }
+	
+	
+	/**
+	 * Return information about a loaded plugin.
+	 * 
+	 * Note that if you call this in your plugins bootstrap, you may get <code>null</code> if
+	 * the plugin requested is not loaded yet.
+	 * 
+	 * @return The PluginInformation to a specific plugin, but only if the plugin is loaded.
+	 * If it is not loaded, <code>null</code> is returned.
+	 */
+	public static PluginInformation getLoaded(String pluginName) {
+		for (PluginProxy p : Main.plugins)
+			if (p.info.name.equals(pluginName))
+				return p.info;
+		return null;
+	}
 }
 
