@Override
	public void onPlayerJoin(PlayerJoinEvent event) {
		String player = event.getPlayer().getName();

		// Alert player of any new sale alerts
		if (plugin.showSalesOnJoin == true){
			List<SaleAlert> saleAlerts = plugin.dataQueries.getNewSaleAlertsForSeller(player);
			for (SaleAlert saleAlert : saleAlerts) {
				event.getPlayer().sendMessage(plugin.logPrefix + "You sold " + saleAlert.getQuantity() + " " + saleAlert.getItem() + " to " + saleAlert.getBuyer() + " for "+ saleAlert.getPriceEach() + " each.");
				plugin.dataQueries.markSaleAlertSeen(saleAlert.getId());
			}
		}

		// Alert player of any new mail
		if (plugin.dataQueries.hasMail(player)) {
			event.getPlayer().sendMessage(plugin.logPrefix + "You have new mail!");
		}

		// Determine permissions
		int canBuy = 0;
		int canSell = 0;
		int isAdmin = 0;
		if (plugin.permission.has(event.getPlayer(), "wa.canbuy")) {
			canBuy = 1;
		}
		if (plugin.permission.has(event.getPlayer(), "wa.cansell")) {
			canSell = 1;
		}
		if (plugin.permission.has(event.getPlayer(), "wa.webadmin")) {
			isAdmin = 1;
		}

		if (null != plugin.dataQueries.getPlayer(player)) {
			plugin.log.info(plugin.logPrefix + "Player found - "+ player+ " with permissions: canbuy = " + canBuy + " cansell = " + canSell + " isAdmin = " + isAdmin);
			// Update permissions
			plugin.dataQueries.updatePlayerPermissions(player, canBuy, canSell, isAdmin);
		}
	}