@Override
	public void actionPerformed(ActionEvent e) {
		String action = e.getActionCommand();

		if (action.equalsIgnoreCase("exit")) {
			int option = JOptionPane.showConfirmDialog(this,
					"Are you sure you want to exit " + Constants.NAME + "?",
					"Exit", JOptionPane.YES_NO_OPTION);
			if (option == JOptionPane.YES_OPTION) {
				System.exit(0);
			}
		}

		if (action.equalsIgnoreCase("about")) {
			JOptionPane
					.showMessageDialog(
							this,
							Constants.NAME
									+ " is made possible by the RuneScape client hacking communities such as MITB and JavaHacking.\nThis project was made to learn about RuneScape client hacking and the process of making a RuneScape bot.\n"
									+ Constants.NAME
									+ " was created as a solo project using many resources of said client hacking communities by Justin (Mr. Brightside).\nThank you for your interest in "
									+ Constants.NAME
									+ " and RuneScape client hacking.",
							"About", JOptionPane.INFORMATION_MESSAGE);
		}

		if (action.equalsIgnoreCase("load bot")) {
			if (!botLoaded) {
				botLoaded = true;
				panel.loadBot();
				pack();
				panel.getConsole().log(new LogRecord(Level.INFO, "Applet loaded!"));
			} else {
				panel.getConsole().log(new LogRecord(Level.WARNING, "The Bot is aleady loaded!"));
			}
		}
		
		if (action.equalsIgnoreCase("run updater")) {
			new Updater();
		}

	}