@Override
	public void actionPerformed(ActionEvent e) {
		if (e.getSource() == PluginsTab.getInstance().searchButton || e.getSource() == PluginsTab.getInstance().search) {
			BasicPlugin[] plugins = PluginManager.getPluginArray();
			List<String> newPluginList = new ArrayList<String>();
			for (int i = 0; i < plugins.length; i++) {
				BasicPlugin plugin = plugins[i];
				if (plugin.getName().toLowerCase().contains(PluginsTab.getInstance().search.getText().toLowerCase())) {
					newPluginList.add(plugin.getName());
				}
			}
			String[] newPlugins = newPluginList.toArray(new String[newPluginList.size()]);
			PluginsTab.getInstance().pluginString = newPlugins;
			PluginsTab.getInstance().updateModel();
		}
	}