@EventHandler(priority = EventPriority.MONITOR)
	public void onPlayerJoin(PlayerLoginEvent event) {
		if(event.getResult() == PlayerLoginEvent.Result.ALLOWED) {
			Player player = event.getPlayer();
			World world = player.getWorld();
			String worldname = world.getName();
			String playername = player.getName();
			String ip = "Error";
			Boolean staff = false;
			ip = event.getAddress().getHostAddress();
			double x = (int) Math.floor(player.getLocation().getX());
			double y = (int) Math.floor(player.getLocation().getY());
			double z = (int) Math.floor(player.getLocation().getZ());
			if (getConfig.PlayerJoins()) {
				if (player.hasPermission("PlayerLogger.staff")) {
					staff = true;
				}
				if (getConfig.logFilesEnabled()) {
					filehandler.logLogin(playername, worldname, x, y, z, ip, staff);
				}
				if (getConfig.MySQLEnabled()) {
					addData.add(playername,"join", ip, x, y, z, worldname, staff);
				}}}}