@Override
	public void actionPerformed(ActionEvent event) {
		if(event.getSource() == bAddPlayer || event.getSource() == nameTb || event.getSource() == messageTbLeft){
			config.setString(nameTb.getText(), messageTbLeft.getText());
			updateList();
		}else if(event.getSource() == bDeletePlayer){
			config.removePlayer(playerList.getSelectedValue() + "");
			updateList();
		}else if(event.getSource() == bSaveMessage){
			bSaveMessage.setEnabled(false);
			config.setString(playerList.getSelectedValue() + "", messageTbRight.getText());
		}else if(event.getSource() == bWriteMacro){
			new PlayerJoinWriter(config.getProps()).write();
			
		}
	}