public void loadRasPiPlugins() {
		File RasPiPluginDir = new File("plugins");

		if (!RasPiPluginDir.exists()) {
			RasPiPluginDir.mkdirs();
			return;
		}
		
		for (File file : RasPiPluginDir.listFiles()) {
			if (!file.isDirectory() && !file.getName().startsWith(".")) {
				try {
					loadRasPiPlugin(file);
				} catch (PluginException e) {
					RasPiAPI.getLogger().warning(e.getMessage());
				}
			}
		}
		if (RasPiAPI.isRunning()) {
			for (RasPiPlugin p : pending) {
				try {
					enableRasPiPlugin(p);
				} catch (Exception e) {
					RasPiAPI.getLogger().warning("Error initializing plugin " + p.getName());
					e.printStackTrace();
				}
			}
		}
		RasPiAPI.getLogger().info("Loaded " + loadedPlugins.size() + " plugins!");
	}